02.08.2011, 12:54
pawn Код:
// Wherever you need this.
for(new i=1; i<MAX_VEHICLES; i++)
{
if(IsVehicleOccupied(i) == 0)
{
SetVehicleToRespawn(vehicleid);
}
}
pawn Код:
// The stock
stock IsVehicleOccupied(vehicleid)
{
for (new i = 0; i < GetMaxPlayers(); i ++)
{
if (GetPlayerVehicleID(playerid) == vehicleid) return true;
}
return false;
}