[Ajuda] qual o problema com o comando?
#2

#Edit
pawn Код:
if(strcmp(cmd, "/particular", true) == 0 || strcmp(cmd, "/par", true) == 0)
    {
        if(PlayerInfo[playerid][pMuted] == 1)
        {
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "Vocк nгo pode falar, pois foi calado");
            return 1;
        }
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: (/par)ticular [id] [texto]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            if(PlayerInfo[giveplayerid][pAdmin] < 1 )return SendClientMessage(playerid, COLOR_GREY, "Voce nгo й um admin ou o player que vocк digitou nгo й admin!");
            if (IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                    new length = strlen(cmdtext);
                    while ((idx < length) && (cmdtext[idx] <= ' '))
                    {
                        idx++;
                    }
                    new offset = idx;
                    new result[64];
                    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                    {
                        result[idx - offset] = cmdtext[idx];
                        idx++;
                    }
                    result[idx - offset] = EOS;
                    if(!strlen(result))
                    {
                        SendClientMessage(playerid, COLOR_GRAD2, "USE: (/par)ticular [id] [texto] ");
                        return 1;
                    }
                    if(admtrampando[playerid] == 1 && admhide[playerid] == 1)
                    {
                        format(string, sizeof(string), "Admin_Server particular: %s ", (result));
                        SendClientMessage(giveplayerid, COLOR_YELLOW, string);
                    }
                    else
                    {
                        format(string, sizeof(string), "%s(ID: %d) particular: %s ", sendername, playerid, (result));
                        SendClientMessage(giveplayerid, COLOR_YELLOW, string);
                    }
                    print(string);
                    format(string, sizeof(string), "PM enviada para %s(ID: %d).", giveplayer, giveplayerid);
                    SendClientMessage(playerid,  COLOR_YELLOW, string);
                    format(string, sizeof(string), "[%d/%d/%d] [%d:%d:%d] PM: %s para %s: %s.", v[2], v[1], v[0], v[3], v[4], v[5] , PlayerName(playerid), PlayerName(giveplayerid), (result));
                    AChatLog(string);
                    return 1;
                }
            }
            else
            {
                    SendClientMessage(playerid, COLOR_GRAD1, "   Esse jogador estб off-line.");
            }
        }
        return 1;
    }
Reply


Messages In This Thread
qual o problema com o comando? - by bombomloko - 31.10.2013, 17:49
Re: qual o problema com o comando? - by mau.tito - 31.10.2013, 17:53
Re: qual o problema com o comando? - by Eudes - 31.10.2013, 17:54
Re: qual o problema com o comando? - by bombomloko - 31.10.2013, 17:55
Re: qual o problema com o comando? - by Falcon. - 31.10.2013, 18:03
Re: qual o problema com o comando? - by bombomloko - 31.10.2013, 18:23

Forum Jump:


Users browsing this thread: 1 Guest(s)