[Ajuda] BUG /KICK
#6

Quote:
Originally Posted by Powers
Посмотреть сообщение
Alguйm tem como ajudar?
Tenta ai;

PHP код:
    if(strcmp(cmd"/kick"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD2"USE: /kick [Id Do Jogador] [motivo]");
                return 
1;
            }
            
giveplayerid ReturnUser(tmp);
            if (
PlayerInfo[playerid][pAdmin] >= 1)
            {
                if(
admtrampando[playerid] < && PlayerInfo[playerid][pAdmin] != 1342)
                {
                    
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo estб trabalhando! (/trabalhar)");
                    return 
1;
                }
                if(
IsPlayerConnected(giveplayerid))
                {
                    if(
giveplayerid != INVALID_PLAYER_ID)
                    {
                        if(
PlayerInfo[giveplayerid][pAdmin] >= 1340 && PlayerInfo[playerid][pAdmin] < 1338)
                        {
                            
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo pode kickar um Admin Dono !");
                            return 
1;
                        }
                         
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
                        
GetPlayerName(playeridsendernamesizeof(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(playeridCOLOR_GRAD2"USE: /kick [Id Do Jogador] [motivo]");
                            return 
1;
                        }
                        
getdate(yearmonthday);
                        if(
admtrampando[playerid] == && admhide[playerid] == 1)
                        {
                            
format(stringsizeof(string), "[AVISO] %s foi kickado por ADMIM_BOT, Motivo: %s (%d-%d-%d)"giveplayer, (result),day,month,year);
                            
KickLog(string);
                            
format(stringsizeof(string), "[AVISO] %s foi kickado por ADMIM_BOT, Motivo: %s"giveplayer, (result));
                            
SendClientMessageToAll(COLOR_LIGHTREDstring);
                        }
                        else
                        {
                            
format(stringsizeof(string), "[AVISO] %s foi kickado por %s, Motivo: %s (%d-%d-%d)"giveplayersendername, (result),day,month,year);
                            
KickLog(string);
                            
format(stringsizeof(string), "[AVISO] %s foi kickado por %s, Motivo: %s"giveplayersendername, (result));
                            
SendClientMessageToAll(COLOR_LIGHTREDstring);
                        }
                        
Kick(giveplayerid);
                        return 
1;
                    }
                }
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GRAD1"   Esse nгo й um jogador ativo.");
            }
        }
        return 
1;
    } 
Reply


Messages In This Thread
BUG /KICK - by Powers - 08.04.2013, 16:39
Re: BUG /KICK - by iFox - 08.04.2013, 16:41
Re: BUG /KICK - by Powers - 08.04.2013, 16:56
Re: BUG /KICK - by ReDKiiL - 08.04.2013, 16:59
Re: BUG /KICK - by Powers - 08.04.2013, 19:17
Re: BUG /KICK - by Dick_Vigarista - 08.04.2013, 19:25
Re: BUG /KICK - by Powers - 08.04.2013, 19:29
Re: BUG /KICK - by Dick_Vigarista - 08.04.2013, 19:38
Re: BUG /KICK - by smiiir - 08.04.2013, 20:00
Re: BUG /KICK - by Dick_Vigarista - 08.04.2013, 20:07

Forum Jump:


Users browsing this thread: 2 Guest(s)