[AJUDA] Respawnveiculos
#2

pawn Код:
if(strcmp(cmd, "/respawncarros", true) == 0 || strcmp(cmd, "/rc", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] < 3)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo estб autorizado a usar este comando !");
                return 1;
            }
            if(admtrampando[playerid] < 1)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/profadmin)");
                return 1;
            }
            GetPlayerName(playerid, playername, sizeof(playername));
            format(string, sizeof(string), "[BRL] Todos os carros foram para seus locais de inicio. By: %s.", playername);
            SendClientMessageToAll(COLOR_RED,string);
            new bool:unwanted[CAR_AMOUNT];
            for(new player=0; player<MAX_PLAYERS; player++)
            {
                if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
            }
            for(new car = 1; car <= CAR_RESPAW; car++)
            {
                if(!unwanted[car]) SetVehicleToRespawn(car);
            }
        }
        return 1;
    }
Reply


Messages In This Thread
[AJUDA] Respawnveiculos - by [RoxX]Ygor - 29.08.2010, 20:06
Re: [AJUDA] Respawnveiculos - by BlackFin - 29.08.2010, 20:34
Re: [AJUDA] Respawnveiculos - by CyNiC - 29.08.2010, 20:57

Forum Jump:


Users browsing this thread: 1 Guest(s)