Raised This Month: $ Target: $400
 0% 

Player Glow Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 12-23-2011 , 12:51   Player Glow Plugin
Reply With Quote #1

Do I have wrong?

Code:
#include <amxmodx>
#include <fun>

#define user_vip(%1) (get_user_flags(%1) & ADMIN_RESERVATION)

public plugin_init()
{
	register_plugin("PLUGIN", "VERSION", "AUTHOR")

	register_clcmd("/grow_blue", "glow_blue")
	register_clcmd("/grow_green", "glow_green")
	register_clcmd("/grow_red", "glow_red")

	register_clcmd("/grow_off", "glow_off")
}

public glow_blue(id)
{
	if(user_vip(id))
	{
		set_user_rendering(id, kRenderFxGlowShell, 0, 0, 255, kRenderNormal, 51)
	}
}

public glow_green(id)
{
	if(user_vip(id))
	{
		set_user_rendering(id, kRenderFxGlowShell, 0, 255, 0, kRenderNormal, 51)
	}
}

public glow_red(id)
{
	if(user_vip(id))
	{
		set_user_rendering(id, kRenderFxGlowShell, 255, 0, 0, kRenderNormal, 51)
	}
}

public glow_off(id)
{
	if(user_vip(id))
	{
		set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderNormal, 0)
	}
}
RuRuRu612754 is offline
 



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 12:03.


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