Re: Bot Apology for TK
Quote:
If I use "<=" I can use 1 to 100. Quote:
Quote:
Quote:
Quote:
Code:
L 02/20/2009 - 00:37:07: [DODX] Invalid player 15Quote:
Using zero gives this: Code:
|RIP| Fysiks |mR killed his teammate Sgt.EVILswede with garandQuote:
I check is_user_connected because the bot could leave (and not be replaced) in the time set with the delay cvar. Also, engclient_cmd deos not work like that. "say" is the command and g_sorry_phrase[#] is arg1. Quote:
|
Re: Bot Apology for TK
Updated to 1.3.
|
Re: Bot Apology for TK
Quote:
Edit: forget it. I was tought that you were using random but you are using random_num |
Re: Bot Apology for TK
Quote:
Quote:
Quote:
But, anyway, you should remove the task on client_disconnect, so the check is_user_bot would be useless and also avoiding possible problems. Quote:
Anyway, you should avoid this way of coding, returning each time something. It will generate more code. You could do something like : PHP Code:
PHP Code:
|
Re: Bot Apology for TK
Quote:
Also, I was thinking that if it was a bot then I wouldn't need to do the "killed self" check or the TK check by returning PLUGIN_CONTINUE first and thus minimizing the execution time when there are no bots on the server (which is the time you want it to do as little as possible). Any thoughts on this would be great. Thanks for all your help :). EDIT: Updated to 1.4 |
Re: Bot Apology for TK
Not need to do that Vet. If player is a bot, it will return 1 otherwise 0. So, no need to "clear".
By the way : Code:
if(is_user_bot(id))Code:
is_bot[id] = is_user_bot(id);Quote:
|
Re: Bot Apology for TK
Your right ark, I realized that later and sheepishly deleted the post.
|
Re: Bot Apology for TK
Updated. I think we are close :). It's only been tested on DOD still, as far as I know.
|
Re: Bot Apology for TK
This plugin needs testing. If anyone can report that it does or doesn't work, please post.
If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me. Approval pending on changes. |
Re: Bot Apology for TK
fysiks... first you used ham to hook the death and that was good, ham is fast. so i think you should go back to ham.
why do ya do this: Code:
that is not needed at all, just use is_user_bot(id). if you want something random to happen you can do something like this: Code:
i dont understand your chance thing either... and not your Code:
if i where you i would start allover, and first thing i would do was to find how exec that say cmd on a bot, and after that find a good way to do get the random thing to happen... if i should make the random say txt i would do like this in a function: Code:
cheers |
| All times are GMT -4. The time now is 17:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.