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.
|
Re: Check if client is a bot
There is no such thing
|
Re: Check if client is a bot
Search for bot in funcwiki
|
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) |
Re: Check if client is a bot
PHP Code:
|
Re: Check if client is a bot
Code:
|
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! |
Re: Check if client is a bot
Quote:
|
| All times are GMT -4. The time now is 11:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.