Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward Respawn();
- public Respawn()
- {
- new bool:VehUsed[MAX_VEHICLES],vehID;
- foreach(new playerid : Player)
- {
- vehID = GetPlayerVehicleID(playerid);
- if(vehID > 0)
- {
- VehUsed[vehID] = true;
- new vehMod = GetVehicleModel(vehID);
- if(vehMod == 403 || vehMod == 514 || vehMod == 515 || vehMod == 525 || vehMod == 531 || vehMod == 572 || vehMod == 583)
- {
- vehID = GetVehicleTrailer(vehID);
- if(vehID > 0) VehUsed[vehID] = true;
- }
- }
- }
- for(new vehicleid = 1; vehicleid != MAX_VEHICLES; vehicleid++)
- {
- if(!VehUsed[vehicleid] && IsValidVehicle(vehicleid))
- {
- SetVehicleToRespawn(vehicleid);
- }
- }
- RespawnVozila = 0;
- SendClientMessageToAll(-1, ""SPLAVA"<<< "SIVA"Vozila Respawnovana "SPLAVA">>>");
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement