Sinon tu a aussi la solution toute faite par etpub/etpro
bind X teammenu
bind Y classmenu
Je suis pas sur pour le classmenu mais de toute façon teammenu permet de choisir la class et l'arme
Autrement, si tu veux binder une class directement:
bind F3 class m //medic
bind F4 class e 2 //ingénieur rifle
Et enfin la solution que j'utilise:
// selection de classe
bind KP_INS "vstr previous_class"
bind KP_DEL "vstr next_class"
bind KP_END "vstr medics"
bind KP_DOWNARROW "vstr engineer1"
// choix de classes
set next_class "vstr engineer1"
set previous_class "vstr medics"
set medics "set next_class vstr engineer1; set previous_class vstr covertops3; class m 1; echo ^7--^b> C^7lasse ^bM^7edic; play sound/misc/vote.wav; set confirm_class say_team ^bM^7e^bdics"
set engineer1 "set next_class vstr engineer2; set previous_class vstr medics; class e 1; echo ^7--^b> C^7lasse ^bI^7ngenieur; play sound/misc/vote.wav; set confirm_class say_team ^bE^7n^bgi, s^7m^bg"
set engineer2 "set next_class vstr fieldops; set previous_class vstr engineer1; class e 2; echo ^7--^b> C^7lasse ^bI^7ngenieur Rifle; play sound/misc/vote.wav; set confirm_class say_team ^bE^7n^bgi, r^7i^bfle"
set fieldops "set next_class vstr covertops1; set previous_class vstr engineer2; class f 1; echo ^7--^b> C^7lasse ^bF^7ield Ops; play sound/misc/vote.wav; set confirm_class say_team ^bF^7i^belds"
set covertops1 "set next_class vstr covertops2; set previous_class vstr fieldops; class c 2; echo ^7--^b> C^7lasse ^bC^7overt Ops, fg42; play sound/misc/vote.wav; set confirm_class say_team ^bC^7o^bps, f^7g^b42"
set covertops2 "set next_class vstr covertops3; set previous_class vstr covertops1; class c 1; echo ^7--^b> C^7lasse ^bC^7overt Ops, sten; play sound/misc/vote.wav; set confirm_class say_team ^bC^7o^bps, s^7t^ben"
set covertops3 "set next_class vstr medics; set previous_class vstr covertops2; class c 3; echo ^7--^b> C^7lasse ^bC^7overt Ops, snipe; play sound/misc/vote.wav; set confirm_class say_team ^bC^7o^bps, s^7n^bipe"