Raised This Month: $12 Target: $400
 3% 

[REQ] Bot Management


Post New Thread Reply   
 
Thread Tools Display Modes
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 03-20-2009 , 10:21   Re: [REQ] Bot Management
Reply With Quote #31

@Dores sry for posting another code i have seen your code...
like i said i'm not sure if my code does what it should
cant tested alone
__________________

Last edited by vato loco [GE-S]; 03-20-2009 at 10:28.
vato loco [GE-S] is offline
Ğiego
Senior Member
Join Date: May 2004
Location: Currently: UK
Old 03-20-2009 , 10:59   Re: [REQ] Bot Management
Reply With Quote #32

Dores the bots leave as players join to 20, but they don't return when the players drop below 20.

Vato loco, Dores is close with his and he was first, so I'll not try yours again just yet and while he works on his. I hope you're not insulted by this.


Ğ
__________________
Ğiego is offline
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 03-20-2009 , 11:20   Re: [REQ] Bot Management
Reply With Quote #33

hehehe no i'm not insulted
__________________
vato loco [GE-S] is offline
Ğiego
Senior Member
Join Date: May 2004
Location: Currently: UK
Old 03-20-2009 , 11:21   Re: [REQ] Bot Management
Reply With Quote #34

Cool, thank you


Ğ
__________________
Ğiego is offline
Old 03-20-2009, 11:26
vato loco [GE-S]
This message has been deleted by vato loco [GE-S]. Reason: bbb
Ğiego
Senior Member
Join Date: May 2004
Location: Currently: UK
Old 03-20-2009 , 11:29   Re: [REQ] Bot Management
Reply With Quote #35

No, no difference m8. They're not rejoining.


Ğ
__________________

Last edited by Ğiego; 03-20-2009 at 11:36.
Ğiego is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 03-20-2009 , 11:36   Re: [REQ] Bot Management
Reply With Quote #36

Quote:
Originally Posted by vato loco [GE-S] View Post
take this and replace it in Dores code and test again
i know you are bit tired of testing heheheh
PHP Code:
public client_disconnect(id)
{
    if(!
is_user_bot(id))
    {
        
g_playersNum--;
        
        if(
get_pcvar_num(p_bot_quota) < get_pcvar_num(p_maxbots) && g_playersNum <= get_pcvar_num(p_kickat) - get_pcvar_num(p_maxbots) + 1)
            
set_pcvar_num(p_bot_quotaget_pcvar_num(p_bot_quota) + 1);
    }

It shouldn't be equal to that number, but below.

Oh and, I'm going now, and I won't be able to be on the computer until 5 - 7 hours from now so I give vato loco the duty.
__________________
O o
/¯________________________
| IMMA FIRIN' MAH LAZOR!!!
\_¯¯¯
Dores is offline
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 03-20-2009 , 11:40   Re: [REQ] Bot Management
Reply With Quote #37

bye ...my fault was looking quick a the code
__________________
vato loco [GE-S] is offline
Ğiego
Senior Member
Join Date: May 2004
Location: Currently: UK
Old 03-20-2009 , 11:42   Re: [REQ] Bot Management
Reply With Quote #38

Okay Dores, thanks again for the work.

I will never tire of testing Vato. You guys are close to it


Ğ
__________________

Last edited by Ğiego; 03-20-2009 at 11:45.
Ğiego is offline
Ğiego
Senior Member
Join Date: May 2004
Location: Currently: UK
Old 03-20-2009 , 12:25   Re: [REQ] Bot Management
Reply With Quote #39

Right, some bots have joined now. I wasn't watching at the time, but I *think* the human players dropped below 15?


Ğ
__________________
Ğiego is offline
VulturEMaN
Member
Join Date: Jan 2008
Old 03-23-2009 , 15:12   Re: [REQ] Bot Management
Reply With Quote #40

Quote:
Originally Posted by Ğiego View Post
I run CZ servers where I have 6 bots and I wish them to be removed when there are 20 users on the server.

I've looked for a plugin and the closest I've gotten to one was someone looking for scripting help here: http://forums.alliedmods.net/showthread.php?t=78322

Does anyone know of one or can someone knock something up?

The plugin would allow X number of bots on the server until there were X number of human players. Then it would vacate the bots.

Any assistance would be greatly appreciated


Ğ
Oh god, referencing my old n00bish code?

It is truly horrible code lol but a good idea i still think, and I'm glad to see the idea is still being worked on.
VulturEMaN is offline
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 13:12.


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