View Single Post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-20-2009 , 19:55   Re: Bot Apology for TK
Reply With Quote #16

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))
{  is_bot[id] = true;	}
else
{  is_bot[id] = false;	}
=>
Code:
is_bot[id] = is_user_bot(id);
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.
Not sure to fully understand. But it seems that you still return PLUGIN_CONTINUE, which you can avoid that, doing like I've done above. It will generate less code.
Arkshine is offline