Raised This Month: $ Target: $400
 0% 

Check if client is a bot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Clavus
Junior Member
Join Date: May 2010
Old 12-22-2011 , 07:42   Check if client is a bot
Reply With Quote #1

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.
Clavus is offline
Giass
Member
Join Date: Aug 2011
Location: {Israel}
Old 12-22-2011 , 07:49   Re: Check if client is a bot
Reply With Quote #2

There is no such thing
__________________
All you need is carb
Giass is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 12-22-2011 , 07:50   Re: Check if client is a bot
Reply With Quote #3

Search for bot in funcwiki
__________________
Impossible is Nothing
Sylwester is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-22-2011 , 07:59   Re: Check if client is a bot
Reply With Quote #4

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)
__________________
You can do anything you set your mind to, man.


Last edited by Devil259; 12-22-2011 at 08:01.
Devil259 is offline
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 12-22-2011 , 08:02   Re: Check if client is a bot
Reply With Quote #5

PHP Code:
is_user_bot index 
????
__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.
JoKeR LauGh is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-22-2011 , 13:40   Re: Check if client is a bot
Reply With Quote #6

Quote:
Originally Posted by JoKeR LauGh View Post
PHP Code:
is_user_bot index 
????
Do you have a question?
__________________
fysiks is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-22-2011 , 08:03   Re: Check if client is a bot
Reply With Quote #7

Code:
public function( id ) {      if( !is_user_bot( id ) )           return      // your code here }
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Clavus
Junior Member
Join Date: May 2010
Old 12-22-2011 , 08:07   Re: Check if client is a bot
Reply With Quote #8

Thanks for the quick replies.

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!

Last edited by Clavus; 12-22-2011 at 08:13.
Clavus is offline
Old 12-23-2011, 00:21
DjOptimuS
This message has been deleted by DjOptimuS.
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 11:57.


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