Quote:
Originally Posted by marcelowzd
Now that you said it, he is very far away, but i can see his name in front of me.
|
I think I know what your problem is.
You used cs_set_user_team without the client (or in this case, your fake player) actually joining a team via 'jointeam' and then 'joinclass', so he's floating somewhere around the map and teleporting to some weird origins without any explanations.
Try to do engclient_cmd(g_iBotIndex, "jointeam", "1"); and joinclass 1.
Edit: looked at Bugys's code, i'm pretty certain that's the problem. He did this:
PHP Code:
engclient_cmd( g_BotID, "jointeam", szTeam );
engclient_cmd( g_BotID, "joinclass", "1" );
Do this instead of cs_set_user_team.