Raised This Month: $32 Target: $400
 8% 

Glow Menu ~ Client Activated Glow Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   twistedeuphoria (82)
firewalker877
Junior Member
Join Date: Jun 2004
Location: Memphis, TN
Old 06-18-2004 , 01:31   Glow Menu ~ Client Activated Glow Plugin
Reply With Quote #1

Ok guys...
This is a very simple plugin with a menu interface. The client says "glow" and a menu pops up! This is purely a public plugin!

Requirements:
1. AMXX ~~ Duh!
2. Fun

Commands:
"glow" - said in game
"amx_gmtoggle" - allows admin to enable or disable the plugin ~ Requires Admin Access Flag H

Cvars:
gm_toggle 0/1 <0 Glow Menu is enabled, 1 Glow Menu is disabled>
If this Cvar is not defined, the Glow Menu will default to ON, so the only people who need to worry about it are those who would like the default setting for Glow Menu to be off!

Options:
1. Red
2. Orange
3. Yellow
4. Green
5. Light Blue
6. Blue
7. Purple
8. White
9. No glow
0. Exit.

Place the attached .amx file in HLServer\mod-folder\addons\amxmodx\plugins\
Add the following line to your plugins.ini in the amxmodx\configs folder:

glow_menu.amxx

Thanks to Burnzy for having the idea! He's probably the reason I made this thing! But I don't remember. lol

Let me know if you have any problems of requests!
*UPDATE 1.1* Now with Hud messages instead of chat messages!
*UPDATE 1.2* Cleaned up the code, reducing plugin size by 2kb!
*UPDATE 1.3* Added admin command amx_gmtoggle and Cvar gm_toggle 0/1/undefined
*UPDATE 1.3a* Added a line to turn players' glow off when the plugin is disabled
*UPDATE 1.4* Redid the plugin for AMXX 1.0. Menu output is optimized and Get Plugin works now!
Attached Files
File Type: sma Get Plugin or Get Source (glow_menu.sma - 10446 views - 4.4 KB)
firewalker877 is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 06-18-2004 , 08:40  
Reply With Quote #2

omfg... this was my suggestion! i was gonna make this like 1 month ago but i had no time... did u see my suggestion or did u just make it?
__________________
Burnzy is offline
Send a message via AIM to Burnzy
-=STN=- MaGe
Veteran Member
Join Date: Apr 2004
Location: Asault World
Old 06-18-2004 , 10:10  
Reply With Quote #3

dude, nice, it works perfect.

ne way is there a chance to include a hud message that tells every one that they are glowing, and what colour.
-=STN=- MaGe is offline
Send a message via Yahoo to -=STN=- MaGe
firewalker877
Junior Member
Join Date: Jun 2004
Location: Memphis, TN
Old 06-18-2004 , 15:46  
Reply With Quote #4

hahaha No burnzy, I don't believe I did see your post, but it's possible, meaning that you subconsciously gave me the idea! (I'll add you to credits just in case.) Mage, it has been done! Get the update!
firewalker877 is offline
-=STN=- MaGe
Veteran Member
Join Date: Apr 2004
Location: Asault World
Old 06-18-2004 , 18:18  
Reply With Quote #5

hey thanks, it is easy to say i thought of that first, but why did you not do it ,
-=STN=- MaGe is offline
Send a message via Yahoo to -=STN=- MaGe
Burnzy
Veteran Member
Join Date: Apr 2004
Old 06-18-2004 , 20:09  
Reply With Quote #6

any server running this? my server is temp down... so i kinda cant do this. Also, thx... ill check the plugin and see if it needs any work.
__________________
Burnzy is offline
Send a message via AIM to Burnzy
firewalker877
Junior Member
Join Date: Jun 2004
Location: Memphis, TN
Old 06-18-2004 , 22:24  
Reply With Quote #7

Thnx Burnzy, but i think everything's fine; however your eyes may catch something I missed. The code looks good to the cut and paste compiler. All it returns is a warning about the GlowMenuChoice function not returning a value. Nothing to worry about. The plugin kix in game!! w00t! I think you will be pleased!
firewalker877 is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 06-18-2004 , 22:43  
Reply With Quote #8

well u got one thing wrong in ur plugin i noticed... u gotta put the .SMA not the .AMX ont he first post...
__________________
Burnzy is offline
Send a message via AIM to Burnzy
firewalker877
Junior Member
Join Date: Jun 2004
Location: Memphis, TN
Old 06-18-2004 , 22:53  
Reply With Quote #9

Okay will do. Sry 'bout that. I didn't include it on purpose, the reason being it doesn't compile if you use the AMXX compile prog on your computer or if you upload the sma to the online compiler. It only seems to work if you copy and paste the code into the online compiler. (Thats why I pasted the code into a code tag instead.) So confusing.... if anyone has any ideas about why that is, I'd love to know!

P.S. I'll clean the code up a bit tonight.
firewalker877 is offline
Poison_Jay
Senior Member
Join Date: May 2004
Old 06-18-2004 , 23:38  
Reply With Quote #10



can u make it like for admins or public?

like the admin can choose if he wants to open for public or not...

1 - With glow, it's very hard to see the enemy...
2 - In Natural Selection, there are MVM and AVA maps, and the glow is important...

please add features =(
Poison_Jay is offline
Send a message via MSN to Poison_Jay
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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