Advertisement
StefkeZ

Untitled

Jun 30th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. function RespawnujSveTimer()
  2. {
  3. for(new car = 1; car <= MAX_VEHICLES; car++)
  4. {
  5. if(VoziloInfo[car][vImaVlasnika] == 0 || MotorInfo[car][mImaVlasnika] == 0 || PlovilaInfo[car][plImaVlasnika] == 0 || AvionInfo[car][avImaVlasnika] == 0)
  6. {
  7. if(IsVehicleEmpty(car))
  8. {
  9. if(GetVehicleModel(car) != 435 && GetVehicleModel(car) != 584)
  10. {
  11. SetVehicleToRespawn(car);
  12. }
  13. }
  14. }
  15. }
  16. new s[256];
  17. format(s, sizeof(s), "{80C8FE}RESPAWN: {FFFFFF}Sva vozila (non-ownable) su vracena u prvobitni polozaj.");
  18. SendClientMessageToAll(-1,s);
  19. return true;
  20. }
  21.  
  22. function RespawnujSveNTimer()
  23. {
  24. for(new car = 1; car <= MAX_VEHICLES; car++)
  25. {
  26. if(VoziloInfo[car][vImaVlasnika] == 1 || MotorInfo[car][mImaVlasnika] == 1 || PlovilaInfo[car][plImaVlasnika] == 1 || AvionInfo[car][avImaVlasnika] == 1)
  27. {
  28. if(IsVehicleEmpty(car))
  29. {
  30. SetVehicleToRespawn(car);
  31. }
  32. }
  33. }
  34. new s[256];
  35. format(s, sizeof(s), "{80C8FE}RESPAWN: {FFFFFF}Sva vozila (ownable) su vracena u prvobitni polozaj.");
  36. SendClientMessageToAll(-1,s);
  37. return true;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement