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

PODBOT Bots Potential Manager [ PB BPM]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
ish12321
Veteran Member
Join Date: May 2016
Old 06-29-2016 , 12:58   PODBOT Bots Potential Manager [ PB BPM]
Reply With Quote #1

This plugin checks the user deaths and with calculating that it checks if the teams are equal and if bots are owning humans it lowers bots powers and vice versa

Installation ::

1. Download the SMA file provided below
2. Compile it
3. Copy it to the amxmodx plugins folder
4. Edit plugins.ini in configs folder

Quote:
Changelog :

Version 1.0.2
  • Podbot is disabled if the map is AWP map ( contains AWP_ )
Version 1.01
  • Used a better and short way to kick players
  • Fixed error in the bot potential check algorithm
    (Bots power was increased if they are owning others instead of getting decreased)

Version 1.00

  • Plugin Released
Attached Files
File Type: sma Get Plugin or Get Source (PB BPM.sma - 766 views - 3.5 KB)

Last edited by ish12321; 07-03-2016 at 14:10.
ish12321 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-29-2016 , 14:09   Re: PODBOT Bots Potential Manager [ PB BPM]
Reply With Quote #2

Start by fixing your indentation and overall plugin presentation.
__________________
HamletEagle is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 06-30-2016 , 11:09   Re: PODBOT Bots Potential Manager [ PB BPM]
Reply With Quote #3

I indented this for you. Does this actually even work lol? I really doubt it.

Just by installing a cvar and setting random value's to it doesn't mean the bots actually get stronger or weaker? This makes no sense in my eyes.

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

new PLUGIN[] = "PodBot Manager"
new AUTHOR[] = "Ish Chhabra"
new VERSION[] = "1.00"

new pbmaxbot_cvar 
new pbmaxbots 

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
pbmaxbot_cvar register_cvar("amx_pbmaxbots""10")
    
pbmaxbots get_pcvar_num(pbmaxbot_cvar)
    
    
register_clcmd("say /podbotcheck""podbots"ADMIN_KICK"Check PodBots Skill just now")
    
    
    new 
map[32]
    
get_mapname(map31)
    
// chcek if current map is awp_*
    
if (containi(map"awp_") == 0) {
        
// [executes disable() function] 
        
set_task(1.0"disable")
        } else {
        
// [executes enable()
        // function]
        
set_task(1.0"enable")
        
// [executes podbots()
        // function]
        
register_logevent("podbots"2"1=Round_End")
    }
    
}

// disable podbot on having AWP maps 
public disable(){
    
server_cmd("pb_maxbots 1")
}

// enable podbot on other maps by setting podbot maxbots to more than 0
public enable(){
    
server_cmd("pb_maxbots %d"pbmaxbots)
}

new 
Players_bot[32]
new 
Players[32]
new 
playerCount_botiplayer_bot
new playerCountplayer
new bot_final_deaths 0
new player_final_deaths 0
new maxbotskill 80 
new minbotskill 50 
new bot_name[33]

// manage the skills of podbot to make them not owned by pro players
// or not own weak players

public podbots()
{
    
get_players(Players_botplayerCount_bot"d")
    
    for (
0playerCount_boti++) {
        
player_bot Players_bot[i]
        new 
bot_deaths get_user_deaths(player_bot)
        
bot_final_deaths bot_final_deaths bot_deaths
    
}
    
    
get_players(PlayersplayerCount"c")
    
    for (
0playerCounti++) {
        
player Players[i]
        new 
player_deaths get_user_deaths(player)
        
player_final_deaths player_final_deaths player_deaths
    
}
    
    if (
player_final_deaths != && bot_final_deaths != && playerCount != && playerCount_bot != 0) {
        if (
player_final_deaths playerCount bot_final_deaths playerCount_bot && maxbotskill >= 10 && minbotskill >= 20) {
            
maxbotskill maxbotskill 10 
            minbotskill 
maxbotskill 20 
            
            server_cmd
("pb_maxbotskill %d"maxbotskill)
            
server_cmd("pb_minbotskill %d"minbotskill)
            
            
            for (
0playerCount_boti++) {
                
player_bot Players_bot[i]
                
get_user_name(player_botbot_name32)
                
server_cmd("amx_kick %s"bot_name)
            }
        }
        else if (
player_final_deaths playerCount bot_final_deaths playerCount_bot && maxbotskill <= 95 && minbotskill <= 90) {
            
maxbotskill maxbotskill 
            minbotskill 
minbotskill 10 
            server_cmd
("pb_maxbotskill %d"maxbotskill)
            
server_cmd("pb_minbotskill %d"minbotskill)
            
            for (
0playerCount_boti++) {
                
player_bot Players_bot[i]
                
get_user_name(player_botbot_name32)
                
server_cmd("amx_kick %s"bot_name)
            }
        }
    }

__________________

Last edited by Napoleon_be; 06-30-2016 at 11:19.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
ish12321
Veteran Member
Join Date: May 2016
Old 06-30-2016 , 11:22   Re: PODBOT Bots Potential Manager [ PB BPM]
Reply With Quote #4

Quote:
Originally Posted by Napoleon_be View Post
I indented this for you. Does this actually even work lol? I really doubt it.

Just by installing a cvar and setting random value's to it doesn't mean the bots actually get stronger or weaker? This makes no sense in my eyes.

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

new PLUGIN[] = "PodBot Manager"
new AUTHOR[] = "Ish Chhabra"
new VERSION[] = "1.00"

new pbmaxbot_cvar 
new pbmaxbots 

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
pbmaxbot_cvar register_cvar("amx_pbmaxbots""10")
    
pbmaxbots get_pcvar_num(pbmaxbot_cvar)
    
    
register_clcmd("say /podbotcheck""podbots"ADMIN_KICK"Check PodBots Skill just now")
    
    
    new 
map[32]
    
get_mapname(map31)
    
// chcek if current map is awp_*
    
if (containi(map"awp_") == 0) {
        
// [executes disable() function] 
        
set_task(1.0"disable")
        } else {
        
// [executes enable()
        // function]
        
set_task(1.0"enable")
        
// [executes podbots()
        // function]
        
register_logevent("podbots"2"1=Round_End")
    }
    
}

