AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need help to make a simple menu. Pls Read! (https://forums.alliedmods.net/showthread.php?t=128457)

tomi123 06-01-2010 11:02

Need help to make a simple menu. Pls Read!
 
Can somebody help me how to make a plugin called Weapon Menu. amx_weaponmenu. (in console too).
It would be just like cl_clcmdmenu but with another name. Access Flag "T"

This is what i got in clcmds.ini
Client Commands Menu: ; < description > < command > < flags > < access level >
"
"Godmode" "amx_godmode #%userid%" "bd" "u"
"Noclip" "amx_noclip #%userid%" "bd" "u"
"Heal for 1 HP" "amx_heal #%userid% 1" "bd" "u"
"Heal for 10 HP" "amx_heal #%userid% 10" "bd" "u"
"Give Awp" "amx_weapon #%userid% 48" "bd" "u"
"Give Deagle" "amx_weapon #%useid% 14" "bd" "u"
"Give M4a1" "amx_weapon #%userid% 43" "bd" "u"
"Give Ak47" "amx_weapon #%userid% 42" "bd" "u"
"Revive" "amx_revive #%userid%" "bd" "u"
"Revive All" "amx_revive @all" "bd" "u"
"
I want the amx_weaponmenu to work the same way, adding commands like "Give M4a1" "amx_weapon #%userid% 43" "bd" "t"

I've never coded amx plugins before, But i hope somebody can help me to get thru this.

Ps. It can't have "Admin tomi gave weapon m4a1 to tomi" text.


All times are GMT -4. The time now is 05:25.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.