18.07.2014, 13:34
You will have to find what player is using the IP from the callback. Loop through all the players, retrieve their IPs and compare them (using strcmp) to the IP of the rcon callback, if anyone matches, retrieve whatever you want from them.
pawn Код:
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".
}
}