18.07.2014, 03:47
How To get the name or the id of the player who rcon login attempt
OnRconLoginAttempt(ip[], password[], success)
OnRconLoginAttempt(ip[], password[], success)
for (new i = 0; i < MAX_PLAYERS; ++i)
{
new player_ip[16];
GetPlayerIp(i, player_ip, sizeof(player_ip));
if (!strcmp(player_ip, ip, true)) // "ip" is coming from the callback.
{
// A player has been found and their ID is now stored in "i".
}
}