[Ajuda] /banirip nao esta banindo ip
#1

Ola galera Boa Tarde O Meu /banirip Nao esta banindo ip alguem poderia me ajudar a resolver?

PHP код:
 if(strcmp(cmd"/banirip"true) == 0) {
        if(
GetPlayerLevel(playerid) < 4) return SendClientMessage(playerid,0xDEEE20FF,"Admin: Vocк nгo tem Nivel Necessбrio para usar este comando");
        new 
Hours,Minutes,Seconds,Days,Months,Years;
        
gettime(HoursMinutesSeconds);getdate(YearsMonthsDays);
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp)) {
            
SendClientMessage(playerid0x007FFFAA"USE: /banirip [playerid] [motivo]");
            return 
1;
        }
        new 
length strlen(cmdtext);
        while ((
idx length) && (cmdtext[idx] <= ' ')) {
            
idx++;
        }
        new 
offset idx;
        new 
reason[64];
        while ((
idx length) && ((idx offset) < (sizeof(reason) - 1))) {
            
reason[idx offset] = cmdtext[idx];
            
idx++;
        }
        
reason[idx offset] = EOS;
        new 
playa strval(tmp);
        
GetPlayerName(playagiveplayersizeof(giveplayer));
        
GetPlayerName(playeridNomePlayersizeof(NomePlayer));
        
format(stringsizeof(string), "*Admin: %s foi Banido pelo %s. Motivo: %s",giveplayer ,NomePlayerreason);
        
SendClientMessageToAll(0x007FFFAAstring);
        
SendClientMessage(playa,COLOR_GREEN,"____________________________________________________");
        
format(stringsizeof(string), "Vocк foi pego.O admin baniu vocк: %s"NomePlayer);
        
SendClientMessage(playa,0x007FFFAAstring);
        
format(stringsizeof(string),"Motivo: %s "reason);
        
SendClientMessage(playa,0x007FFFAAstring);
        
format(stringsizeof(string), "Data: %d/%d/%d"Days,Months,Years);
        
SendClientMessage(playa,0x007FFFAA,string);
        
format(stringsizeof(string), "Hora %d:%d:%d",Hours,Minutes,Seconds);
        
SendClientMessage(playa,0x007FFFAA,string);
        
SendClientMessage(playa,COLOR_GREEN,"____________________________________________________");
        
Ban(playa);
        return 
1;
    } 
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: 1 Guest(s)