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

Glow And Colors (Remake) v1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Hawk552 (427)
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 08-09-2009 , 16:31   Glow And Colors (Remake) v1.2
Reply With Quote #1

Glow Colors
Version 1.2

Description:
This plugin just set a simply glow to players with different colors!
Also, you can set a customizable glow color to each mode.
This plugin is a Remake from this plugin because original autor, is offline and is not supporting that plugin, (I know because is my brother), and Hawk552 let me post this remake

Colors (Default):
Red for Terrorists
Blue for Counter-Terrorists
Yellow for the c4 carrier
Light Blue for each CT who carries a defuse kit

Cvars:
glow_enabled (1|0) (Enable | Disable the plugin)
glow_custom_color (1|0) (Enable | Disable custom glow colors)
glow_defuse_color "Red Green Blue Amount" (Defuse carrier glow color)
glow_c4_color "Red Green Blue Amount" (C4 carrier color)
glow_terr_color "Red Green Blue Amount" (Terrorist glow color)
glow_ct_color "Red Green Blue Amount" (CT´s glow color)

Modules:
Fun

Credits:
- RULEEwasdsa Original Plugin & Idea

Changelog:
Code:
v1.0 First Release
v1.1 Fix some code tips 
v1.2 Added Events to set glow


Servers with this plugin:
[Here]

Screenshots:


Terrorists with default colors


Terrorists with custom colors


Cts with default colors


Cts with custom colors



Plugin is working 100% correctly!
Enjoy!
Attached Files
File Type: sma Get Plugin or Get Source (glow_colors.sma - 7524 views - 5.9 KB)
__________________
Find my plugins here..

Ex - Spanish Moderator.

Last edited by Starsailor; 08-31-2009 at 21:44.
Starsailor is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-09-2009 , 16:39   Re: Glow And Colors (Remake) v1.0
Reply With Quote #2

1. PreThink is a terrible place to set glow
2. You sometimes send 2 times fm_set_user_rendering in a row for the same player
3. Use set_user_rendering from fun module is faster than fakemeta conversion

-> Your plugin is terrible.
Original plugin is much better.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viña del Mar, Chile
Old 08-09-2009 , 16:44   Re: Glow And Colors (Remake) v1.0
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
1. PreThink is a terrible place to set glow
2. You sometimes send 2 times fm_set_user_rendering in a row for the same player
3. Use set_user_rendering from fun module is faster than fakemeta conversion

-> Your plugin is terrible.
Original plugin is much better.
No comments
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 08-09-2009 , 16:46   Re: Glow And Colors (Remake) v1.0
Reply With Quote #4

Quote:
1. PreThink is a terrible place to set glow
should i use set task?, if i use set task with a loop ( i <= maxplayers) my server crash
__________________
Find my plugins here..

Ex - Spanish Moderator.

Last edited by Starsailor; 08-09-2009 at 18:10.
Starsailor is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-09-2009 , 16:50   Re: Glow And Colors (Remake) v1.0
Reply With Quote #5

You should send set_user_rendering only when it's needed, aka if the player status has changed.
It's up to you to find a good way to make the plugin, detect team change, defuser pick up, bomb pickup...
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 08-09-2009 , 16:54   Re: Glow And Colors (Remake) v1.0
Reply With Quote #6

Updated.

Quote:
Originally Posted by ConnorMcLeod View Post
You should send set_user_rendering only when it's needed, aka if the player status has changed.
It's up to you to find a good way to make the plugin, detect team change, defuser pick up, bomb pickup...
In next version
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 08-09-2009 , 16:59   Re: Glow And Colors (Remake) v1.0
Reply With Quote #7

Do like Connor say. You are setting a Glow to a Dead Player.

Put in:
Spawn
Pick Up Boom ( see csx )
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-09-2009 , 17:03   Re: Glow And Colors (Remake) v1.0
Reply With Quote #8

You don't need csx but you can use it for bomb detection.
For defuser you have to use some events from here : http://wiki.amxmodx.org/Half-Life_1_Game_Events (you can detect bomb also)

Usefull events :
ItemPickup
StatusIcon
TeamInfo
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 08-09-2009 at 17:06.
ConnorMcLeod is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-09-2009 , 17:37   Re: Glow And Colors (Remake) v1.0
Reply With Quote #9

The original plugin has the exact same functionality, and from the version I just downloaded from you, has the almost same code.

Yours has no advantage over the original, until you add the changes Connor suggested.
Also, the original has the advantage right now because it doesn't have the problems Connor pointed out (multiple renders set to 1 player and fakemeta conversions).
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 08-09-2009 , 17:49   Re: Glow And Colors (Remake) v1.0
Reply With Quote #10

Quote:
(Thanks crazyeffect for your image uploader)
Hehe
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
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 08:52.


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