"set_user_time" for bots
Yes, I know that this function doesn't exists, bot how can I set the uptime for bots ? It is currently used the server uptime.
More details: get_user_time(player) = normal uptime... since the player joined get_user_time(bot) = server uptime and I want to be the uptime since the bot was created.. If it is possible.. I saw it is. Thank you! |
Re: "set_user_time" for bots
I don't understand why you called "set_user_time" in the title and "get_user_time" in the thread, so i don't understand at all what you want.
If you want to use get_user_time() to bot, you tried like yo do with a player? using the index of the bot to the native? |
Re: "set_user_time" for bots
Quote:
You have to start timer, when player joins. That's all I think... Define get_gametime, when player joins and then check time played by defined gametime - current gametime. Code:
#include <amxmodx> |
Re: "set_user_time" for bots
Just made a few corrections. Untested
PHP Code:
|
Re: "set_user_time" for bots
It is "set_user_time" (with quotes, because the function doesn't exist) because this is what I want to do... a function like this!
The uptime must be 'native'. So if I call get_user_time(bot), the result must be the real uptime since the bot was created. Recap: I suppose that there are 2 ways to do it: 1. Find a way to create the bot with native uptime, using real time since he was created and not the server uptime; or 2. Find a way to set bot uptime (something similar with "set_user_time", rewriting the original uptime), so when I call get_user_time(bot), the result will be the number in seconds since the bot was created. I hope you understand, I want the uptime to be native (when you type "status" and others). Thank you again... and thanks for that code, but this is not what I want. |
Re: "set_user_time" for bots
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:
|
Re: "set_user_time" for bots
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 adrI want to transform it in something like this: Code:
# name userid uniqueid frag time ping loss adr |
Re: "set_user_time" for bots
I get it, but why do you want to alter the time internally? Using the above macro will give you exactly how long an individual player or bot has been on the server.
|
Re: "set_user_time" for bots
I don't need the time... It is for appearance.
The uptime appears in many places. If it won't be the same, then other players will think that those are real players (the score is also modified). It is possible, but I don't know how... no need help with scripting, I'm doing well. I just need a tip. Anyway, thank you so far! |
Re: "set_user_time" for bots
Nothing ?
|
| All times are GMT -4. The time now is 00:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.