Buy Menu
How would you go about making a plugin or clcmd that would make a menu that had the options make the person "say" something to just clump the other plugin buy commands together so the end result would be like:
1. FrostNade600$ - pressing it makes them say /fn not in console 2. Molotov - say molotov 3. Jetpack - says /buyjetpack 4. BuyThat - says whatever the plugin configured the object to be bought with instead of having to know the individual commands to buy things so it wouldnt be as cluttered. could i just copy his and replace one set of options with names and the other with the "say /fn" cmnds? http://forums.alliedmods.net/showthr...highlight=menu |
Re: Buy Menu
I got the menu part to work but could someone tell me how or if its possible to make the person using the menu SAY in regular chat, something as a result of his option? Do need to predefine something or just put the command in..
Code:
|
Re: Buy Menu
I think you might wanna read up, and view a few more plugins.
You're switch statement is no were near correct. |
Re: Buy Menu
yehh i dont know, the menu worked in game..
"generated by AMX MenuMaker v1.5" i get that im going to have to use engclient_cmd ( index,const command[],arg1[]= ) so i almost have it.. but could someone give me an example of how to fill out the second part? like when should i record the player index |
Re: Buy Menu
Ive been trying to read other scripts and such to make sense of it, but when i compile it it says lines 30-31 and 33-34 the expressions have no affect. The menu opens and you can click the options but it doesnt work, how do i code these 2 commands correctly?
Code:
/* AMX Mod script. |
Re: Buy Menu
Actually, you're making it more complicated than it is. Use:
engclient_cmd( id, "say /frostnade" ); The key part being the quotes. Also, as a tip, I would reccomend defining your strings as global constants, for optimization purposes. Your plugin will still work without doing this, but if you read This Article you will see what I mean about that. |
Re: Buy Menu
i hate to revive a dead topic like this but i dont suppose you got this working ever did you?
|
| All times are GMT -4. The time now is 06:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.