PDA

View Full Version : Get IP on OnPlayerDisconnect


Blackazur
07/12/2013, 01:38 PM
Is it possible and when yes how, give me a example please.

Konstantinos
07/12/2013, 01:42 PM
I think it will return 255.255.255.255

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


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 ]