AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   BOT IDs (https://forums.alliedmods.net/showthread.php?t=187584)

Waleed 06-15-2012 06:36

BOT IDs
 
Do BOT have IDs?
I have used the below code that works on me(admin),
But not working on BOTS(any normal players).

Code:

if (is_user_bot(id)){
cs_get_user_team(id)
cs_set_user_team(id, CS_TEAM_T, CS_DONTCHANGE)
}

If its wrong,Then how to set BOT team to T?
Thanks in advance.....

Liverwiz 06-15-2012 12:23

Re: BOT IDs
 
if the bot is a T you won't see a team change.
But it looks right to me....though you're not doing anything with the cs_get_user_team call.

Waleed 06-15-2012 13:55

Re: BOT IDs
 
I was only using
Code:

cs_set_user_team(id, CS_TEAM_T, CS_DONTCHANGE)
But then it was showing me some errors,So I used
Code:

cs_get_user_team(id)
cs_set_user_team(id, CS_TEAM_T, CS_DONTCHANGE)

Then no errors,But,The problem is that bots from CT were not transfering to T.Still couldn't find out the way to do it.......

<VeCo> 06-15-2012 14:06

Re: BOT IDs
 
When do you call this?

Liverwiz 06-15-2012 14:14

Re: BOT IDs
 
not sure how much this will work but give it a shot:

Code:
if(is_user_bot(id) && cs_get_user_team(id) == CS_TEAM_CT)     cs_set_user_team(id, CS_TEAM_T)

lol....you are testing in Counter-Strike, yes? or Condition Zero....
I'm not sure if CZ bots work the same as humans, though. I'm sure someone smarter than i would know.

^SmileY 06-15-2012 14:47

Re: BOT IDs
 
(is_user_bot(id) && cs_get_user_team(id) == CS_TEAM_CT) ? cs_set_user_team(id,CS_TEAM_T) : return 1;

EDIT:

if you are using CZ bots with Condition zero isnot work, use podbots.
CZ bots in 1.6 are illegal.

Waleed 06-16-2012 04:06

Re: BOT IDs
 
I don't know which bots am I using?
But I am not going to use PODBOT,Sorry.
Someone told me to download bot.cfg and execute it through console or server.cfg
It works okay O_O

Liverwiz 06-16-2012 13:20

Re: BOT IDs
 
Quote:

Originally Posted by Waleed (Post 1729648)
I don't know which bots am I using?
But I am not going to use PODBOT,Sorry.
Someone told me to download bot.cfg and execute it through console or server.cfg
It works okay O_O

If you're using standard bots (with no mods controlling them) in Condition Zero, you're using CZ bots. They are funny little critters that don't work well with others....especially AMXX

ConnorMcLeod 06-16-2012 13:34

Re: BOT IDs
 
Amxx works fine on condition zero bots, please don't lie :)

Waleed 06-16-2012 14:00

Re: BOT IDs
 
I don't know which bot am I using but it works fine with amxx and every stuff,No error relating to bots


All times are GMT -4. The time now is 06:09.

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