Advertisement
Guest User

Untitled

a guest
Dec 28th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1.  
  2. CMD:work(playerid,command[])
  3. {
  4. if(work[playerid] == 0)
  5. {
  6. work[playerid] = 1;
  7. SendClientMessage(playerid, -1, "Condu tractorul pe campul amplasat in fata pana termini de plantat graul.");
  8. SetPlayerPos(playerid, -122.2132,72.6299,3.1172);
  9. tractor = CreateVehicle(531, -122.2132,72.6299,3.1172,159.5186, 1, 1, 0, 0);
  10. PutPlayerInVehicle(playerid, tractor, 0);
  11. Trailer = CreateVehicle(610, -115.2132,72.6299,3.1172,159.5186, 1, 1, 0, 0);
  12. AttachTrailerToVehicle(Trailer, tractor);
  13. TimerFan[playerid] = SetTimerEx("TimerCreate", 500, true, "i", playerid);
  14. TimerHar[playerid] = SetTimerEx("TimerHarvest", 100, true, "i", playerid);
  15. msj[playerid] = 0;
  16. }
  17. else
  18. {
  19. work[playerid] = 0;
  20. KillTimer(TimerFan[playerid]);
  21. KillTimer(TimerHar[playerid]);
  22. DestroyVehicle(tractor);
  23. DestroyVehicle(Trailer);
  24. }
  25. return 1;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement