| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- PaperboyStartJob(playerid)
- {
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 481) return SendErrorMessage(playerid, "You need to be riding a bike in order to start working.");
- if(Iter_Count(House) <= 3) return SendErrorMessage(playerid, "There must be more than three houses on the server in order to do this job.");
- new houseid = Iter_Random(House);
- SetPlayerWorking(playerid, true);
- new Float:x, Float:y, Float:z;
- Property_GetExtPos(houseid, x, y, z);
- JobCheckpoint[playerid] = CreateDynamicCP(x, y, z, 4.0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), playerid);
- SendClientMessage(playerid, 0xffcc80ff, "(Job) You have to deliver the newspapers around the city.");
- return 1;
- }
- PaperboyEnterCheckpoint(playerid)
- {
- if(IsPlayerInAnyVehicle(playerid)) return 0;
- if(Iter_Count(House) <= 3)
- {
- Job_StopWorking(playerid);
- return SendErrorMessage(playerid, "There must be more than three houses on the server in order to do this job.");
- }
- DestroyDynamicCP(JobCheckpoint[playerid]);
- JobCheckpoint[playerid] = INVALID_STREAMER_ID;
- new houseid = Iter_Random(House);
- new Float:x, Float:y, Float:z;
- Property_GetExtPos(houseid, x, y, z);
- JobCheckpoint[playerid] = CreateDynamicCP(x, y, z, 4.0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), playerid);
- ApplyAnimation(playerid, "GRENADE", "WEAPON_THROWU", 4.1, 0, 0, 0, 0, 0, 1);
- return 1;
- }
- stock PaperboyStopsWorking(playerid)
- {
- IsPlayerConnected(playerid); // temp for warning
- }
|