Raised This Month: $ Target: $400
 0% 

"set_user_time" for bots


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-27-2010 , 23:52   Re: "set_user_time" for bots
Reply With Quote #4

Just made a few corrections. Untested
PHP Code:
#include <amxmodx>

new Floatg_fGameTime33 ];

public 
plugin_init()
{
    
register_clcmd("say /time""cmd_timer");
}

public 
client_connectid )
{
    
g_fGameTimeid ] = get_gametime();
}

public 
client_disconnectid )
{
    
g_fGameTimeid ] = 0.0;
}

public 
cmd_timerid )
{
    new 
FloatfSec = ( get_gametime() - g_fGameTimeid ] );
    
client_printid print_chat "You're playing already for %f seconds" fSec );

__________________

Last edited by Bugsy; 07-28-2010 at 00:03.
Bugsy 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 00:10.


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