Guest User

Untitled

a guest
Jan 13th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. for (new contador = 0; contador < MAX_PLAYERS; contador++)
  2. if (IsPlayerInAnyVehicle(contador))
  3. {
  4. tmpcar = GetPlayerVehicle(contador);
  5. Recolocarcoches[tmpcar] = 1;
  6. }
  7.  
  8. if (!strlen(cmd))
  9. {
  10. SetTimerEx("Recolocarveh", 100, false, "ii", playerid, 30.0);
  11. }
  12. else
  13. {
  14. if (strcmp(cmd, "autoescuela", true) == 0)
  15. {
  16. for(new i = 0;i < TotalVeh; i++)
  17. {
  18. if((strcmp(CarInfo[i][cOwner], "autoescuela", true) == 0) && (Recolocarcoches[i] == 0))
  19. {
  20. SetVehiclePos(CarInfo[i][cId], CarInfo[i][cLocationx], CarInfo[i][cLocationy], CarInfo[i][cLocationz]);
  21. SetVehicleZAngle(CarInfo[i][cId], CarInfo[i][cAngle]);
  22. //Recolocarcoches[i] = NOEXISTE;
  23. }
  24. if(Recolocarcoches[i] == 1)
  25. {
  26. Recolocarcoches[i] = 0;
  27. }
  28. }
  29. return 1;
  30. }
  31. if (strcmp(cmd, "job", true) == 0)
  32. {
  33. cmd = strtokex(cmdtext, idx);
  34. if(!strlen(cmd))
  35. {
  36. SetTimerEx("RecolocarJobVeh", 100, false, "ii", playerid, 100);
  37. }
  38. else
  39. {
  40. new id = strval(cmd);
  41. SetTimerEx("RecolocarJobVeh", 100, false, "ii", playerid, id+100);
  42. }
  43. return 1;
  44. }
  45. if (strcmp(cmd, "team", true) == 0)
  46. {
  47. cmd = strtokex(cmdtext, idx);
  48. if(!strlen(cmd))
  49. {
  50. SetTimerEx("RecolocarJobVeh", 100, false, "ii", playerid, 0);
  51. }
  52. else
  53. {
  54. new id = strval(cmd);
  55. SetTimerEx("RecolocarJobVeh", 100, false, "ii", playerid, id);
  56. }
  57. return 1;
  58. }
  59. }
  60. return 1;
Add Comment
Please, Sign In to add comment