AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Check if client is a bot (https://forums.alliedmods.net/showthread.php?t=174572)

Clavus 12-22-2011 07:42

Check if client is a bot
 
Simple question: what's the best way to check if a player is a bot, given the client index? I couldn't find any functions for it in the scripting reference.

Giass 12-22-2011 07:49

Re: Check if client is a bot
 
There is no such thing

Sylwester 12-22-2011 07:50

Re: Check if client is a bot
 
Search for bot in funcwiki

Devil259 12-22-2011 07:59

Re: Check if client is a bot
 
is_user_bot( index )

EDIT : You can use this too :

https://forums.alliedmods.net/showpo...9&postcount=34

Ham_CS_Player_IsBot (in Counter-Strike)

JoKeR LauGh 12-22-2011 08:02

Re: Check if client is a bot
 
PHP Code:

is_user_bot index 

????

Devil259 12-22-2011 08:03

Re: Check if client is a bot
 
Code:
public function( id ) {      if( !is_user_bot( id ) )           return      // your code here }

Clavus 12-22-2011 08:07

Re: Check if client is a bot
 
Thanks for the quick replies. :P

I'm not too familiar with where all the documentation is located. The is_user_bot doesn't show up in the scripting reference.

EDIT: hm when I'm trying to compile it says is_user_bot is an undefined symbol. I'm trying to distinguished TF2 bots from real players btw.

EDIT2: Oh wait wth am I doing in the AMX forum, this is a Sourcemod issue x.x. Sorry guys!

fysiks 12-22-2011 13:40

Re: Check if client is a bot
 
Quote:

Originally Posted by JoKeR LauGh (Post 1617682)
PHP Code:

is_user_bot index 

????

Do you have a question?


All times are GMT -4. The time now is 11:57.

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