[Ajuda] OnRconLoginAttempt
#1

Bom galera tava vendo esse tуpico no wiki do samp sу que a mensagem do SendClientMessage nгo aparace sу aparece server closed connection, estou usando ъltima versгo do samp.
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!
success//If the password was incorrect
    
{
        
printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ippassword);
        new 
pip[16];
        for(new 
i=0i<MAX_PLAYERSi++) //Loop through all players
        
{
            
GetPlayerIp(ipipsizeof(pip));
            if(!
strcmp(ippiptrue)) //If a player's IP is the IP that failed the login
            
{
                
SendClientMessage(i0xFFFFFFFF"Wrong Password. Bye!"); //Send a message
                
Ban(i); //They are now banned.
            
}
        }
    }
    return 
1;

Reply


Messages In This Thread
OnRconLoginAttempt - by kixtz - 16.12.2013, 22:55
Re: OnRconLoginAttempt - by Gii - 16.12.2013, 23:04
Re: OnRconLoginAttempt - by kixtz - 16.12.2013, 23:33
Re: OnRconLoginAttempt - by focaximubh - 17.12.2013, 00:31

Forum Jump:


Users browsing this thread: 1 Guest(s)