padilha007, thank you very much, I didn't know that exists somehting like bot_api. Do you have some experience with it ? Here is my code:
PHP Code:
public test(id) {
new bot1_id
new Float:bot_origin[3]
//bot creating
create_bot("PR0_BOT_1")
//finding bot ID
static iPlayers[32], plnum
get_players( iPlayers, plnum, "" )
for( new i = 1; i <= plnum; i++ )
{
if (is_bot(iPlayers[i])) {
bot1_id=iPlayers[i]
}
}
//set bot to team and spawn
cs_set_user_team(bot1_id, cs_get_user_team(id))
cs_user_spawn(bot1_id)
//teleport to my location
get_user_origin(id,bot_origin,0)
set_bot_angles(bot1_id, bot_origin)
}
...but there is problem, when I set_bot_angles, then nothing happen and I don't know why... I need to teleport bot on my location... (I know, it will teleport BOT into me, but when this test plugin will work, i will edit it and use some set_task ...)
...I tryed to teleport BOT by set_user_origin, but I don't know why it works only in de_inferno. When I tryed it in de_dust2 then BOT started being auto-teleporting on map in some intervals. I really dont understand it...