[Help]Menu edit
1 Attachment(s)
Hi guys, i'm new on this forum (althoug i am a common guest for almost 2 years) and i have a little request if you might help me.
i have this plugin (attachment) originaly it had 19 items to purchase, i did removed what i didn't need, but i have 2 little problems. 1) the menu it is like this: 1.item 1 2.item 2 ... 7.item 7 8.back 9.next 0.exit i tryed to remove some functions in shophandler but with no succes. when i removed the items i didn't need, i have only 9 .. so i don't realy need back si next. And i can't delete them from code. 2) in public give_respawn i did something like this Code:
if (kills >= cost && !is_user_alive(id))sorry for my bad english, please help if you can. Cheers edit: sorry fysiks, i edited my post, hope this is better |
Re: [Help]Menu edit
For 1), you would need to switch to back to the basic menu method.
Quote:
|
Re: [Help]Menu edit
Quote:
ps: i edited my first post, as fysiks said, i hope that's ok now |
Re: [Help]Menu edit
To remove pagination, use the following code:
Code:
menu_setprop(menu, MPROP_PERPAGE, 0);A small edit of the give_respawn function, and I came up with this for you: Code:
public give_respawn(id) |
Re: [Help]Menu edit
Quote:
|
Re: [Help]Menu edit
thank you fo helping me.
It seem that does the trick, altough the exit menu doesn't show up. Quote:
|
Re: [Help]Menu edit
Quote:
Code:
menu_additem(hnsmenu, "Exit", "0", ADMIN_ALL) |
Re: [Help]Menu edit
Quote:
Code:
|
Re: [Help]Menu edit
Quote:
|
Re: [Help]Menu edit
thank you for the help. i couldn't do it without you.
Thanks a lot again , you are my hero :* |
| All times are GMT -4. The time now is 11:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.