[Ajuda] Quando eu kicko uma pessoa nгo aparece o motivo!
#1

Bem, quando eu kicko uma pessoa nгo aparece o motivo para ela, apenas aparece SERVER CLOSED CONNECTION.
Podem me ajudar? Comando /kick:

pawn Код:
if(strcmp(cmd, "/kick", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /kick [Id Do Jogador] [motivo]");
                return true;
            }
            giveplayerid = ReturnUser(tmp);
            if (PlayerInfo[playerid][pAdmin] >= 1)
            {
       if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != DONO)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
                    return true;
                }
                if(IsPlayerConnected(giveplayerid))
                {
                    if(giveplayerid != INVALID_PLAYER_ID)
                    {
                        if(PlayerInfo[giveplayerid][pAdmin] >= 1340 && PlayerInfo[playerid][pAdmin] < SUB_GERENTE)
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode kickar um Admin Dono !");
                            return true;
                        }
                        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        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: /kick [Id Do Jogador] [motivo]");
                            return true;
                        }
                        getdate(year, month, day);
                        if(admtrampando[playerid] == 1 && admhide[playerid] == 1)
                        {
                            format(string, sizeof(string), "AdmCmd: %s foi kickado por Homem_Aranha(Modo Cia), Motivo: %s (%d-%d-%d)", giveplayer, (result),day,month,year);
                            KickLog(string);
                            format(string, sizeof(string), "AdmCmd: %s foi kickado por Homem_Aranha, Motivo: %s", giveplayer, (result));
                            SendClientMessageToAll(COLOR_LIGHTRED, string);
                        }
                        else
                        {
                            format(string, sizeof(string), "AdmCmd: %s foi kickado por %s, Motivo: %s (%d-%d-%d)", giveplayer, sendername, (result),day,month,year);
                            KickLog(string);
                            format(string, sizeof(string), "AdmCmd: %s foi kickado por %s, Motivo: %s", giveplayer, sendername, (result));
                            SendClientMessageToAll(COLOR_LIGHTRED, string);
                        }
                        Kick(giveplayerid);
                        return true;
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Esse nгo й um jogador ativo.");
            }
        }
        return true;
    }
Reply


Messages In This Thread
Quando eu kicko uma pessoa nгo aparece o motivo! - by tristtok - 22.09.2013, 22:43
Re: Quando eu kicko uma pessoa nгo aparece o motivo! - by Juniiro3 - 22.09.2013, 22:48
Re: Quando eu kicko uma pessoa nгo aparece o motivo! - by Dana_scully - 22.09.2013, 23:01
Re: Quando eu kicko uma pessoa nгo aparece o motivo! - by PT - 22.09.2013, 23:07

Forum Jump:


Users browsing this thread: 1 Guest(s)