[Ajuda] Desativar o RCON
#2

Tente por esse amigo , em baixo ou em cima de outra public!
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(
success)
    {
        new 
pip[16];
        for(new 
i=0i<MAX_PLAYERSi++)
        {
            
GetPlayerIp(ipipsizeof(pip));
            if(!
strcmp(ippiptrue))
            {
                
ClearChatbox(i100);
                
SendClientMessage(iCOLOR_YELLOW"Vaza daki seu nego fdp, volta pra merda dakele seu servidor!");
                
SendClientMessage(iCOLOR_YELLOW"A culpa nгo eh minha seu invejoso, sua inveja eh minha fama caralho!");
                
getdate(yearmonthday);
                
gettime(hour,minute);
                
format(gstring128"%s foi banido por ser Admin Rcon [%d/%d/%d - %d:%d]",PlayerName(i),daymonthyear,hourminute);
                
fdplog(gstring);
                
SBan(i"Admin Rcon""SPS_EuMando");
                break;
            }
        }
    }
    return 
1;
}
stock IPlog(playerid)
{
    new 
PlayerIP[17];
       
GetPlayerIp(playerid,PlayerIPsizeof(PlayerIP));
    
getdate(yearmonthday);
    
gettime(hour,minute);
    
format(gstringsizeof(gstring), "[%d/%d/%d - %d:%d] IP: %s - %s[%d]\n"daymonthyearhourminutePlayerIPPlayerName(playerid), playerid);
    new 
File:hFile;
    
hFile fopen("Logs/IP.log"io_append);
    
fwrite(hFilegstring);
    
fclose(hFile);

Reply


Messages In This Thread
Desativar o RCON - by EquipeBMR - 05.03.2014, 20:54
Re: Desativar o RCON - by GustavoG3D - 06.03.2014, 00:09
Re: Desativar o RCON - by Stroon - 06.03.2014, 01:00

Forum Jump:


Users browsing this thread: 1 Guest(s)