Raised This Month: $ Target: $400
 0% 

Store last 5 disconnected users


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Vesden
Junior Member
Join Date: Apr 2009
Old 04-14-2009 , 04:52   Store last 5 disconnected users
Reply With Quote #1

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?
Vesden is offline
ehha
SourceMod Donor
Join Date: Apr 2006
Location: Sibiu
Old 04-14-2009 , 05:03   Re: Store last 5 disconnected users
Reply With Quote #2

amx_last from admincmd.sma?
ehha is offline
Vesden
Junior Member
Join Date: Apr 2009
Old 04-14-2009 , 05:44   Re: Store last 5 disconnected users
Reply With Quote #3

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
Vesden is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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