Raised This Month: $ Target: $400
 0% 

Player Glow V1.4


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
ƒa†es™
Senior Member
Join Date: May 2009
Location: Garena
Old 06-23-2009 , 15:08   Player Glow V1.4
Reply With Quote #1

Player Glow V1.4

Description:
This Plugin Makes Player Glow On 10 Different Colours Every 3 Seconds Which Means Every 3 Second The Colour Will Change.

Commands:
Code:
amx_techno "1|0" 1 = Enable | 0 = Disable
Credits:
minimiller - Thanks For The Random Codes.
xPaw - Thanks For The Link.
SnoW - Thanks For Your Help.

Updates:
Code:
V1.4 - Fix some codes.
Attached Files
File Type: sma Get Plugin or Get Source (Glow.sma - 2203 views - 639 Bytes)
__________________

Last edited by ƒa†es™; 06-24-2009 at 12:16.
ƒa†es™ is offline
Duracell_sk8
Junior Member
Join Date: Dec 2008
Old 06-23-2009 , 15:38   Re: Player Glow V1.0
Reply With Quote #2

In next version , you can add a trail for players!
Red for Tero - Blue for CT !
It`s just an ideea !
You can add a menu whit glow colors or a random color for players when round starts everybody have a random color!

Good job man!
__________________
Please make IT! ::

http://forums.alliedmods.net/showthread.php?t=94168

HELP ME PLEASE
Duracell_sk8 is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 06-23-2009 , 15:39   Re: Player Glow V1.0
Reply With Quote #3

PHP Code:
switch(random_num(1,8)) 
10 cases..?

Instead of all those cases, you could just do this to get random colors.

PHP Code:
fm_set_rendering(idkRenderFxGlowShellrandom(255), random(255), random(255), kRenderNormal16); 
set_user_rendering from fun could be used instead, it's more efficient.

IMO you should rename the cvar to something more appropiate, like amx_randomglow, for example.

EDIT:
You shouldn't set a task in client_connect, may cause trouble. Hook spawn or new round instead.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!

Last edited by Xellath; 06-23-2009 at 15:41.
Xellath is offline
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 06-23-2009 , 15:43   Re: Player Glow V1.0
Reply With Quote #4

He probably don't want to add engine, so he could use those:
PHP Code:
set_pev(idpev_renderfxkRenderFxGlowShell);
set_pev(idpev_rendercolor, {random_num(0255), random_num(0255), random_num(0255)});
set_pev(idpev_rendermodekRenderNormal);
set_pev(idpev_renderamt16); 
EDIT: Sorry, i meant fun.

Last edited by zacky; 06-23-2009 at 15:47.
zacky is offline
Send a message via Skype™ to zacky
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-23-2009 , 15:44   Re: Player Glow V1.0
Reply With Quote #5

Servers that gonna use this plugin gonna be spammed in logs with not valid pev errors.


Quote:
Originally Posted by zacky View Post
He probably don't want to add engine, so he could use those:
PHP Code:
set_pev(idpev_renderfxkRenderFxGlowShell);
set_pev(idpev_rendercolor, {random_num(0255), random_num(0255), random_num(0255)});
set_pev(idpev_rendermodekRenderNormal);
set_pev(idpev_renderamt16); 
renderamt is float.
PHP Code:
set_pev(idpev_rendercolor, {random_float(0255), random_float(0255), random_float(0255)});

set_pev(idpev_renderamt16.0); 
fun is still better.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 06-23-2009 at 15:48.
ConnorMcLeod is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 06-23-2009 , 15:45   Re: Player Glow V1.0
Reply With Quote #6

Quote:
Originally Posted by zacky View Post
He probably don't want to add engine, so he could use those:
PHP Code:
set_pev(idpev_renderfxkRenderFxGlowShell);
set_pev(idpev_rendercolor, {random_num(0255), random_num(0255), random_num(0255)});
set_pev(idpev_rendermodekRenderNormal);
set_pev(idpev_renderamt16); 
set_user_rendering is a native of fun module.
SnoW is offline
Send a message via MSN to SnoW
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 06-23-2009 , 15:45   Re: Player Glow V1.0
Reply With Quote #7

Quote:
Originally Posted by zacky View Post
He probably don't want to add engine, so he could use those:
PHP Code:
set_pev(idpev_renderfxkRenderFxGlowShell);
set_pev(idpev_rendercolor, {random_num(0255), random_num(0255), random_num(0255)});
set_pev(idpev_rendermodekRenderNormal);
set_pev(idpev_renderamt16); 
There is no need to add engine.

EDIT:
Wow, you guys are fast!
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
ƒa†es™
Senior Member
Join Date: May 2009
Location: Garena
Old 06-24-2009 , 03:59   Re: Player Glow V1.0
Reply With Quote #8

Quote:
Originally Posted by Duracell_sk8 View Post
In next version , you can add a trail for players!
Red for Tero - Blue for CT !
It`s just an ideea !
You can add a menu whit glow colors or a random color for players when round starts everybody have a random color!

Good job man!
Thanks, I will try my best

Quote:
Originally Posted by Xellath View Post
PHP Code:
switch(random_num(1,8)) 
10 cases..?

Instead of all those cases, you could just do this to get random colors.

PHP Code:
fm_set_rendering(idkRenderFxGlowShellrandom(255), random(255), random(255), kRenderNormal16); 
set_user_rendering from fun could be used instead, it's more efficient.

IMO you should rename the cvar to something more appropiate, like amx_randomglow, for example.

EDIT:
You shouldn't set a task in client_connect, may cause trouble. Hook spawn or new round instead.
Sorry for my mistake. Update V1.1
__________________
ƒa†es™ is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-24-2009 , 04:32   Re: Player Glow V1.0
Reply With Quote #9

Use set_user_rendering() from fun and not the fakemeta version.
__________________
Arkshine is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-24-2009 , 04:50   Re: Player Glow V1.0
Reply With Quote #10

http://forums.alliedmods.net/showthread.php?p=143706
__________________
xPaw 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 22:10.


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