Raised This Month: $ Target: $400
 0% 

BOT IDs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 06-15-2012 , 06:36   BOT IDs
Reply With Quote #1

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.....
__________________
Working On:
  1. Gameplay 1 - 0% [PAUSED]
Waleed is offline
Send a message via Skype™ to Waleed
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-15-2012 , 12:23   Re: BOT IDs
Reply With Quote #2

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.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 06-15-2012 , 13:55   Re: BOT IDs
Reply With Quote #3

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.......
__________________
Working On:
  1. Gameplay 1 - 0% [PAUSED]
Waleed is offline
Send a message via Skype™ to Waleed
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 06-15-2012 , 14:06   Re: BOT IDs
Reply With Quote #4

When do you call this?
__________________
<VeCo> is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-15-2012 , 14:14   Re: BOT IDs
Reply With Quote #5

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.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-15-2012 , 14:47   Re: BOT IDs
Reply With Quote #6

(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.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 06-15-2012 at 14:48.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 06-16-2012 , 04:06   Re: BOT IDs
Reply With Quote #7

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
__________________
Working On:
  1. Gameplay 1 - 0% [PAUSED]
Waleed is offline
Send a message via Skype™ to Waleed
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-16-2012 , 13:20   Re: BOT IDs
Reply With Quote #8

Quote:
Originally Posted by Waleed View Post
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
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-16-2012 , 13:34   Re: BOT IDs
Reply With Quote #9

Amxx works fine on condition zero bots, please don't lie
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Waleed
Senior Member
Join Date: May 2012
Location: Pakistan
Old 06-16-2012 , 14:00   Re: BOT IDs
Reply With Quote #10

I don't know which bot am I using but it works fine with amxx and every stuff,No error relating to bots
__________________
Working On:
  1. Gameplay 1 - 0% [PAUSED]
Waleed is offline
Send a message via Skype™ to Waleed
Reply



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:09.


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