[Help] Merging old and new menu script
Hello,
I wanted to merge the old and the new menu used to select my class, but I kinda failed doing so. The old script looks like this: PHP Code:
PHP Code:
1) When the menu comes up I want to see the level the class is (Mage Level: xx 2) Currently the menu is based on cvars, when certain cvars are disabled that means that the class is also disabled. PHP Code:
PHP Code:
|
Re: [Help] Merging old and new menu script
PHP Code:
|
Re: [Help] Merging old and new menu script
That's just awesome! Thank you very much!
Edit: The restrictions don't work propperly. |
Re: [Help] Merging old and new menu script
Restrictions?
|
Re: [Help] Merging old and new menu script
Yes, at the first post :
PHP Code:
diablo_classes "abcdefghi" means all classes are pickable, but when I do for instance diablo_classes "abcdefgh" then the Pirate class is not pickable. |
Re: [Help] Merging old and new menu script
You have to use a callback on each of the menu items and in the callback check if the class is enable or disables.
Connor already did it for you: http://forums.alliedmods.net/showpos...&postcount=339 |
Re: [Help] Merging old and new menu script
Thanks fysiks, I didn't quite understand what connor posted there, but since I'm trying to learn every day now I got it working by testing it here and there.
The outcome is now: PHP Code:
Thanks once again. |
| All times are GMT -4. The time now is 19:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.