19.09.2017, 13:41
Quote:
how i can getplayername if theres no playerid in public OnRconLoginAttempt(ip[], password[], success)
|
PHP код:
for(new i = GetPlayerPoolSize(); i != -1; --i) //Loop through all players
{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
{
SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message
Ban(i); //They are now banned.
}
}