Raised This Month: $ Target: $400
 0% 

Handle disconected


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 09-14-2013 , 07:34   Re: Handle disconected
Reply With Quote #4

Quote:
Originally Posted by Backstabnoob View Post
You can easily do something like this:

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "New Plugin" #define VERSION "1.0" #define AUTHOR "Author" new Trie: g_tPlayersLastConnection public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         g_tPlayersLastConnection = TrieCreate( ) } public client_disconnect( id ) {     new szAuthid[ 34 ]     get_user_authid( id, szAuthid, charsmax( szAuthid ) )         TrieSetCell( g_tPlayersLastConnection, szAuthid, get_systime( ) ) } public client_putinserver( id ) {     new szAuthid[ 34 ]     get_user_authid( id, szAuthid, charsmax( szAuthid ) )         if( !TrieKeyExists( g_tPlayersLastConnection, szAuthid ) )         return                     new iTime     TrieGetCell( g_tPlayersLastConnection, szAuthid, iTime )         if( get_systime( ) - iTime <= 300 )     {         // player has reconnected within 5 minutes     } }
How can I do something with his steamid if he does not connect again?
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
 



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 19:10.


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