Raised This Month: $51 Target: $400
 12% 

Glow Menu ~ Client Activated Glow Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
firewalker877
Junior Member
Join Date: Jun 2004
Location: Memphis, TN
Old 06-25-2004 , 20:03  
Reply With Quote #21

Hmmmm I wonder if that would work on DPB... And how long does it take before a plugin is approved?
firewalker877 is offline
Zion
Junior Member
Join Date: Jan 2005
Old 01-30-2005 , 16:37  
Reply With Quote #22

I dont know why but, it cant compile your sma file any reasons why?
__________________
Zion ;)
Zion is offline
robbob4
Senior Member
Join Date: Jan 2005
Old 02-03-2005 , 22:55  
Reply With Quote #23

Sorry, this plugin failed to compile!
You should try notifying the author so they can fix this.
robbob4 is offline
NeonKnight
New Member
Join Date: Feb 2005
Old 02-10-2005 , 17:05   Changed a color
Reply With Quote #24

In case anyone wants diffrent colors this should help.


I changed purple to black... for those Hard to see spots *cough* admins *cough* lalala
Also fixed the closing tag on line 151 you had 2 return plugin handled down there. i fixed that

Code:
/* FireWalker877's Glow Menu
*  This is a simple [AMXX] public glow plugin.
*  beb0 says "glow", beb0 gets a menu!
*  Colors are those of the rainbow and white (in that order)
*  Send any requests or comments to [email protected]
*
*  Commands:
*  say "glow"
*  amx_gmtoggle - Admin level H access Toggles Glow Menu On and Off
*
*  Cvars
*  gm_toggle 1/0 - < if 1, Glow Menu is disabled. if 0 or undefined,
*  all clients have access to the Glow Menu. Define in server.cfg or
*  set in console by typing "amx_gmtoggle"
*/

#include <amxmodx>
#include <fun>

public plugin_init()
{
   register_plugin("Glow Menu","v1.2","FireWalker877")
   register_menucmd(register_menuid("Glow Menu"),1023,"GlowMenuChoice")
   register_concmd("say glow", "checkityo", 0, "- say glow and select an option")
   register_concmd("amx_gmtoggle", "toggle", ADMIN_LEVEL_H, "- Toggle access to Glow Menu On and Off")
   register_cvar("gm_toggle","0",FCVAR_SERVER)
   set_cvar_string("gm_toggle","0")
}


