bind <key> [command] : attach a command to a key


gere34

Messages recommandés

Posté(e)

J'ai fait un script avec plusieurs fichiers .cfg

Et j'ai souvent ce message qui apparait:

execing autoexec.cfg

Unknown command "{"

Unknown command "}"

Unknown command "}"

Unknown command "{"

Unknown command "}"

Unknown command "echo\par"

Unknown command "\par"

Unknown command "\par"

Unknown command "\par"

Unknown command "\par"

bind [command] : attach a command to a key

bind [command] : attach a command to a key

Et un des fichier .cfg ou apparait ce probleme ressemble à ca:

//TOUTES LES ARMES SONT ACHETEES AVEC LEUR MUNITIONS AU MAX

//guns

//bind "F1" "glock_" //Glock 18

//bind "F1" "usp_" //USP(ACP)

bind "F1" "p228_" //Sauer P-228

bind "F2" "deagle_" //Desert Eagle

bind "F3" "flingue" //Dual 96G(Terro)

//fn58(CT)

//---------------

//shotguns

//bind "F1" "m3_" //M3 Super 90

//bind "F1" "xm1014_" //XM 1014(M4 Super 90)

//---------------

//mitraillettes

//bind "F1" "mac10_" //MAC-10 (Terro)

//bind "F1" "tmp_" //Steyr Tactical(CT)

bind "F4" "mp5_" //MP5-Navy

//bind "F1" "ump45_" //H&K UMP .45

bind "F5" "p90_" //FN P90

//bind "F1" "mitrail" //MAC-10 ou Steyr Tactical (selection auto suivant le camp)

//---------------

//fusils d'assault

//bind "F1" "m4a1_" //Colt M4A1(CT)

//bind "F1" "ak_" //AK-47(Terro)

//bind "F1" "galil_" //Galil(Terro)

//bind "F1" "famas_" //Famas(CT)

Je sais que ca ne vient pas d'un probleme de syntaxe. Au debut, je pensait à un décalage de guillemet "" mais j'ai fait plein de tests et je me suis rendu compte que c'était plutot un probleme de surcharge.

Comme s'il y avait une limite de caractères, mais c'est bisarre parceque j'ai des fichiers bien plus gros qui ne buggent pas. Ou bien une limite de fichiers à executer(j'en ai 50, ils ne s'executent pas tous forcement)

Si quelqu'un a une solution. C'est très agaçant d'éditer 80lignes de commandes pour finallement se rendre compte qu'il faut tout virer pasque ca foire.

Posté(e)
et si tu nous donnait l'autoexec.cfg celui qui semble poser probleme par exemple[/quotemsg]

