Raised This Month: $ Target: $400
 0% 

"set_user_time" for bots


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-28-2010 , 13:53   Re: "set_user_time" for bots
Reply With Quote #1

Maybe a macro like this? This will return the calculated time for bots and get_user_time() for real players. This would be used in conjunction with my code above.

PHP Code:
#define get_user_time2(%1) (is_user_bot(%1) ? float_round(get_gametime()-g_fGameTime[%1]):get_user_time(%1)) 
__________________

Last edited by Bugsy; 07-28-2010 at 16:35.
Bugsy is offline
portocala
Member
Join Date: Jun 2010
Old 07-29-2010 , 15:09   Re: "set_user_time" for bots
Reply With Quote #2

No.

If I type status, then the bot's uptime is still the server uptime, not the real one.
I don't need to know the uptime, this is simple. I need to show a real or any uptime (different) from bot to bot - when I type status.

Ex:

Original:
Code:
#      name userid uniqueid frag time ping loss adr
# 1 "bot1" 1 BOT   6 07:58    0    0
# 2 "bot2" 2 BOT  25 07:58    0    0
# 3    "bot3" 3 BOT  17 07:58    0    0
07:58 is the bot's uptime and server too - you know, obviously...

I want to transform it in something like this:
Code:
#      name userid uniqueid frag time ping loss adr
# 1 "bot1" 1 BOT   6 02:01    0    0
# 2 "bot2" 2 BOT  25 03:21    0    0
# 3    "bot3" 3 BOT  17 07:21    0    0
Real, random... no matter!
portocala 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 00:10.


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