Help!
Ok, im getting into making plugins and such. I wanna start making /buy menus at certain areas like the 7-11, etc.. I think thats a NPC. Can anyone help? Any tutorials, or can someone maybe teach me?
Thanks, Kyle |
AMX Mod / AMX Mod X Menu tutorial by Xeroblood. This is a really useful tutorial , but if you want the actual code , here it is. :
Code:
|
Hey thanks for the code. But, how would I put it at a certain location, like the diner or 7-11?
Thanks, Kyle |
Well that gets more advanced , like making a model and putting it in an origin and making it accessable only there. I don't know how to do that sorry.
|
Thats actually a messy code. The command
Code:
is a bad way to do it. |
Then how do you think he should do it?
|
If you go down on that topic theres an example by freecode (I think) that uses format().
|
I prefer defining the keys like this. Makes reading them alot easier IMO.
Code:
Then, if we take above example... Code:
And in the same manner we replace the #s with MENUSELECT?s in the switch/case in the function called by the menu. |
As a matter of fact, in amxconst.inc:
Code:
They already have defines for you. |
Thanks Bishop , Johnny and Avalanche.
|
| All times are GMT -4. The time now is 19:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.