20 Jun 14, 09:37PM
I'm building profile menu, and I added player module, but it's only CLA or RVSF. depending on the code... I try to use IF/ELSE but without success.
How can I make the player module change based on the team?
Menu code (with CLA):
RVSF code:
How can I make the player module change based on the team?
Menu code (with CLA):
[SELECT ALL] Code:
persistidents 0
newmenu profile
menuinit [ menuselection CLA (player1 skin_cla) ]
menumdl playermodels/CLA/01 all 50 4
menuitem [Favorite servers] (concat showonlyfavourites 1 ";showmenu server") [ showonlyfavourites 0 ]
menuitem [LAN private server] [ connect 192.168.1.103 28763 password ]
menuitemtextinput [Nickname: ] "result $curname" [ name $arg1 ]
menuitem [] -1
menuitem [Weapon] [ showmenu Weapons ]
menuitem [Team] [ showmenu team ]
menuitem [Skin] [ showmenu (at [CLA RVSF] (player1 team)) ]
newmenu team
menuitem [CLA] [ team cla ]
menuitem [RVSF] [ team rvsf ]
persistidents 1
RVSF code:
[SELECT ALL] Code:
menuinit [menuselection RVSF (player1 skin_rvsf)]
menumdl playermodels/RVSF/01 all 50 4