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
}