Posts: 65
Threads: 17
Joined: Jun 2009
Reputation:
0
hey guys.
can someone give me a code for --- onplayerdisconnect ip adress for admins to see
like so when a players leaves, admins will be able to see a persons ip adress.
example: Michael left [123.245.2.32]
Posts: 6,340
Threads: 58
Joined: May 2009
Reputation:
0
If you're going to get player's ip at OnPlayerDisconnect callback then it won't work, because there is a bug if you want to get player's ip at OnPlayerDisconnect, it will always show ip 255.255.255.255.
Posts: 65
Threads: 17
Joined: Jun 2009
Reputation:
0
it says that:
symbol already defined: "GetPlayerName"
Line: ip[16]; error 010: invalid function or declaration
line: for(new i = 0; i<MAX_PLAYERS; i++) error 010: invalid function or declaration
Line: if(IsPlayerAdmin(i)) error 010: invalid function or declaration
Posts: 116
Threads: 16
Joined: May 2008
Reputation:
0
Just get the ip when the player connects, store it somewhere, and when they disconnect, show it again.
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
I could have sworn I just did that but showed him in code, next time read before posting.
Posts: 65
Threads: 17
Joined: Jun 2009
Reputation:
0
so what about all these errors?