[#0000ff]J'ai pas d'autoexec, j'ai modifié le fichier valve.rc:[/#0000ff]

//load the base configuration

//exec default.cfg

r_decal_cullsize 1

// Setup custom controller

exec joystick.cfg

// run a user script file if present

exec autoexec.cfg

//

// stuff command line statements

//

stuffcmds

//

// BiR ScRiPt:Source

//

// Delete for uninstall

//

con_enable 1

exec Bir_script\System\start.cfg

[#0000ff]Voici le contenu du fichier Bir_script\System\start.cfg:[/#0000ff]

clear

contimes 16

developer 0

con_notifytime 10

contimes 30

dev1

echo ------------------------<=BiR=>ScRiPt---by gere-------------

echo ____________________________________________________________

echo ************************************************************

echo °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°

echo --=^\v/^:::)][WWW.BIROUTE-CORP.FR.ST][(:::^\v/^=--

echo ____________________________________________________________

echo ************************************************************

echo ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

echo

echo ---------------------<<<<>>>>-----------------

echo ------------------------------CRAM--------------------------

echo ------------------------------GERE--------------------------

echo ---------------------------BEN-DES-BOIS---------------------

echo ------------------------------NERIC-------------------------

echo -------------------------------JU---------------------------

echo -----------------------------MALECK-------------------------

echo -------------------------------MAX--------------------------

echo ------------------------------RIGAIL------------------------

echo

echo De la teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeerrrrrrrrre!!!

echo

exec Bir_script\System\Divers.cfg

echo [script Divers charge]

exec Bir_script\System\Achats.cfg

echo [script Achats charge]

exec Bir_script\System\Commandes.cfg

echo [script Commandes charge]

exec Bir_script\System\Sensitivity.cfg

echo [script pour la sensibilite charge]

exec Bir_script\System\Bot.cfg

echo [script pour les bots charge]

exec Bir_script\Menus\menu_keys_config.cfg

echo [script pour les menus charge]

bind * "main_menu"

echo _______________________________________________

echo ***********************************************

echo ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

echo Presser la touche * du pave num pendant le jeu

echo pour acceder au -=BiR=-ScRiPt menu

dv0con

Posté(e)
et si tu nous donnait l'autoexec.cfg celui qui semble poser probleme par exemple[/quotemsg]

[#0000ff]Puis voici le contenu de Bir_script\System\Sensitivity.cfg:[/#0000ff]

//////////////////////////

//SENSIBILITES DES MODES//

//////////////////////////

//Mode NORMAL (1)

alias "defautsensi1" "sensitivity 4.5" //DEBOUT

alias "lowsensi1" "sensitivity 3.0" //MARCHE

alias "vlowsensi1" "sensitivity 2.7" //ACCROUPI

//Mode VIF (2)

alias "defautsensi2" "sensitivity 6.0" //DEBOUT

alias "lowsensi2" "sensitivity 4.2" //MARCHE

alias "vlowsensi2" "sensitivity 3.8" //ACCROUPI

//Mode PRECIS (3)

alias "defautsensi3" "sensitivity 3.0" //DEBOUT

alias "lowsensi3" "sensitivity 2.3" //MARCHE

alias "vlowsensi3" "sensitivity 2.0" //ACCROUPI

//Mode HEADSHOT (4)

alias "defautsensi4" "sensitivity 2.6" //DEBOUT

alias "lowsensi4" "sensitivity 2.0" //MARCHE

alias "vlowsensi4" "sensitivity 1.7" //ACCROUPI

///////////////////////////////////////////////////////////////////

//MODIFIEZ ICI VOS SENSIBILITES////////////////////////////////////

///////////////////////////////////////////////////////////////////

//Mode PERSO (5) ICI(de 0 à 10) ///

// v ///

alias "defautsensi5" "sensitivity 4.5" //DEBOUT ///

alias "lowsensi5" "sensitivity 3.0" //MARCHE ///

alias "vlowsensi5" "sensitivity 2.7" //ACCROUPI ///

///////////////////////////////////////////////////////////////////

//////////////////////////////////////////////

//"defautsensi" = debout, entre 6 et 8//

//"vlowsensi" = accroupi entre 2 et 4//

//"lowsensi" = Marche entre 2 et 4//

//////////////////////////////////////////////

//Touche BASSE SENSIBILITE

//Changement de la sensibilité par pression d'une touche au cour du jeu

alias "keysensi" "sensitivity 2"

///////////////////

//MODE 1 : NORMAL//

///////////////////

//MARCHER + changement de sensibilité

alias +senspeed1 "+speed;lowsensi1"

alias -senspeed1 "-speed;defautsensi1"

/////////////////////////////

//ACCROUPIS + changement de sensibilité

alias +sensiduck1 "+duck;vlowsensi1"

alias -sensiduck1 "-duck;defautsensi1"

/////////////////////////////

/////////////////////////////

///////////////////

//MODE 2 : VIF//

///////////////////

//MARCHER + changement de sensibilité

alias +senspeed2 "+speed;lowsensi2"

alias -senspeed2 "-speed;defautsensi2"

/////////////////////////////

//ACCROUPIS + changement de sensibilité

alias +sensiduck2 "+duck;vlowsensi2"

alias -sensiduck2 "-duck;defautsensi2"

/////////////////////////////

/////////////////////////////

///////////////////

//MODE 3 : PRECIS//

///////////////////

//MARCHER + changement de sensibilité

alias +senspeed3 "+speed;lowsensi3"

alias -senspeed3 "-speed;defautsensi3"

/////////////////////////////

//ACCROUPIS + changement de sensibilité

alias +sensiduck3 "+duck;vlowsensi3"

alias -sensiduck3 "-duck;defautsensi3"

/////////////////////////////

/////////////////////////////

/////////////////////

//MODE 4 : HEADSHOT//

/////////////////////

//MARCHER + changement de sensibilité

alias +senspeed4 "+speed;lowsensi4"

alias -senspeed4 "-speed;defautsensi4"

/////////////////////////////

//ACCROUPIS + changement de sensibilité

alias +sensiduck4 "+duck;vlowsensi4"

alias -sensiduck4 "-duck;defautsensi4"

/////////////////////////////

/////////////////////////////

/////////////////////

//MODE 5 : PERSO//

/////////////////////

//MARCHER + changement de sensibilité

alias +senspeed5 "+speed;lowsensi5"

alias -senspeed5 "-speed;defautsensi5"

/////////////////////////////

//ACCROUPIS + changement de sensibilité

alias +sensiduck5 "+duck;vlowsensi5"

alias -sensiduck5 "-duck;defautsensi5"

/////////////////////////////

/////////////////////////////

alias +slow1 "keysensi"

alias -slow1 "defautsensi1"

alias +slow2 "keysensi"

alias -slow2 "defautsensi2"

alias +slow3 "keysensi"

alias -slow3 "defautsensi3"

alias +slow4 "keysensi"

alias -slow4 "defautsensi4"

alias +slow5 "keysensi"

alias -slow5 "defautsensi5"

//texte

alias saysnormal "dv1info; echo Advanced sensivity ON; echo Mode NORMAL; dv0info"

alias saysvif "dv1info; echo Advanced sensivity ON; echo Mode VIF; dv0info"

alias saysprecis "dv1info; echo Advanced sensivity ON; echo Mode PRECIS; dv0info"

alias saysheadshot "dv1info; echo Advanced sensivity ON; echo Mode HEADSHOT; dv0info"

alias saysperso "dv1info; echo Advanced sensivity ON; echo Mode PERSO; dv0info"

alias saysoff "dv1info; echo Advanced sensivity OFF; echo Sensibilite souris valeur par defaut; echo CHOISIR LA SENSIBILITE (0 -> 10); dv0info"

Posté(e)
Il manque pas des alias pour les trucs genre "usp_".

Essaye de voir avec le prog de ma signature pour comparer où sa cloche chez toi.[/quotemsg]

[#0000ff]pour les alias c'est fait:

j'ai d'abord fait un fichier de conversion CS1.6=>CS:S (achats_alias.cfg)[/#0000ff]

//ACHATS

//Armes de poing

alias "glock" "buy glock"

alias "usp" "buy usp"

alias "p228" "buy p228"

alias "deagle" "buy deagle"

alias "fn57" "buy fn57"

alias "elites" "buy fn57; buy elites"

//Fusil à Pompe

alias "m3" "buy m3"

alias "xm1014" "buy xm1014"

//SMG

alias "mac10" "buy mac10"

alias "tmp" "buy tmp"

alias "mp5" "buy mp5"

alias "ump45" "buy ump45"

alias "p90" "buy p90"

//Fusils d'assault

alias "m4a1" "buy m4a1"

alias "ak47" "buy ak47"

alias "galil" "buy galil"

alias "famas" "buy famas"

//Fusils d'assault à lunette

alias "sg552" "buy sg552"

alias "aug" "buy aug"

//Snipes

alias "scout" "buy scout"

alias "awp" "buy awp"

alias "g3sg1" "buy g3sg1"

alias "sg550" "buy sg550

//batteuse

alias "m249" "buy m249

//equipements

alias "vesthelm" "buy vesthelm"

alias "vest" "buy vest"

alias "hegren" "buy hegrenade"

alias "flash" "buy flashbang"

alias "sgren" "buy smokegrenade"

alias "nvgs" "buy nvgs"

alias "defuser" "buy defuser"

alias "primammo" "buy primammo"

alias "secmammo" "buy secmammo"

[#0000ff]Puis un autre fichier achats.cfg:[/#0000ff]

//ACHATS

exec Bir_script\System\Achats_alias.cfg

//Armes de poing

alias "glock_" "glock; wait; secammo"

alias "usp_" "usp; wait; secammo"

alias "p228_" "p228; wait; secammo"

alias "deagle_" "deagle; wait; secammo"

alias "fn57_" "fn57; wait; secammo"

alias "elites_" "elites; wait; secammo"

//Fusil à Pompe

alias "m3_" "m3; wait; primammo"

alias "xm1014_" "xm1014; wait; primammo"

//SMG

alias "mac10_" "mac10; wait; primammo"

alias "tmp_" "tmp; wait; primammo"

alias "mp5_" "mp5; wait;primammo"

alias "ump45_" "ump45; wait; primammo"

alias "p90_" "p90; wait; primammo"

//Fusils d'assault

alias "m4a1_" "m4a1; wait; primammo"

alias "ak47_" "ak47; wait; primammo"

alias "galil_" "galil; wait; primammo"

alias "famas_" "famas; wait; primammo"

//Fusils d'assault à lunette

alias "aug_" "aug; wait; primammo"

alias "sg552_" "sg552; wait; primammo"

//Snipes

alias "scout_" "scout; wait; primammo"

alias "awp_" "awp; wait; primammo"

alias "g3sg1_" "g3sg1; wait; primammo"

alias "sg550_" "sg550; wait; primammo"

//batteuse

alias "m249_" "m249; wait; primammo"

//equipements

alias "equiptotal" "vesthelm; vest; hegren; wait; flash; flash; defuser"

alias "equip" "vesthelm; vest"

//groupe

alias "flingue" "fn57; elites; wait; secammo"

alias "mitrail" "mac10; tmp; wait; primammo"

alias "fusil1" "m4a1; ak47; wait; primammo"

alias "fusil2" "galil; famas; wait; primammo"

alias "fusilvis" "aug; sg552; wait; primammo"

alias "mp5complet" "mp5_; wait; equiptotal"

alias "m4akcomplet" "fusil1; wait; equiptotal"

alias "viscomplet" "+fusilvis; wait; equiptotal"

alias "awpcomplet" "+awp_; wait; equiptotal"

Posté(e)

[#0000ff]Je vous file le fichier divers.cfg tant que j'y suis, c'est la ou il y a pas mal de mes alias:[/#0000ff]

//Mouvements

//saut accroupi

alias "+jumpduck" "+jump; w5; +duck"

alias "-jumpduck" "-jump; -duck"

//Duck en toggle

alias "tg_duck" "duck1"

alias duck1 "+duck; alias tg_duck duck2"

alias duck2 "-duck; alias tg_duck duck1"

//Speed en toggle

alias "tg_speed" "speed1"

alias speed1 "+speed; alias tg_speed speed2"

alias speed2 "-speed; alias tg_speed speed1"

//Armes

alias quickpistol "use weapon_deagle; use weapon_usp; use weapon_glock; use weapon_p228; use weapon_elite; use weapon_fiveseven"

alias quickfusil "use weapon_ak47; use weapon_aug; use weapon_g3sg1; use weapon_m249; use weapon_m4a1; use weapon_m3; use weapon_mac10; use weapon_mp5navy; use weapon_p90; use weapon_scout; use weapon_sg552; use weapon_sg550; use weapon_ump45; use weapon_tmp; use weapon_xm1014; use weapon_awp; use weapon_galil; use weapon_famas"

alias quickgren "use weapon_smokegrenade; use weapon_hegrenade; use weapon_flashbang"

alias quickknife "use weapon_knife"

//Radio

alias "radio" boucle1

alias boucle1 "radio1 ;alias radio boucle2"

alias boucle2 "radio2 ;alias radio boucle3"

alias boucle3 "radio3 ;alias radio boucle4"

alias boucle4 "slot10 ;alias radio boucle1"

alias "sorry" so1

alias so1 "say_team Scuse me; alias sorry so2"

alias so2 "say_team I'm really sorry; alias sorry so3"

alias so3 "say_team Pfff...sorry, I'm too bad; alias sorry so4"

alias so4 "say_team Scuse me, I didn't see the radar; alias sorry so1"

//Pub

alias "pub1" "clr_menu; say --=^\v/^:::)][www.biroute-corp.fr.st][(:::^\v/^=--"

alias "pub2" "clr_menu; say <<<-=Oo]www.biroute-corp.fr.st[oO=->>>"

alias "pub3" "clr_menu; say /\/\/\www.biroute-corp.fr.st/\/\/\"

alias "pub4" "clr_menu; say <<<<<>>>>>"

alias "pub" pb1

alias pb1 "pub1; alias pub pb2"

alias pb2 "pub2; alias pub pb3"

alias pb3 "pub3; alias pub pb4"

alias pb4 "pub4; alias pub pb1"

alias birquit "pub; w5; w5; exit"

//Systeme

alias "strt" "exec Bir_script\system\start.cfg"

alias "gere" "exec Bir_script\Users\Gere_config.cfg; clr_menu; dv1info; echo [configurations de GERE chargees];dv0info"

alias "cram" "exec Bir_script\Users\Cram_config.cfg; clr_menu; dv1info; echo [configurations de CRAM chargees];dv0info"

alias "ben" "exec Bir_script\Users\Ben_config.cfg; clr_menu; dv1info; echo [configurations de BEN chargees];dv0info"

alias "neric" "exec Bir_script\Users\Neric_config.cfg; clr_menu; dv1info; echo [configurations de NERIC chargees];dv0info"

alias "max" "exec Bir_script\Users\Max_config.cfg; clr_menu; dv1info; echo [configurations de MAX chargees];dv0info"

alias "ju" "exec Bir_script\Users\Ju_config.cfg; clr_menu; dv1info; echo [configurations de JULIEN chargees];dv0info"

alias "First" "exec Bir_script\Users\FIRST_config.cfg; clr_menu; dv1info; echo [configurations par defaut chargees];dv0info"

alias "Player" "exec Bir_script\Users\player_config.cfg; clr_menu; dv1info; echo [configurations INVITE chargees];dv0info"

alias "qualmax" "exec Bir_script\system\qualitemax.cfg; clr_menu; dv1info; echo [Qualite OPTIMALE];dv0info"

alias "qualmoy" "exec Bir_script\system\qualitenormale.cfg; clr_menu; dv1info; echo [Qualite NORMALE];dv0info"

alias "qualmin" "exec Bir_script\system\qualitemin.cfg; clr_menu; dv1info; echo [Qualite MINIMALE];dv0info"

//Menus

alias w2 "wait; wait"

alias w3 "w2; wait"

alias w4 "w2; w2"

alias w5 "w3; w2"

alias anul "slot10"

alias anul2 "anul; wait; wait; anul"

alias close "w2; anul2"

alias dev1 "developer 1"

alias dev0 "developer 0"

alias dev_1 "developer -1"

alias dv1con "dev1; con_notifytime 28"

alias dv0con "dev_1; con_notifytime 0"

alias pre "clear; dv1con; contimes 48"

alias dv1info "clear; dev1; con_notifytime 4; contimes 15"

alias dv0info "dv0con"

alias clr_menu "clear; reset_all; contimes 16; dev0"

alias reset_all "bind 0 slot10; bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4; bind 5 slot5; bind 6 slot6; bind 7 slot7; bind 8 slot8; bind 9 slot9; bind * main_menu; clear; anul"

//Netgraph

alias "ng0" "Net_graph 0"

alias "ng1" "Net_graph 1"

alias "ng2" "Net_graph 2"

alias "ng3" "Net_graph 3"

alias "ngleft" "net_graphpos 3"

alias "ngcenter" "net_graphpos 2"

alias "ngright" "net_graphpos 1"

//Crosshair

alias vis_green cl_crosshaircolor 0

alias vis_red cl_crosshaircolor 1

alias vis_blue cl_crosshaircolor 2

alias vis_yellow cl_crosshaircolor 3

alias vis_lblue cl_crosshaircolor 4

Posté(e)

[#0e00f0]Mais tout ca, ca marche, pasque j'ai viré pleins de ligne d'info que j'avais mis à coté des commandes (//blablabla)

La c'est dans mes menus que ça foire:[/#0e00f0]

[#ff0000]Un exemple de menu: fichier main_menu.cfg (s'affiche très bien):[/#ff0000]

pre

echo " "

echo " "

echo " "

echo " "

echo " "

echo " "

echo " "

echo " "

echo " "

echo " "

echo " "

echo " -=BiR=-ScRiPt by Gere"

echo " www.biroute-corp.fr.st"

echo " "

echo " MENU PRINCIPAL"

echo " "

echo " 1. PARTIE EN COURS (vide)"

echo " 2. REGLAGES SERVEUR (vide)"

echo " 3. OPTIONS DU JEU (vide)"

echo " 4. PERFORMANCES (vide)"

echo " 5. BOTS"

echo " "

echo " "

echo " 8. PUB"

echo " 9. EXIT"

echo " "

echo " 0. REPRENDRE LE JEU"

echo " *. REPRENDRE LE JEU"

dv0con

[#f0000e]Puis les binds: fichier menu_keys_config.cfg (il y a le retour à la ligne alors c'est moche, désolé)

C'est ce fichier qui foire[/#f0000e]

alias "sensi_menu" "exec Bir_script\Menus\sensi_menu.cfg; bind 1 activ_sensi1; bind 2 activ_sensi2; bind 3 activ_sensi3; bind 4 activ_sensi4; bind 5 activ_sensi5; bind 6 desactiv_sensi; unbind 7; unbind 8; unbind 9; bind 0 clr_menu; bind * clr_menu"

alias "users_keys_menu" "exec Bir_script\Menus\users_keys_menu.cfg; bind 1 gere; bind 2 cram; bind 3 ben; bind 4 neric; bind 5 max; bind 6 player; bind 7 first; unbind 8; unbind 9; bind 0 clr_menu; bind * clr_menu"

//Menus Principal

alias "main_menu" "exec Bir_script\Menus\main_menu.cfg; unbind 1; unbind 2; unbind 3; unbind 4; bind 5 bots_mainmenu; unbind 6; unbind 7; bind 8 pub; bind 9 birquit; bind 0 clr_menu; bind * clr_menu"

alias "bots_mainmenu" "exec Bir_script\Menus\bots_mainmenu.cfg; bind 1 bots_aj_hasard_menu; bind 2 bots_aj_CT_menu; bind 3 bots_aj_Terro_menu; bind 4 bots_skill_menu; bind 5 bot_kill; bind 6 bot_kick; bind 7 bots_restrict_menu; bind 8 bots_options_menu; unbind 9; bind 0 main_menu; bind * clr_menu"

//BOTS

alias "bots_aj_hasard_menu" "exec Bir_script\Menus\Bots\aj_hasard_menu.cfg; bind 1 1bot; bind 2 2bot; bind 3 3bot; bind 4 4bot; bind 5 5bot; bind 6 6bot; bind 7 7bot; bind 8 8bot; bind 9 9bot; bind 0 bots_mainmenu; bind * clr_menu"

alias "bots_aj_CT_menu" "exec Bir_script\Menus\Bots\aj_CT_menu.cfg; bind 1 1CT; bind 2 2CT; bind 3 3CT; bind 4 4CT; bind 5 5CT; bind 6 6CT; bind 7 7CT; bind 8 8CT; bind 9 9CT; bind 0 bots_mainmenu; bind * clr_menu"

alias "bots_aj_Terro_menu" "exec Bir_script\Menus\Bots\aj_Terro_menu.cfg; bind 1 1terro; bind 2 2terro; bind 3 3terro; bind 4 4terro; bind 5 5terro; bind 6 6terro; bind 7 7terro; bind 8 8terro; bind 9 9terro; bind 0 bots_mainmenu; bind * clr_menu"

alias "bots_skill_menu" "exec Bir_script\Menus\Bots\skill_menu.cfg; bind 1 bot_difficulty 0; bind 2 bot_difficulty 1; bind 3 bot_difficulty 2; bind 4 bot_difficulty 3; unbind 5; unbind 6; unbind 7; unbind 8; unbind 9; bind 0 bots_mainmenu; bind * clr_menu"

[#0000ff]exemple d'acces à ce menu au cour du jeu, plus bas[/#0000ff]

alias "bots_restrict_menu" "exec Bir_script\Menus\Bots\restrict_menu.cfg; bind 1 bot_all_weapons; bind 2 bot_knives_only; bind 3 bot_pistols_only; bind 4 bot_snipers_only; bind 5 bots_restrictshop_menu; unbind 6; unbind 7; unbind 8; unbind 9; bind 0 bots_mainmenu; bind * clr_menu"

alias "bots_options_menu" "exec Bir_script\Menus\Bots\option_menu.cfg; bind 1 bots_chat_menu; bind 2 bots_obj_menu; bind 3 bots_order_menu; bind 4 bots_follow_menu; bind 5 bots_prefx_menu; bind 6 bots_dispmem_menu; unbind 7; unbind 8; unbind 9; bind 0 bots_mainmenu; bind * clr_menu"

//BOTS_RESTRICTIONS

alias "bots_restrictshop_menu" "exec Bir_script\Menus\Bots\restrict\shop_menu.cfg; bind 1 bots_restrictshop1_menu; bind 2 bots_restrictshop0_menu; unbind 3; unbind 4; unbind 5; unbind 6; unbind 7; unbind 8; unbind 9; bind 0 bots_restrict_menu; bind * clr_menu"

alias "bots_restrictshop1_menu" "exec Bir_script\Menus\Bots\restrict\shop1_menu.cfg; bind 1 bot_allow_all1; bind 2 bot_allow_pistols 1; bind 3 bot_allow_machine_guns 1; bind 4 bot_allow_shotguns 1; bind 5 bot_allow_rifles 1; bind 6 bot_allow_snipers 1; bind 7 bot_allow_sub_machine_guns 1; unbind 8; unbind 9; bind 0 bots_restrictshop_menu; bind * clr_menu"

alias "bots_restrictshop0_menu" "exec Bir_script\Menus\Bots\restrict\shop0_menu.cfg; bind 1 bot_allow_all0; bind 2 bot_allow_pistols 0; bind 3 bot_allow_machine_guns 0; bind 4 bot_allow_shotguns 0; bind 5 bot_allow_rifles 0; bind 6 bot_allow_snipers 0; bind 7 bot_allow_sub_machine_guns 0; unbind 8; unbind 9; bind 0 bots_restrictshop_menu; bind * clr_menu"

//BOTS_OPTIONS

alias "bots_chat_menu" "exec Bir_script\Menus\Bots\option\chat_menu.cfg; bind 1 bot_chatter normal; bind 2 bot_chatter radio; bind 3 bot_chatter minimal; bind 4 bot_chatter off; unbind 5; unbind 6; unbind 7; unbind 8; unbind 9; bind 0 bots_options_menu; bind * clr_menu"

alias "bots_obj_menu" "exec Bir_script\Menus\Bots\option\obj_menu.cfg; bind 1 bot_defer_to_human 0; bind 2 bot_defer_to_human 1; unbind 3; unbind 4; unbind 5; unbind 6; unbind 7; unbind 8; unbind 9; bind 0 bots_options_menu; bind * clr_menu"

alias "bots_order_menu" "exec Bir_script\Menus\Bots\option\order_menu.cfg; bind 1 bot_allow_rouges 0; bind 2 bot_allow_rouges 1; unbind 3; unbind 4; unbind 5; unbind 6; unbind 7; unbind 8; unbind 9; bind 0 bots_options_menu; bind * clr_menu"

alias "bots_follow_menu" "exec Bir_script\Menus\Bots\option\follow_menu.cfg; bind 1 bot_auto_follow 1; bind 2 bot_auto_follow 0; unbind 3; unbind 4; unbind 5; unbind 6; unbind 7; unbind 8; unbind 9; bind 0 bots_options_menu; bind * clr_menu"

alias "bots_prefx_menu" "exec Bir_script\Menus\Bots\option\prefx_menu.cfg; bind 1 bot_prefix BOT; bind 2 bot_prefix <=BiR=>; bind 3 bot_prefix Monsieur; bind 4 bot_prefix 0; unbind 5; unbind 6; unbind 7; unbind 8; unbind 9; bind 0 bots_options_menu; bind * clr_menu"

alias "bots_dispmem_menu" "exec Bir_script\Menus\Bots\option\dispmem_menu.cfg; bind 1 bot_memory_usage 1; bot_memory_usage 0; unbind 3; unbind 4; unbind 5; unbind 6; unbind 7; unbind 8; unbind 9; bind 0 bots_options_menu; bind * clr_menu"

[#0000ff]voici le message de la console quand je veux regler le niveau de difficulté des bots à partir du menu que j'ai crée (les touche 1,2,3... reste bindé comme sur le menu précédent, elle ne se modifient pas)[/#0000ff]

Niveau de difficulte

1. Facile

2. Normal

3. Difficile

4. Expert

0. PRECEDENT

*. REPRENDRE LE JEU

bind [command] : attach a command to a key

bind [command] : attach a command to a key

bind [command] : attach a command to a key

bind [command] : attach a command to a key

Posté(e)
le premier marche pas déjà, et les autres non plus.

c'est buy weapon_glock sous css

et les wait sont inutiles

Regarde ma signture, le prog pour les binds ;)[/quotemsg]

Oui, je l'ai ce programme, il est très bien.

Mais essaie la commande buy glock, tu verras, ça marche aussi.

Pour les bind d'achat ça va, ya pas de probleme.

Et pour les wait... ben en fait ce script, je l'ai fait sous 1.6 en premier, donc j'ai pas tout changé. Et tant qu'on y est, ils ne marchent plus du tout ou c'est juste qu'ils sont inutiles? parce que je m'en sert aussi pour creer des attentes.

[#009b63]alias "pub1" "clr_menu; say --=^\v/^:::)][www.biroute-corp.fr.st][(:::^\v/^=--"

alias "pub2" "clr_menu; say <<<-=Oo]www.biroute-corp.fr.st[oO=->>>"

alias "pub3" "clr_menu; say /\/\/\www.biroute-corp.fr.st/\/\/\"

alias "pub4" "clr_menu; say <<<<<>>>>>"

alias "pub" pb1

alias pb1 "pub1; alias pub pb2"

alias pb2 "pub2; alias pub pb3"

alias pb3 "pub3; alias pub pb4"

alias pb4 "pub4; alias pub pb1"

alias birquit "pub; w5; w5; exit"[/#009b63]

Posté(e)

Houla oui ça fait pas mal à lire ^^

Heu pour les waits, je sais pas si ils ne marchent pas du tout ou pas. Je sais juste qu'on en n'a plus besoin.

Pour les menus qui foirent, je prends le temps de lire et si je vois un truc, je reviens ;)

Posté(e)
normalement les wait ne servent plus a rien.

Fin c'est ce que je me suis laissé dire...

Par contre essayer de raccourcir un maximum le texte que vous copiez :sweat:[/quotemsg]

Ok y a pas de probleme, désolé.

Posté(e)
Ok y a pas de probleme, désolé.[/quotemsg]

[#ff0e00]C'est bon j'ai trouvé la solution!!![/#ff0e00]

Sous CS:S, les binds contenant une commande suivie d'une valeur ne marchent plus. Il faut d'abord creer un alias.

[#00aa55]ne fonctionne pas:[/#00aa55]

bind 1 "bot_difficulty 0"

[#00aa55]fonctionne:[/#00aa55]

alias "bot_easy" "bot_difficulty 0"

bind 1 "bot_easy"

D'ou le message:

bind [command] : attach a command to a key

Merci pour votre aide.

Gardez cette info de coté, je pense que ca peut etre utile.

  • 2 weeks later...
  • 7 years later...

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.