Raised This Month: $ Target: $400
 0% 

rcon


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
KoST
Senior Member
Join Date: Jul 2005
Old 04-26-2006 , 21:45  
Reply With Quote #7

ok, you can use get_gametime() function to store start_time in client_connect and end_time in client_putinserver, then calculate the difference..

Code:
#include <amxmodx> new Float:start_time[33] new Float:end_time[33] public plugin_init(){     register_plugin("ConnectTime","1.0","KoST") } public client_connect(id){     start_time[id]=get_gametime()     return PLUGIN_CONTINUE } public client_putinserver(id){     end_time[id]=get_gametime()         new Float:difference=end_time[id]-start_time[id]     if (difference>7.0){         //do kick here     }     return PLUGIN_CONTINUE }

but you can also disable download from server very easy:
set server-cvar 'sv_allowdownload 0'
__________________
KoST 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 05:13.


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