AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   clientside menus? (https://forums.alliedmods.net/showthread.php?t=49773)

OvK.BioHazarD 01-12-2007 17:22

clientside menus?
 
I'm trying to create a clientside menu that is similar to the effect of amxmodmenu.

IE:
> create alias "ovkmenu"
> bind k ovkmenu

ovkmenu gives me options

1 say binds
2 buy weapons
3 change cl variables
4 change name

etc. where each function opens a submenu and each one of those submenus executes a .cfg file. For example, if i press k 1 3, it executes /teamoverkill/say3.cfg, k 2 4 would execute /teamoverkill/buy4.cfg, and so forth.

The menu would be independent of the server though, not a plugin.

can anybody tell me if this is possible, whether VAC would recognize it as a cheat or not, where to start, etc? i googled and couldn't find much.

Thanks

P.S. I know it's slightly off-topic but of all the steam-based coding communities, you guys have been the most active and helpful & figured if i could get some help you guys would be the ones to give it to me :)

s p l i t 01-13-2007 02:37

Re: clientside menus?
 
Here's a small one I made. I just named it commandmenu1.txt and placed it in my cstrike folder and created a bind for it.
Code:
echo "Credits" echo "SpLit" "*" ".:: Bunny Hop Settings" {   "*" "Enable" "bind space +newbh"   "*" "Disable" "bind space +jump" } "*" ".:: Anti-Recoil Binds" {   "*" "Mouse 1" "bind mouse1 +afire"   "*" "Mouse 2" "bind mouse2 +afire"   "*" "Mouse 3" "bind mouse3 +afire"   "*" "Reset Mouse 1" "bind mouse1 +attack"   "*" "Reset Mouse 2" "bind mouse2 +attack2"   "*" "Reset Mouse 3" "unbind mouse3" } "*" ".:: Ownage Settings" {   "*" "Deagle Ownage" "cl_pitchspeed 1.1"   "*" "MP5 Ownage" "cl_pitchspeed 1.4"   "*" "P90 Ownage" "cl_pitchspeed 1.9"   "*" "AK-47 Ownage" "cl_pitchspeed 2.7"   "*" "M4A1 Ownage" "cl_pitchspeed 2.2"   "*" "M249 Ownage" "cl_pitchspeed 1.4" } "*" ".:: Specific Settings" {   "*" "Recoil 1.0" "cl_pitchspeed 1.0"   "*" "Recoil 1.5" "cl_pitchspeed 1.5"   "*" "Recoil 2.0" "cl_pitchspeed 2.0"   "*" "Recoil 2.5" "cl_pitchspeed 2.5"   "*" "Recoil 3.0" "cl_pitchspeed 3.0"   "*" "Recoil 3.5" "cl_pitchspeed 3.5"   "*" "Recoil 4.0" "cl_pitchspeed 4.0"   "*" "Recoil 4.5" "cl_pitchspeed 4.5"   "*" "Recoil 5.0" "cl_pitchspeed 5.0"   "*" "Recoil 5.5" "cl_pitchspeed 5.5"   "*" "Recoil 6.0" "cl_pitchspeed 6.0" } "*" ".:: Ownage Weapon Packs" {   "*" "Deagle Pack" "deagle; secammo; cl_pitchspeed 1.1"   "*" "MP5 Pack" "mp5; primammo; cl_pitchspeed 1.4"   "*" "P90 Pack" "p90; primammo; cl_pitchspeed 1.9"   "*" "AK-47 Pack" "ak47; primammo; cl_pitchspeed 2.7"   "*" "M4A1 Pack" "m4a1; primammo; cl_pitchspeed 2.2"   "*" "M249 Pack" "m249; primammo; cl_pitchspeed 1.4" }

Of-course the specific aliases are in the userconfig.cfg but this will help you create a menu that you want.

OvK.BioHazarD 01-13-2007 03:16

Re: clientside menus?
 
Ok, i'm not exactly sure how this works, I'm a bit of a newbie. Is there some literature I can read on this, or maybe someone can explain how the code is interpreted? how do i create a bind for the menu if it's named /teamoverkill/ovkmenu.txt?

also, how would I go forward a page/back a page?

Thanks guys :)


All times are GMT -4. The time now is 22:26.

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