[Ajuda] /banirip nao esta banindo ip
#5

manow vc qr um comando q da ban sу o ip ? ou da ban a acc eo ip ... vo te passa o cod de ban q ta em meu gm

PHP код:
if(strcmp(cmd"/ban"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD2"USE: /ban [id] [motivo]");
                return 
1;
            }
            
giveplayerid ReturnUser(tmp);
            if (
PlayerInfo[playerid][pAdmin] >= 3)
            {
                if(
admtrampando[playerid] < && PlayerInfo[playerid][pAdmin] != 1342 && PlayerInfo[playerid][pAdmin] != 1341)
                {
                    
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo estб trabalhando! (/trabalhar)");
                    return 
1;
                }
                if(
IsPlayerConnected(giveplayerid))
                {
                    if(
giveplayerid != INVALID_PLAYER_ID)
                    {
                        if(
PlayerInfo[giveplayerid][pAdmin] >= 1340)
                        {
                            
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo pode banir 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: /ban [id] [motivo]");
                            return 
1;
                        }
                        
getdate(yearmonthday);
                        if(
admtrampando[playerid] == && admhide[playerid] == 1)
                        {
                            
format(stringsizeof(string), "AdmCmd: %s foi banido por Chuck(Modo Cia), Motivo: %s (%d-%d-%d)"giveplayer,(result),day,month,year);
                            
//BanLog(string);
                            
format(stringsizeof(string), "AdmCmd: %s foi banido por Chuck, Motivo: %s"giveplayer,(result));
                            
SendClientMessageToAll(COLOR_LIGHTREDstring);
                        }
                        else
                        {
                            
format(stringsizeof(string), "AdmCmd: %s foi banido por %s, Motivo: %s (%d-%d-%d)"giveplayersendername, (result),day,month,year);
                            
BanLog(string);
                            
format(stringsizeof(string), "AdmCmd: %s foi banido por %s, Motivo: %s"giveplayersendername, (result));
                            
SendClientMessageToAll(COLOR_LIGHTREDstring);
                        }
                        
SendClientMessage(giveplayeridCOLOR_WHITE"{FFFFFF}__ Instruзхes para revisгo de Ban __");
                        
SendClientMessage(giveplayeridCOLOR_YELLOW2"Tire uma SS da tela apertando F8 imediatamente apуs ser banido");
                        
SendClientMessage(giveplayeridCOLOR_YELLOW2"E acesse o nosso forum: www.brasilmegavirtual.forumeiros.com"); // Aqui coloque o seu forum *-*
                        
SendClientMessage(giveplayeridCOLOR_LIGHTRED"Atenзгo: Vocк sу serб desbanido caso for inocente");
                        
//Ban(giveplayerid);
                        
SBan(giveplayeridresultsendername);
                        return 
1;
                    }
                }
//not connected
            
}
            else
            {
                
SendClientMessage(playeridCOLOR_GRAD1"   Esse nгo й um jogador ativo.");
            }
        } 
Reply


Messages In This Thread
/banirip nao esta banindo ip - by Douglas651 - 01.09.2013, 18:04
Re: /banirip nao esta banindo ip - by Nill.Oliveira - 01.09.2013, 18:54
Re: /banirip nao esta banindo ip - by Douglas651 - 01.09.2013, 19:09
Re: /banirip nao esta banindo ip - by Douglas651 - 01.09.2013, 19:21
Re: /banirip nao esta banindo ip - by Samuel300 - 01.09.2013, 19:21
Re: /banirip nao esta banindo ip - by Douglas651 - 01.09.2013, 19:28
Re: /banirip nao esta banindo ip - by Douglas651 - 01.09.2013, 19:56

Forum Jump:


Users browsing this thread: 3 Guest(s)