AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Store last 5 disconnected users (https://forums.alliedmods.net/showthread.php?t=90102)

Vesden 04-14-2009 04:52

Store last 5 disconnected users
 
I want to store player names and their IP if they disconnects from the server and see that info by a simple console cmd, for example

LastPlayer[1][32] = PlayerName1
LastPlayer[2][32] = PlayerName2
LastPlayer[3][32] = PlayerName3
LastPlayer[4][32] = PlayerName4
LastPlayer[5][32] = PlayerName5

and if a 6th player left the server will be like this

LastPlayer[1][32] = PlayerName2
LastPlayer[2][32] = PlayerName3
LastPlayer[3][32] = PlayerName4
LastPlayer[4][32] = PlayerName5
LastPlayer[5][32] = PlayerName6

and so on

with their playername and their ip's but i can't figure out how to do this.
any example?

ehha 04-14-2009 05:03

Re: Store last 5 disconnected users
 
amx_last from admincmd.sma?

Vesden 04-14-2009 05:44

Re: Store last 5 disconnected users
 
My bad, i was using an old version of admincmd, i didn't replace it in the upgrading.

so I did not see the existence of that command

thanks ehha


All times are GMT -4. The time now is 02:16.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.