Respawn all cars
#6

Quote:
Originally Posted by Kiyozi_Mu
Посмотреть сообщение
Use this
pawn Код:
CMD:respawnallcars(playerid)
{
    if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] < 3)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized!");
                return 1;
            }
            new bool:unwanted[MAX_VEHICLES];
            for(new player=0; player<MAX_PLAYERS; player++)
            {
                if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
            }
            for(new car = 1; car <= MAX_VEHICLES; car++)
            {
                if(!unwanted[car]) SetVehicleToRespawn(car);
            }
            GameTextForAll("~w~Every Unused Car Has Been ~n~~g~Respawned!",5000,1);
        }
    return 1;
}
Wowooo! 26 Errors something is wrong btw write that in code
Reply


Messages In This Thread
Respawn all cars - by raamiix - 28.03.2013, 12:17
Re: Respawn all cars - by RenovanZ - 28.03.2013, 13:07
Re: Respawn all cars - by raamiix - 28.03.2013, 13:16
Re: Respawn all cars - by RenovanZ - 28.03.2013, 13:21
Re: Respawn all cars - by Patrick - 28.03.2013, 13:23
Re: Respawn all cars - by raamiix - 28.03.2013, 13:23

Forum Jump:


Users browsing this thread: 2 Guest(s)