Raised This Month: $ Target: $400
 0% 

Prevent bots from changing team or spectating? (FoxBot for TFC)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pizzahut
Senior Member
Join Date: Oct 2004
Old 06-04-2017 , 16:44   Re: Prevent bots from changing team or spectating? (FoxBot for TFC)
Reply With Quote #11

Maybe PodBot works differently. I did this and it only ever said once that a human joins (which was me), no mention of a bot using any of these commands:

Code:
#include <amxmodx> #include <engine> public plugin_init() {     register_plugin("bot test", "1", "pizzahut")     register_clcmd("chooseteam", "my_chooseteam")     register_clcmd("jointeam", "my_jointeam")     register_clcmd("team_join", "my_team_join") } public my_chooseteam(id) {     if (is_user_bot(id))     {         client_print(0, print_console, "Bot used command 'chooseteam'.")         engclient_cmd( id, "jointeam", "2" )         return PLUGIN_HANDLED     }     client_print(0, print_console, "Human used command 'chooseteam'.")     engclient_cmd( id, "jointeam", "1" )     return PLUGIN_HANDLED } public my_jointeam(id) {     if (is_user_bot(id))     {         client_print(0, print_console, "Bot used command 'jointeam'.")         engclient_cmd( id, "jointeam", "2" )         return PLUGIN_HANDLED     }     client_print(0, print_console, "Human used command 'jointeam'.")     engclient_cmd( id, "jointeam", "1" )     return PLUGIN_HANDLED } public my_team_join(id) {     if (is_user_bot(id))     {         client_print(0, print_console, "Bot used command 'team_join'.")         engclient_cmd( id, "jointeam", "2" )         return PLUGIN_HANDLED     }     client_print(0, print_console, "Human used command 'team_join'.")     engclient_cmd( id, "jointeam", "1" )     return PLUGIN_HANDLED }

Last edited by pizzahut; 06-04-2017 at 16:46.
pizzahut is offline
 



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 06:56.


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