[DUV] Criar Comando /resetarconta
#4

Quote:
Originally Posted by Power_GamerX
Посмотреть сообщение
tbm vo ajuda pra ver no que da nй ta ae :
pawn Код:
if (strcmp(cmd, "/resetarconta", true)==0)
    {
        if((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >=6)
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_WHITE, "USE: /resetarconta [Nome_Sobrenome]");
                return 1;
            }
            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
            GetPlayerName(playerid, sendername, sizeof(giveplayer));
            format(string, 256, "[ADMIN]: %s resetou a conta de %s", sendername, tmp);
            ABroadCast(COLOR_YELLOW,string,1);
            format(string, 256, "[ADMIN]: %s resetou a conta de %s", sendername, tmp);
            printf(string);
            format(string,sizeof(string),"%s.ini",tmp);
            fremove(string);
            SendClientMessage(playerid, COLOR_WHITE, "Player resetado");
            SendRconCommand(string);
            SendRconCommand("reloadbans");
            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
            GetPlayerName(playerid, sendername, sizeof(sendername));
        }
        return 1;
    }
Esse comando й para desbanir e deletar.
Reply


Messages In This Thread
[DUV] Criar Comando /resetarconta - by gabrielbnv - 26.12.2010, 18:01
Re: [DUV] Criar Comando /resetarconta - by wgrafael - 26.12.2010, 18:09
Re: [DUV] Criar Comando /resetarconta - by Power_GamerX - 26.12.2010, 18:17
Re: [DUV] Criar Comando /resetarconta - by wgrafael - 26.12.2010, 18:19

Forum Jump:


Users browsing this thread: 1 Guest(s)