[Ajuda] O que estб mal neste cуdigo ?
#6

pawn Код:
if(strcmp(cmd,"/amudarnick",true)==0)
{
    if(IsPlayerConnected(playerid))
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
            return SendClientMessage(playerid, COLOR_GRAD2, "USE: /amudarnick [ id ]");
       
        if(!(PlayerInfo[playerid][pAdmin] == 1341))
            return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб autorizado a usar este comando!");
        if(IsPlayerConnected(ReturnUser(tmp)) && ReturnUser(tmp) != INVALID_PLAYER_ID)
        {
            MudarNickAceito[ReturnUser(tmp)] = 1;
            GetPlayerName(ReturnUser(tmp), giveplayer, sizeof(giveplayer));
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "Admin %s: Autorizou vocк a mudar o nick, digite /mudarnick.", sendername);
            SendClientMessage(ReturnUser(tmp), COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "ADMIN CMD: %s autorizou %s a mudar o nick !",sendername,giveplayer);
            ABroadCast(COLOR_LIGHTRED,string,1);
        }
    }
    return 1;
}
https://sampforum.blast.hk/showthread.php?tid=252966
Reply


Messages In This Thread
O que estб mal neste cуdigo ? - by JOTACGAMER - 26.06.2014, 20:40
Re: O que estб mal neste cуdigo ? - by DogeMan - 26.06.2014, 20:47
Re: O que estб mal neste cуdigo ? - by Bruno13 - 26.06.2014, 20:57
Re: O que estб mal neste cуdigo ? - by JOTACGAMER - 26.06.2014, 21:08
Re: O que estб mal neste cуdigo ? - by DogeMan - 26.06.2014, 21:12
Re: O que estб mal neste cуdigo ? - by PT - 26.06.2014, 21:19
Re: O que estб mal neste cуdigo ? - by JOTACGAMER - 26.06.2014, 21:22
Re: O que estб mal neste cуdigo ? - by DogeMan - 26.06.2014, 21:52
Re: O que estб mal neste cуdigo ? - by WLSF - 26.06.2014, 21:56

Forum Jump:


Users browsing this thread: 1 Guest(s)