// disable podbot on having AWP maps 
public disable(){
    
server_cmd("pb_maxbots 1")
}

// enable podbot on other maps by setting podbot maxbots to more than 0
public enable(){
    
server_cmd("pb_maxbots %d"pbmaxbots)
}

new 
Players_bot[32]
new 
Players[32]
new 
playerCount_botiplayer_bot
new playerCountplayer
new bot_final_deaths 0
new player_final_deaths 0
new maxbotskill 80 
new minbotskill 50 
new bot_name[33]

// manage the skills of podbot to make them not owned by pro players
// or not own weak players

public podbots()
{
    
get_players(Players_botplayerCount_bot"d")
    
    for (
0playerCount_boti++) {
        
player_bot Players_bot[i]
        new 
bot_deaths get_user_deaths(player_bot)
        
bot_final_deaths bot_final_deaths bot_deaths
    
}
    
    
get_players(PlayersplayerCount"c")
    
    for (
0playerCounti++) {
        
player Players[i]
        new 
player_deaths get_user_deaths(player)
        
player_final_deaths player_final_deaths player_deaths
    
}
    
    if (
player_final_deaths != && bot_final_deaths != && playerCount != && playerCount_bot != 0) {
        if (
player_final_deaths playerCount bot_final_deaths playerCount_bot && maxbotskill >= 10 && minbotskill >= 20) {
            
maxbotskill maxbotskill 10 
            minbotskill 
maxbotskill 20 
            
            server_cmd
("pb_maxbotskill %d"maxbotskill)
            
server_cmd("pb_minbotskill %d"minbotskill)
            
            
            for (
0playerCount_boti++) {
                
player_bot Players_bot[i]
                
get_user_name(player_botbot_name32)
                
server_cmd("amx_kick %s"bot_name)
            }
        }
        else if (
player_final_deaths playerCount bot_final_deaths playerCount_bot && maxbotskill <= 95 && minbotskill <= 90) {
            
maxbotskill maxbotskill 
            minbotskill 
minbotskill 10 
            server_cmd
("pb_maxbotskill %d"maxbotskill)
            
server_cmd("pb_minbotskill %d"minbotskill)
            
            for (
0playerCount_boti++) {
                
player_bot Players_bot[i]
                
get_user_name(player_botbot_name32)
                
server_cmd("amx_kick %s"bot_name)
            }
        }
    }



Thanks for your help but actually I had till now indented it again

This wrong indentation happened due to a code beautifier i found online

And yes I'd tested the plugin and by reducing or increasing the value of the pb_maxbotskill makes them weak which allows a better chance for making teams equal

Since,, admin can't be everytime online on server and if there's a new guy who is not a pro then he would never play on that server as he would die always

He would think of switching to another server
ish12321 is offline
ish12321
Veteran Member
Join Date: May 2016
Old 06-30-2016 , 11:26   Re: PODBOT Bots Potential Manager [ PB BPM]
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
Start by fixing your indentation and overall plugin presentation.
Thanks for pointing

I fixed the code and it can be now compiled with no errors and no indentation errors even
ish12321 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 06-30-2016 , 11:28   Re: PODBOT Bots Potential Manager [ PB BPM]
Reply With Quote #6

Ohh, this plugin is meant to work with the actual "PodBot" plugin that already is out there? I had no clue...

Anyways i tried installing that plugin previously and it didn't work at all. I think there should be made a new one that is up to date since the other one is old.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
ish12321
Veteran Member
Join Date: May 2016
Old 06-30-2016 , 11:52   Re: PODBOT Bots Potential Manager [ PB BPM]
Reply With Quote #7

Quote:
Originally Posted by Napoleon_be View Post
Ohh, this plugin is meant to work with the actual "PodBot" plugin that already is out there? I had no clue...

Anyways i tried installing that plugin previously and it didn't work at all. I think there should be made a new one that is up to date since the other one is old.
Podbot is a metamod plugin actually

And which plugin you tested earlier??

I don't know if this plugin is fully functional as I had not tested the part of disabling podbot on AWP maps
ish12321 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 06-30-2016 , 18:32   Re: PODBOT Bots Potential Manager [ PB BPM]
Reply With Quote #8

Quote:
Originally Posted by ish12321 View Post
I don't know if this plugin is fully functional as I had not tested the part of disabling podbot on AWP maps
Why are you posting it then?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
ish12321
Veteran Member
Join Date: May 2016
Old 07-01-2016 , 03:35   Re: PODBOT Bots Potential Manager [ PB BPM]
Reply With Quote #9

Quote:
Originally Posted by wickedd View Post
Why are you posting it then?
Else part if fully functional and as per me it should work thats the reason I'm posting

Also when I time ago tried it worked but since maybe PODBOT may have been updated so there would be some editing needed

So I'm posting
ish12321 is offline
ish12321
Veteran Member
Join Date: May 2016
Old 07-02-2016 , 06:43   Re: PODBOT Bots Potential Manager [ PB BPM]
Reply With Quote #10

@HamletEagle Could you please now approve this plugin
ish12321 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 02:57.


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