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) |
Re: Glow Menu
good plugin :)
|
Re: Glow Menu
|
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++) -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. |
its well done gj
|
Re: Glow Menu
Quote:
|
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
|
Re: Glow Menu
Quote:
|
Re: Glow Menu
Waiting for confirmation that it works.
|
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.