SHARE
TWEET

rac

PaulCastellano Apr 24th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top