24.02.2012, 18:42
pawn Code:
new inVeh = 0;
for(new i = 0; i < MAX_VEHICLES; i++)
{
for (new j = 0; j < MAX_PLAYERS; j++)
{
if (IsPlayerInVehicle(j, i))
{
inVeh = 1;
break;
}
}
if (inVeh != 1)
{
SetVehicleToRespawn(i);
}
inVeh = 0;
}
SendClientMessageToAll(COLOR_RED, "All vehicles has been respawned!");