Profile menu
#1
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.

[Image: profile_menu.png]

How can I make the player module change based on the team?

Menu code (with CLA):
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:
menuinit [menuselection RVSF (player1 skin_rvsf)]
menumdl playermodels/RVSF/01 all 50 4
Thanks given by:


Messages In This Thread
Profile menu - by ofir640 - 20 Jun 14, 09:37PM
RE: Profile menu - by ofir640 - 22 Jun 14, 01:22PM
RE: Profile menu - by Skinny-Dog - 22 Jun 14, 01:31PM