Raised This Month: $13 Target: $400
 3% 

AGM + AimGlow v2.0.2 [24/04/2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-27-2011 , 13:15   AGM + AimGlow v2.0.2 [24/04/2020]
Reply With Quote #1

Advanced GlowMenu v2.0.2
ML Support

Description.
  • This plugin is fully rewritten and now fully customizable. This glow menu allows you the add colors to your likings just by editing a .txt file. More instructions found below. ML is supported. Aimglow is also supported.


Plugin Cvars.
  • Allthough this is a decently large plugin for what it is, it only has 2 cvars so far. If anyone has idea's on more cvars, let me know please.

Code:
glow_adminsonly "1" - 1 = Admins Only | 0 = Everyone.
glow_messages "1" - 1 = Display messages | 0 = Don't display.

Commands.
Code:
// say & say_team commands.
new const szCommands[][] = {
	"/glowmenu",
	"/gm",
	"/glow",
	"!glowmenu",
	"!gm",
	"!glow"
};

new szAimCommands[][] = {
	"/am",
	"/aim",
	"/aimglow",
	"!am",
	"!aim",
	"!aimglow"
};

Screenshots.
Spoiler


Installation.
  1. Download AdvancedGlowMenu.zip
  2. copy/paste every file to the desired folders.
  3. compile the AdvancedGlowMenu.sma (Make sure you have colorchat.inc)
  4. Put AdvancedGlowMenu.amxx in the plugins folder
  5. Add "AdvancedGlowMenu.amxx debug" in your plugins.ini file (without quotes)
  6. Restart server

Adding Colors.
This is the GlowMenu.txt file. It can be used to add or remove colors. I don't think it could get any easier.
Code:
; Add Color Names and RGB codes.
; Example: "Red" "255" "0" "0"

"Red" "255" "0" "0"
"Green" "0" "255" "0"
"Blue" "0" "0" "255"
"White" "255" "255" "255"
Supported Languages.
Update Notes.
Code:
  • 1.0.0: First Release
  • 2.0.0: Second release, fully rewritten, new functions, etc.
  • 2.0.1: Added more features to the menu:
    • Glow Terrorists & Glow Counter-Terrorists.
    • Remove Glow Terrorists & Counter Terrorists.
  • 2.0.2: Added aimglow + updated code to be compatible with 1.10.0 and lower.
    • Added aimglow, check commands for a shortcut to the color menu.
    • Added remove aimglow, available in the /glowmenu
    • Managed to use the menu_create() style that OciXCrom suggested, thanks to 1.10.0
Credits.

thEsp - Special thanks to you for explaining my ReadFile() function.
Xalus - Thanks for helping me test everything and helping me out where nessecary.
Attached Files
File Type: zip AdvancedGlowMenu.zip (15.3 KB, 24 views)
File Type: sma Get Plugin or Get Source (AdvancedGlowMenu.sma - 33 views - 14.0 KB)
__________________

Last edited by Napoleon_be; 04-25-2020 at 09:09. Reason: v2.0.2
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 10-27-2011 , 13:18   Re: Glow Menu (Unfinished)
Reply With Quote #2

Cool
__________________
kramesa is offline
Korxu
Senior Member
Join Date: Sep 2010
Old 10-27-2011 , 13:19   Re: Glow Menu (Unfinished)
Reply With Quote #3

PHP Code:
register_clcmd("say_teal /glowmenu""glowmenu"
#EDIT:
PHP Code:
else if(!is_user_connected(id)) 
Unnecessary. If the user isn't connected, it is disconnected. You can only put "else".

Last edited by Korxu; 10-27-2011 at 13:23. Reason: #EDIT
Korxu is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-27-2011 , 13:26   Re: Glow Menu (Unfinished)
Reply With Quote #4

Quote:
Originally Posted by Korxu View Post
PHP Code:
register_clcmd("say_teal /glowmenu""glowmenu"
#EDIT:
PHP Code:
else if(!is_user_connected(id)) 
Unnecessary. If the user isn't connected, it is disconnected. You can only put "else".
Thanks, fixed a few things wich were unnessacary.
If someone wants screenshots, i can put them in my release post.
__________________

Last edited by Napoleon_be; 10-27-2011 at 13:27.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 10-27-2011 , 13:33   Re: Glow Menu (Unfinished)
Reply With Quote #5

Probally already exists, you could add random glow color.
__________________
I am out of order!
grimvh2 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-27-2011 , 13:44   Re: Glow Menu (Unfinished)
Reply With Quote #6

Fixing some bugs atm. Found a lot, i'll update the attachment when i'm done.

@Grimvh2

I know, but i'm expending mine. If someone has some idea's, they are always welcome.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-27-2011 , 13:52   Re: Glow Menu (Unfinished)
Reply With Quote #7

Redundant + already exists + hardcoded = unapproved.
__________________
Arkshine is offline
Old 10-27-2011, 14:12
Napoleon_be
This message has been deleted by Napoleon_be. Reason: Silly lil me.
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-27-2011 , 14:43   Re: Glow Menu (Unfinished)
Reply With Quote #8

Color.
__________________
Arkshine is offline
enjoi.
Veteran Member
Join Date: Mar 2011
Old 10-28-2011 , 08:29   Re: Glow Menu (Unfinished)
Reply With Quote #9

Nice plugin but I seen alot of theses not sure what to choose from
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
Old 10-29-2011, 10:54
Napoleon_be
This message has been deleted by Napoleon_be. Reason: i was 14 lol
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-29-2011 , 11:11   Re: Glow Menu (Unfinished)
Reply With Quote #10

If you want to improve the plugin :

- Don't hardcode color.
- Menu is static, so it should be cached.
- Adding a key is not needed. Item is not retrieve from this data.
- You don't destroy menu
- I don't see why you retrieve name before the check.
__________________
Arkshine is offline
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 08:09.


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