AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Glow Menu (https://forums.alliedmods.net/showthread.php?t=57277)

TheDemonIII 07-01-2007 17:36

Glow Menu
 
2 Attachment(s)
This plugin allows glowing capablities for all players through the use of a menu.
All colors for glowing must be in the file "addons/amxmodx/configs/Glowcolors.txt" in the form of
Color RED GREEN BLUE
where Color is the name of the color to appear in the menu
and RED GREEN BLUE are R-G-B values between 0 and 255
each must be on its own seperate line and there should be no empty lines in between colors or at the end of the file

You can set the maximum amount of colors in the .sma file

When a player joins the server, it tells them how to start glowing
---------------------------------------------------------------------------
this is my first plugin that I made incorporating files and the first that I'm putting out in the open. I hope that you enjoy it

Attached is the plugin as well as a sample Glowcolors.txt with a few colors already in it, please feel free to add as many as you want.

Usage: say 'glow' in game chat (without the '') and chose a color off the list

Version 1.1 (thanks to Emp`for some tips)
-added amx_reloadglow : used to reread the Glowcolors.txt instead of having to restart the server or reload the plugin
-Glowcolors.txt doesn't have to be in addons/amxmodx/configs/, it just has to be in your configs folder (uses get_configsdir)

flyeni6 07-01-2007 18:01

Re: Glow Menu
 
good plugin :)

Da_sk8rboy 07-01-2007 18:02

Re: Glow Menu
 
http://forums.alliedmods.net/showthread.php?p=26978

Emp` 07-01-2007 19:43

Re: Glow Menu
 
Da_sk8rboy:
-Although they seem quite similar, this plugin reads from a file, making it much better than the aforementioned.

TheDemonIII:
-perhaps state in main post there is a define for max colors in the sma and its default is 100.
-a command to re-read from the file
-don't hardcode the file path, use get_configsdir
-i<=filelen - 1 -> i<filelen (not really big, just wanted to point it out :wink:)
-don't create a variable within a large for loop
Code:

        for(new i=0;i<=filelen - 1;i++)
        {
                for(new c = 0; c <= 3; c++)

-public functions ma_GlowMenu and mcb_GlowMenu are not needed
-perhaps the functionality of a player being able to say a glow color and immediately get it instead of having to go through the menu.

geeare 07-01-2007 23:35

its well done gj

diamond-optic 07-02-2007 08:59

Re: Glow Menu
 
Quote:

Originally Posted by TheDemonIII (Post 497120)
-Glowcolors.txt doesn't have to be in addons/amxmodx/configs/, it just has to be in your configs folder

doesnt have to be in configs? just has to be in configs?

TheDemonIII 07-02-2007 15:18

Re: Glow Menu
 
some peoples configs folder isnt always in addons/amxmodx/, it can be anywhere u want it to be, the plugin supports that

Zenith77 07-02-2007 16:35

Re: Glow Menu
 
Quote:

Originally Posted by TheDemonIII (Post 497664)
some peoples configs folder isnt always in addons/amxmodx/, it can be anywhere u want it to be, the plugin supports that

Let me help you with your response. You can put it in the folder you have designated as your configs folder which you can edit the designated folder in core.ini. The default and 99.99% used is amxmodx/configs. So put it in the configs folder.

Hawk552 07-05-2007 18:17

Re: Glow Menu
 
Waiting for confirmation that it works.

TheDemonIII 07-05-2007 19:54

Re: Glow Menu
 
ive tested it over and over and as long as u follow instructions on setting up the glowcolors.txt file it will work fine and without errors i believe. it says in the .sma file how to do it right


All times are GMT -4. The time now is 06:28.

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