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

Weapon Glow


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-16-2008 , 09:51   Re: Weapon Glow
Reply With Quote #31

- You should set a default value for all colors. You can swith on mode 3 without thinking to define the colors with amx_wpglow_color. So, just set a default color into the 'red', 'green', 'blue' vars because 0 0 0 means invisible I believe.

- cmd_wpglow_color() : To avoid that a player writes a wrong value, you can use clamp function. Like that :
Code:
    red   = clamp( str_to_num( arg  ), 1, 255 );     green = clamp( str_to_num( arg2 ), 1, 255 );     blue  = clamp( str_to_num( arg3 ), 1, 255 );
__________________

Last edited by Arkshine; 04-16-2008 at 09:55.
Arkshine is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-16-2008 , 10:15   Re: Weapon Glow
Reply With Quote #32

Updated again. Check the script
TheRadiance is offline
Send a message via ICQ to TheRadiance
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-16-2008 , 10:58   Re: Weapon Glow
Reply With Quote #33

For the default color, I would do "new g_MaxClients,mode,red,green=255,blue"
__________________
Arkshine is offline
dekken
Veteran Member
Join Date: Jul 2007
Old 04-16-2008 , 11:48   Re: Weapon Glow
Reply With Quote #34

Very Nice! +Karma
__________________
Signature Goes Here
dekken is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-16-2008 , 22:07   Re: Weapon Glow
Reply With Quote #35

Default color is now Green
TheRadiance is offline
Send a message via ICQ to TheRadiance
Texnux
Member
Join Date: Mar 2008
Location: Denmark
Old 04-18-2008 , 18:34   Re: Weapon Glow
Reply With Quote #36

This is a cool feature! But it can't be used with player glows at the same time! The weapon glow overrides the player glow.

- Texnux
Texnux is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-19-2008 , 04:48   Re: Weapon Glow
Reply With Quote #37

It will work, if you use amx_glow(etc.. glow plugin) after activating glow mode.
TheRadiance is offline
Send a message via ICQ to TheRadiance
mut2nt
Senior Member
Join Date: Oct 2006
Location: in HELL!
Old 06-09-2008 , 13:46   Re: Weapon Glow
Reply With Quote #38

I have a little question, if i want the weapon to glow not on the ground but in my hand what i have to change?
mut2nt is offline
Send a message via Yahoo to mut2nt Send a message via Skype™ to mut2nt
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 08-15-2008 , 12:29   Re: Weapon Glow
Reply With Quote #39

About glow in hands.
I tried it many times with many ways, but i couldn't find the way it works

Last edited by TheRadiance; 08-20-2008 at 12:19.
TheRadiance is offline
Send a message via ICQ to TheRadiance
Lonely2oo9
Junior Member
Join Date: Jun 2009
Old 07-10-2009 , 09:31   Re: Weapon Glow
Reply With Quote #40

ты по русски говаришь??? если да напиши 594959801
Lonely2oo9 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 13:06.


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