public toggle(id)
{
if(get_cvar_num("gm_toggle")==1)
   {
   set_cvar_string("gm_toggle","0")
   client_print(0,print_chat,"[AMXx] Glow Menu has been enabled by the admin!")
   server_print("Glow menu has been enabled!")
   return PLUGIN_HANDLED
   }
 else
    {
   set_cvar_string("gm_toggle","1")
   client_print(0,print_chat,"[AMXx] Glow Menu has been disabled by the admin!")
   server_print("Glow menu has been disabled!")
   set_user_rendering(0,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
   return PLUGIN_HANDLED
   }
return PLUGIN_HANDLED
}

public checkityo(id)
{
if(get_cvar_num("gm_toggle")==1)
   {
   client_print(id,print_chat,"[AMXx] Glow Menu is currently disabled!")
   return PLUGIN_HANDLED
   }
else
   {
   GlowMenuMenu(id)
   return PLUGIN_HANDLED
   }
return PLUGIN_HANDLED
}

public amx_glowmenu(id)
{
   GlowMenuMenu(id)
   return PLUGIN_HANDLED
}

public GlowMenuMenu(id)
{
   if (is_user_alive(id)) {
      new menuBody[1024]
      new key
       
      format(menuBody, 1023, "Glow Menu^n^n^n 1.  Red^n^n 2.  Orange^n^n 3.  Yellow^n^n 4.  Green^n^n 5.  Light Blue^n^n 6.  Blue^n^n 7.  Black^n^n 8.  White^n^n^n 9.  Turn glow off^n^n^n 0.  Exit.")
      key = (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
   
      show_menu(id, key, menuBody)
   }
}

public GlowMenuChoice(id, key)
{
   new Client[21]
   get_user_name(id,Client,20)   

   switch(key)
   {
      case 0:
      {
set_hudmessage(255,0,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
show_hudmessage(0, "[AMXx] %s is now glowing Red!",Client)
set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25)
      }
      case 1:
      {
set_hudmessage(255,140,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
show_hudmessage(0, "[AMXx] %s is now glowing Orange!",Client)
set_user_rendering(id,kRenderFxGlowShell,255,140,0,kRenderNormal,25)
      }
      case 2:
      {
set_hudmessage(255,255,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
show_hudmessage(0, "[AMXx] %s is now glowing Yellow!",Client)
set_user_rendering(id,kRenderFxGlowShell,255,255,0,kRenderNormal,25)
      }
      case 3:
      {
set_hudmessage(0,255,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
show_hudmessage(0, "[AMXx] %s is now glowing Green!",Client)
set_user_rendering(id,kRenderFxGlowShell,0,255,0,kRenderNormal,25)
      }
      case 4:
      {
set_hudmessage(0,255,255, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
show_hudmessage(0, "[AMXx] %s is now glowing Light Blue!",Client)
set_user_rendering(id,kRenderFxGlowShell,0,255,255,kRenderNormal,25)
      }
      case 5:
      {
set_hudmessage(0,0,255, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
show_hudmessage(0, "[AMXx] %s is now glowing Blue!",Client)
set_user_rendering(id,kRenderFxGlowShell,0,0,255,kRenderNormal,25)
      }
      case 6:
      {
set_hudmessage(255,0,255, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
show_hudmessage(0, "[AMXx] %s is now glowing Black!",Client)
set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
      }
      case 7:
      {
set_hudmessage(192,192,192, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
show_hudmessage(0, "[AMXx] %s is now glowing White!",Client)
set_user_rendering(id,kRenderFxGlowShell,192,192,192,kRenderNormal,25)
      }
      case 8:
      {
set_hudmessage(0,255,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)
show_hudmessage(0, "[AMXx] %s is no longer glowing!",Client)
set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
      }
      case 9:
      {
return PLUGIN_HANDLED
      }
   }
}


If you guys want some off the wall colors ask firewalker or me and one of us can help.


hope you dont mind i edited your code Im not trying to take anything. but yea have a good ones guys



ATTENTION IT DOESNT GLOW BLACK! LOL.

im in the process of fixing it
NeonKnight is offline
Send a message via AIM to NeonKnight
ra|n
New Member
Join Date: Feb 2005
Old 02-14-2005 , 20:37  
Reply With Quote #25

Is it possible you could add a admin_chat access flag that would be required to use the glow commands?
ra|n is offline
firewalker877
Junior Member
Join Date: Jun 2004
Location: Memphis, TN
Old 03-07-2005 , 23:51  
Reply With Quote #26

Dude, it's been so long since I wrote this plugin. I think this is the first time I've signed in since. Hehe. I remember how users used to be able to say glow black back in the old days. Good times... Anyway, it would be better if purple stayed. If a player was rendered black, he would just get pulled over. Thx for fixing the return though, I was new when I wrote the plugin. I'll update the main post.

Oh, BTW if you only want admins to have access to the glow menu, change the 0 in the following code to the desired parameter.

Code:
register_concmd("say glow", "checkityo", 0, "- say glow and select an option")
firewalker877 is offline
bobbyjohn
Junior Member
Join Date: Dec 2005
Old 12-18-2005 , 21:23  
Reply With Quote #27

How about adding a feature of reserving glows and wat not

___________________________________________
=t (See the sword? That came from my head when i added the *Head into sword* plugin to my server) lol
bobbyjohn is offline
james007torres24
Junior Member
Join Date: Dec 2005
Location: SD,CA
Old 04-05-2006 , 01:14  
Reply With Quote #28

can u make it so when u die and respawn ur glow stays on. cuz when u die the glowing stops. u have to do it ever round. ty james
__________________
- Karma If
U like me
U hate me
U <3 CS
U <3 SYSTEM OF A DOWN
U have a name
i helped
i did not help
i am dum
james007torres24 is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-05-2006 , 01:33   Re: Glow Menu ~ Client Activated Glow Plugin
Reply With Quote #29

Quote:
Originally Posted by firewalker877
"amx_gmtoggle" - allows admin to enable or disable the plugin ~ Requires Admin Access Flag H
That command requires flag "t".
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Bidybag
Member
Join Date: Apr 2005
Old 05-06-2006 , 20:16  
Reply With Quote #30

Does the glow go off when you die for svencoop?
Bidybag is offline
Reply



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 23:56.


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