Advertisement
PaulCastellano

rac

Apr 24th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. forward Respawn();
  2. public Respawn()
  3. {
  4. new bool:VehUsed[MAX_VEHICLES],vehID;
  5. foreach(new playerid : Player)
  6. {
  7. vehID = GetPlayerVehicleID(playerid);
  8. if(vehID > 0)
  9. {
  10. VehUsed[vehID] = true;
  11. new vehMod = GetVehicleModel(vehID);
  12. if(vehMod == 403 || vehMod == 514 || vehMod == 515 || vehMod == 525 || vehMod == 531 || vehMod == 572 || vehMod == 583)
  13. {
  14. vehID = GetVehicleTrailer(vehID);
  15. if(vehID > 0) VehUsed[vehID] = true;
  16. }
  17. }
  18. }
  19. for(new vehicleid = 1; vehicleid != MAX_VEHICLES; vehicleid++)
  20. {
  21. if(!VehUsed[vehicleid] && IsValidVehicle(vehicleid))
  22. {
  23. SetVehicleToRespawn(vehicleid);
  24. }
  25. }
  26. RespawnVozila = 0;
  27. SendClientMessageToAll(-1, ""SPLAVA"<<< "SIVA"Vozila Respawnovana "SPLAVA">>>");
  28. return;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement