[AJUDA]Quando uso /trazerbopes o server fecha.
#4

ihб

pawn Код:
if(strcmp(cmd, "/trazercvs", true) == 0)
    {
        new Float:PlayerPos[3];
        GetPlayerPos(playerid,PlayerPos[0],PlayerPos[1],PlayerPos[2]);
        for(new i = 0; i < MAX_PLAYERS; ++i)
        {
            if(PlayerInfo[i][pCV] >= 5)
            {
                SetPlayerPos(i, PlayerPos[0],PlayerPos[1],PlayerPos[2]);
            }
        }
        format(string, sizeof(string), "Adm.Cmd: %s trouxe todos os CVS.", sendername);
        SendClientMessageToAll(COLOR_ADM, string);
        return 0x01;
    }
    if(strcmp(cmd, "/trazerbope", true) == 0)
    {
        new Float:PlayerPos[3];
        GetPlayerPos(playerid,PlayerPos[0],PlayerPos[1],PlayerPos[2]);
        for(new i = 0; i < MAX_PLAYERS; ++i)
        {
            if(PlayerInfo[i][pBOPE] >= 5)
            {
                SetPlayerPos(i, PlayerPos[0],PlayerPos[1],PlayerPos[2]);
            }
        }
        format(string, sizeof(string), "Adm.Cmd: %s trouxe todos os BOPES.", sendername);
        SendClientMessageToAll(COLOR_ADM, string);
        return 0x01;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)