Respawn all cars
#7

pawn Код:
#define MAX_CARS 700 //change to your car ammount
if(strcmp(cmd, "/respawncars", true) == 0)
{
  if(IsPlayerAdmin(playerid)) //for rcon admin
  {
    for(new i=0; i<MAX_CARS; i++)
    {
         for(new pl = 0; pl<MAX_PLAYERS; pl++)
         {
             if(IsPlayerConnected(pl))
             {
                 if(!IsPlayerInVehicle(pl, i) {SetVehicleToRespawn(i); return 0;}
             }
          }
     }
   }
   else SendClientMessage(playerid, color, "You're not an admin"); //change color to your color code
   return 1;
}
Reply


Messages In This Thread
Respawn all cars - by KnooL - 26.02.2009, 12:45
Re: Respawn all cars - by kobrasek - 26.02.2009, 12:52
Re: Respawn all cars - by KnooL - 26.02.2009, 13:10
Re: Respawn all cars - by kobrasek - 26.02.2009, 13:22
Re: Respawn all cars - by KnooL - 26.02.2009, 13:23
Re: Respawn all cars - by KnooL - 26.02.2009, 17:39
Re: Respawn all cars - by Coicatak - 26.02.2009, 21:48
Re: Respawn all cars - by kobrasek - 26.02.2009, 21:58
Re: Respawn all cars - by BeckzyBoi - 26.02.2009, 22:37
Re: Respawn all cars - by Coicatak - 27.02.2009, 10:51

Forum Jump:


Users browsing this thread: 4 Guest(s)