Get IP on OnPlayerDisconnect
#1

Is it possible and when yes how, give me a example please.
Reply
#2

I think it will return 255.255.255.255

Just get the player's IP once when they connect and that's it.

pawn Код:
new
    Player_IP[ MAX_PLAYERS ][ 16 ]
;

// OnPlayerConnect:
GetPlayerIp( playerid, Player_IP[ playerid ], 16 );
Wherever you want to use the player's IP, just use: Player_IP[ playerid ]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)