Respawn vehicles..
#9

Quote:
Originally Posted by dice7
Slight edit:

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;
}
since vehicle ids start with 1 and end with MAX_VEHICLES
Yes, you are right.
Reply


Messages In This Thread
Respawn vehicles.. - by DevilRP - 24.05.2010, 11:34
Re: Respawn vehicles.. - by Jeffry - 24.05.2010, 11:36
Re: Respawn vehicles.. - by LTomi - 24.05.2010, 11:37
Re: Respawn vehicles.. - by DevilRP - 24.05.2010, 11:38
Re: Respawn vehicles.. - by LTomi - 24.05.2010, 11:40
Re: Respawn vehicles.. - by Jeffry - 24.05.2010, 11:42
Re: Respawn vehicles.. - by dice7 - 24.05.2010, 11:45
Re: Respawn vehicles.. - by DevilRP - 24.05.2010, 11:46
Re: Respawn vehicles.. - by LTomi - 24.05.2010, 11:48
Re: Respawn vehicles.. - by DevilRP - 24.05.2010, 11:51

Forum Jump:


Users browsing this thread: 1 Guest(s)