Menu Model Help [ Fixed ]
I just want to see your methods so i can inform my self and learn every single one as i'm new to coding. What i'm talking about? Well, i want to use a new method for menu model. Like when i press a number it will give me the model. Well here is my method.
PHP Code:
|
Re: Menu Model Help
- You shouldn't include the cstrike folder into the path.
- You never check if the user is alive before you set him a new model. - Using format/formatex for such thing is completely useless, use client_print() instead. - Read how the old menu style works - > http://wiki.amxmodx.org/Advanced_Scr...Mod_X%29#Menus , tho I suggest you to use the new amxx menu style. |
Re: Menu Model Help
Showing a menu at this time will overwrite default team menus, and gonna messup the game because critical properties won't be set on players.
What you should do is let players choose a team, then, overwrite the default appearance text menu (let the game think default menu has been shown to player). |
Re: Menu Model Help
Quote:
- I fixed it in the code below, check it out andtell me if it's good please :) - I used format because i want the message to be shown to everyone, not just myself and i. - Yeah thanks. I used the old menu but it doesn't sound good but is it better than the new menu system? Quote:
PHP Code:
|
Re: Menu Model Help
Quote:
- Your checks are wrong, they will throw an error if you don't put {} or simply if( !is_user_alive( id ) ) return PLUGIN_HANDLED. - Use client_print() with index 0, it will print the message to everyone in the server. - I can't really say this because I have never used the old menu style since I am scripting. You can find more info in new amxx menu style tutorial by Emp`, check out the comments. - Always use pcvars. - I would use Connor's colorchat. |
Re: Menu Model Help
Quote:
- I added the {} now it's good? - Um i said something in the ColorChat //... i used ColorChat(0,... see the question in the code please :) - I use his method, or the new menu method. It's easy and fun! - Now the code has pcvar - the question is in the same ColorChat //.... :) PHP Code:
|
Re: Menu Model Help
- Who told you to remove cs_* from the natives? What I have been saying is to remove the cstrike folder from the path of precaching models, it isn't needed.
- You should indent your code better, it may throw indent warrnings. - Quote:
|
Re: Menu Model Help
1 Attachment(s)
Quote:
- Removed - I guess it's good now? - Now i'm using Connor's Client_print_color - Now is it good? - I got a question, how to do like when a player has chosen a team the menu comes? Like connor said up there. Please thank you dark! Is this good? i re-did all the code. |
Re: Menu Model Help
I suggest you to read this tutorial: https://forums.alliedmods.net/showthread.php?t=85274
|
Re: Menu Model Help
Quote:
|
| All times are GMT -4. The time now is 19:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.