24.05.2010, 11:45
Slight edit:
since vehicle ids start with 1 and end with MAX_VEHICLES
pawn Code:
if(strcmp("/respawnallcars", cmdtext, true) == 0)
{
if(IsPlayerAdmin(playerid))
{
for(new i = 1; i <= MAX_VEHICLES; i++)
{
SetVehicleToRespawn(i);
}
SendClientMessage(playerid, COLOR_GREEN, "You have respawned all vehicles.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not an admin.");
}
return 1;
}