Raised This Month: $ Target: $400
 0% 

OnClientConnected fires for bots?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Matheus28
Senior Member
Join Date: Aug 2009
Old 12-20-2009 , 09:39   OnClientConnected fires for bots?
Reply With Quote #1

The question is in the title
Matheus28 is offline
Matheus28
Senior Member
Join Date: Aug 2009
Old 12-20-2009 , 09:46   Re: OnClientConnected fires for bots?
Reply With Quote #2

I made some tests, the answer is no, I'll try to find a way to know how to detect when a bot enters in the server.
Matheus28 is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 12-20-2009 , 09:59   Re: OnClientConnected fires for bots?
Reply With Quote #3

You can hook the player_connect event, the networkid will be BOT.
pheadxdll is offline
Matheus28
Senior Member
Join Date: Aug 2009
Old 12-20-2009 , 10:14   Re: OnClientConnected fires for bots?
Reply With Quote #4

Thank you

Last edited by Matheus28; 12-20-2009 at 10:29.
Matheus28 is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 12-20-2009 , 10:15   Re: OnClientConnected fires for bots?
Reply With Quote #5

Instead of comparing the string networkid, just simply run the IsFakeClient function against the client id of the player.
bl4nk is offline
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 18:43.


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