Raised This Month: $ Target: $400
 0% 

Bots auto vacante


  
 
 
Thread Tools Display Modes
Author Message
lolo31
Member
Join Date: Feb 2011
Old 01-30-2012 , 07:55   Bots auto vacante
#1

Bonjour voila!

j'ai remplacer les podbot par les bots off , mais je voudrais savoir si il a une possibilité de kicks les bots quand les humains arrive sur le serveurs.
le bots quota et a 10 ,
le bots_auto_vacante a 1,
mais quand il y a un joueur qui arrive ca fait 10 bots + 1humain = 11
et les bots commence a ce retirer quand il y a 10 joueurs le 11 ième prend la place d'un bots
j'aimerais qu'il se retire comme avec podbot: exemple:
bots quota 6 quand il a 6 humain plus de bots .
je sais pas si j'ai était clair mais je peut développé si besoin
Amicalement lolo
lolo31 is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 01-30-2012 , 09:19   Re: Bots auto vacante
#2

Attaches le fichier config des bots s'il y a les commentaires expliquant les cvars.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
lolo31
Member
Join Date: Feb 2011
Old 01-30-2012 , 10:03   Re: Bots auto vacante
#3

Quote:
Originally Posted by Devil259 View Post
Attaches le fichier config des bots s'il y a les commentaires expliquant les cvars.
slt pas bien compris là ?
lolo31 is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 01-30-2012 , 10:12   Re: Bots auto vacante
#4

Attaches ici le fichier qui permet de configurer les bots (*.cfg)
__________________
You can do anything you set your mind to, man.

Devil259 is offline
lolo31
Member
Join Date: Feb 2011
Old 01-30-2012 , 10:47   Re: Bots auto vacante
#5

j'ai mi les cvar suivante sur le fichier serveur.cfg :
bot_difficulty "1"
bot_quota "10"
bot_chatter off
bot_auto_vacate "1"
bot_join_after_player "0"
ensuite les seul fichier config que j'ai c'es :
BotCampaignProfile.db
BotChatter.db
BotProfile.db

tu ve voir le quelle?
pour info serveur gungame 20 slots
edit: serveur : condition zero

Last edited by lolo31; 01-30-2012 at 11:02.
lolo31 is offline
cagnois
Senior Member
Join Date: Nov 2010
Old 01-30-2012 , 11:03   Re: Bots auto vacante
#6

pour podbot vous devez mettre ceux_ci sur le fichier podbot.cfg
pb_minbots 0
pb_maxbots 4
pb_bot_quota_match 0
cagnois is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-30-2012 , 11:04   Re: Bots auto vacante
#7

Essaye ça, ça fera ce que tu souhaites, et sans prendre en compte les spectateurs.

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

#define VERSION "0.0.2"
#define PLUGIN "Cz Bots"

new bot_quota
new bool:g_bFreezePeriod
new maxbots

public plugin_precache()
{
    
bot_quota get_cvar_pointer("bot_quota")
    
set_pcvar_num(bot_quota0)
}

public 
plugin_init()
{
    new 
szNavFile[128]
    
get_mapname(szNavFilecharsmax(szNavFile))
    
format(szNavFilecharsmax(szNavFile), "maps/%s.nav"szNavFile)
    if( 
file_exists(szNavFile) )
    {
        
register_plugin(PLUGINVERSION"ConnorMcLeod")
        
register_event("TeamInfo""Event_TeamInfo""a")

        
register_event("HLTV""Event_HLTV_New_Round""a""1=0""2=0")
        
register_logevent("LogEvent_Round_Start"2"1=Round_Start")
        
Event_TeamInfo()
    }
    
maxbots register_cvar("bot_quota_match""10")
}

public 
Event_HLTV_New_Round()
{
    
g_bFreezePeriod true
}

public 
LogEvent_Round_Start()
{
    
g_bFreezePeriod false
    Event_TeamInfo
()
}

public 
Event_TeamInfo()
{
    if( 
g_bFreezePeriod )
    {
        return
    }

    new 
iPlayers[32], iNumiPlayingUsers
    get_players
(iPlayersiNum"ch")
    for(new 
ii<iNumi++)
    {
        if( 
CS_TEAM_T <= cs_get_user_team(iPlayers[i]) <= CS_TEAM_CT )
        {
            
iPlayingUsers++
        }
    }

    
set_pcvar_num(bot_quotamax(0get_pcvar_num(maxbots) - iPlayingUsers) )
}

public 
plugin_end()
{
    
set_pcvar_num(bot_quota0)

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
lolo31
Member
Join Date: Feb 2011
Old 01-30-2012 , 11:13   Re: Bots auto vacante
#8

lol , tu as na mi du temps ..non je rigole ;)
super je compile et je teste .
Amicalement lolo

Edit :A j’oublie, Merci ;)

Last edited by lolo31; 01-30-2012 at 11:16.
lolo31 is offline
lolo31
Member
Join Date: Feb 2011
Old 01-30-2012 , 11:23   Re: Bots auto vacante
#9

le compilateur en ligne que j utilise habituellement et fermer lol
http://webcomp.ak-team.com/

j'ai utilisé celui la
http://www.amxmodx.org/webcompiler.cgi


Erreur compil sur http://www.amxmodx.org/webcompiler.cgi
Message:
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team /tmp/textChBYiV.sma(1) : error 013: no entry point (no public functions) 1 Error. Could not locate output file /home/groups/amxmodx/public_html/websc3/textChBYiV.amx (compile failed).


j'ai réussi a le compilé ici :
http://www.serverklan.net/index.php?file=Compile
mais quand je l'active sur le serveur les bots ne vienne pas meme avec un joueur, je l'ai donc retirer du serveur pour l'instant:

Last edited by lolo31; 01-30-2012 at 11:47.
lolo31 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-30-2012 , 11:50   Re: Bots auto vacante
#10

J'ai oublié de te dire, les bots ne viennent que si un fichier de waypoints existe, sinon les pauvres sont complètement perdus.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
 



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 18:48.


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