[Ajuda] Banido voltando
#5

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] >= 4
            { 
                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"{B5B5B5}|_B_M_|__ Instruзхes para revisгo de Ban __|_B_M_|"); 
                        
SendClientMessage(giveplayeridCOLOR_YELLOW2"Tire uma SS da tela apertando F8 imediatamente apуs ser banido"); 
                        
SendClientMessage(giveplayeridCOLOR_YELLOW2"E acesse o nosso forum: www.brasilmultiplayer.forumeiros.com"); 
                        
SendClientMessage(giveplayeridCOLOR_LIGHTRED"Atenзгo: Vocк sу serб desbanido caso for inocente"); 
                        
Ban(giveplayerid); 
                        
//SBan(giveplayerid, result, sendername); 
                        
return 1
                    } 
                }
//not connected 
            

            else 
            { 
                
SendClientMessage(playeridCOLOR_GRAD1"   Esse nгo й um jogador ativo."); 
            } 
        } 
        return 
1
    } 
Reply


Messages In This Thread
Banido voltando - by Petrick™ - 14.10.2012, 16:51
Re: Banido voltando - by humildadeforever - 14.10.2012, 16:59
Re : Re: Banido voltando - by Petrick™ - 14.10.2012, 17:10
Re: Banido voltando - by ForT - 14.10.2012, 17:18
Re: Banido voltando - by humildadeforever - 14.10.2012, 17:21
Re : Re: Banido voltando - by Petrick™ - 14.10.2012, 17:22
Re: Banido voltando - by MatriXBorn - 14.10.2012, 17:25
Re: Banido voltando - by ForT - 14.10.2012, 17:25
Re : Re: Banido voltando - by Petrick™ - 14.10.2012, 17:33
Re: Re : Re: Banido voltando - by humildadeforever - 14.10.2012, 17:35

Forum Jump:


Users browsing this thread: 1 Guest(s)