Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:work(playerid,command[])
- {
- if(work[playerid] == 0)
- {
- work[playerid] = 1;
- SendClientMessage(playerid, -1, "Condu tractorul pe campul amplasat in fata pana termini de plantat graul.");
- SetPlayerPos(playerid, -122.2132,72.6299,3.1172);
- tractor = CreateVehicle(531, -122.2132,72.6299,3.1172,159.5186, 1, 1, 0, 0);
- PutPlayerInVehicle(playerid, tractor, 0);
- Trailer = CreateVehicle(610, -115.2132,72.6299,3.1172,159.5186, 1, 1, 0, 0);
- AttachTrailerToVehicle(Trailer, tractor);
- TimerFan[playerid] = SetTimerEx("TimerCreate", 500, true, "i", playerid);
- TimerHar[playerid] = SetTimerEx("TimerHarvest", 100, true, "i", playerid);
- msj[playerid] = 0;
- }
- else
- {
- work[playerid] = 0;
- KillTimer(TimerFan[playerid]);
- KillTimer(TimerHar[playerid]);
- DestroyVehicle(tractor);
- DestroyVehicle(Trailer);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement