Respawning all cars problem
#2

Here u go:
pawn Код:
CMD:respawnallcars(playerid,params[])
    {
        if(PlayerInfo[playerid][Level] <= 2)
        {
            new
            i,
            bool: vUsed[MAX_VEHICLES + 1];
            foreachex(Player, i)
            {
                vUsed[GetPlayerVehicleID(i)] = true;
            }
            for(i = 1; i <= MAX_VEHICLES; ++i) {
                if(!vUsed[i]) {
                    SetVehicleToRespawn(i);
                }
            }
            return true;
        }
        else
        {
            SendClientMessage(playerid,COLOR_GREY,"You are not authorized to use this command.");
            return 1;
        }
    }
Rep if i helped you
Reply


Messages In This Thread
Respawning all cars problem - by trapstar2020 - 24.09.2012, 19:01
Re: Respawning all cars problem - by Admigo - 24.09.2012, 20:04
Re: Respawning all cars problem - by Beljulji - 24.09.2012, 20:42

Forum Jump:


Users browsing this thread: 1 Guest(s)