HELP!
#5

Quote:
Originally Posted by DeStRoY232
Посмотреть сообщение
how i can getplayername if theres no playerid in public OnRconLoginAttempt(ip[], password[], success)
Using loop, get the player id by matching the ip[] with the player's IP in the loop.
PHP код:
for(new GetPlayerPoolSize(); != -1; --i//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.
            
}
        } 
^^ As I told you, more information on the usage with example is here, https://sampwiki.blast.hk/wiki/OnRconLoginAttempt
Reply


Messages In This Thread
HELP! - by DeStRoY232 - 19.09.2017, 13:37
Re: HELP! - by StrikerZ - 19.09.2017, 13:37
Re: HELP! - by DeStRoY232 - 19.09.2017, 13:39
Re: HELP! - by Eoussama - 19.09.2017, 13:41
Re: HELP! - by StrikerZ - 19.09.2017, 13:41
Re: HELP! - by DeStRoY232 - 19.09.2017, 13:44
Re: HELP! - by StrikerZ - 19.09.2017, 13:45
Re: HELP! - by DeStRoY232 - 19.09.2017, 13:46

Forum Jump:


Users browsing this thread: 5 Guest(s)