Raised This Month: $94 Target: $400
 23% 

Colored Spawn v1.2.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Brad (55)
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 05-09-2009 , 22:16   Colored Spawn v1.2.2
Reply With Quote #1

.: Description :.
This plugin allows to add glow to the players when they are spawning. It only take a few seconds, and yeah, CSDM like.

.: CVARs :.
amx_colored_spawn "1" - Enable/disable the plugin.
amx_spawn_color "255 180 0" - Set the glow color. Default Yellow.
amx_spawn_admin_color "255 255 255" - Same as previus, but it's only for admins.
amx_random_colors "0" - Allows to the plugin to set random colors. By default this option is disabled.
amx_color_amount "25" - Set the glow amount. The value should be between 0 and 255.
amx_color_time "4.0" - Set the time before the glow dissapears. It must be decimal, don't forget that.

.: Spawn Colors :.
Since the plugin is using RGB sistem, you'll need a little-know about RGB Colors if you want change something.

Examples:
amx_spawn_color "255 255 255" - White
amx_spawn_color "255 0 0" - Red
amx_spawn_color "0 255 0" - Green
amx_spawn_color "0 0 255" - Blue

NOTE: Since the version v1.1b the plugin includes random colors feature, so if you have it enabled, the custom colors would be useless.

.: Changelog :.
Code:
v1.0 - First Release.
v1.1 - Now plugin uses Fun rendering instead of Fakemeta, since it's more efficient.
v1.1b - Added a cvar to set random colors. Thanks xPaw!
v1.2 - Code optimized. Added admin spawn color.
v1.2.1 - Changed kRenderFxGlowShell with kRenderFxNone to remove the glow.
.: Screenshots :.
[IMG]http://img87.**************/img87/7059/coloredspawn.th.png[/IMG] [IMG]http://img2.**************/img2/3601/coloredspawnrandom.th.png[/IMG]
Attached Files
File Type: sma Get Plugin or Get Source (colored_spawn.sma - 2859 views - 2.2 KB)
__________________
"There is no knowledge, that is not power"

Last edited by fezh; 06-11-2009 at 14:52.
fezh is offline
AlejandroSk
BANNED
Join Date: Nov 2008
Location: Aqui, en mi casa. Karma:
Old 05-09-2009 , 22:21   Re: Colored Spawn v1.0
Reply With Quote #2

Code:
fm_set_rendering
->
Code:
set_rendering
AlejandroSk is offline
Send a message via MSN to AlejandroSk
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 05-09-2009 , 22:24   Re: Colored Spawn v1.0
Reply With Quote #3

Yeah, I know fun rendering is more efficient than fakemeta, but it still not work for me.
__________________
"There is no knowledge, that is not power"
fezh is offline
AlejandroSk
BANNED
Join Date: Nov 2008
Location: Aqui, en mi casa. Karma:
Old 05-09-2009 , 23:57   Re: Colored Spawn v1.0
Reply With Quote #4

What you mean whit not work?
AlejandroSk is offline
Send a message via MSN to AlejandroSk
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-10-2009 , 00:22   Re: Colored Spawn v1.0
Reply With Quote #5

set_user_rendering() from the fun module should be used.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 05-10-2009 , 02:10   Re: Colored Spawn v1.0
Reply With Quote #6

jeje i think i need credits
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 05-10-2009 , 05:48   Re: Colored Spawn v1.0
Reply With Quote #7

set_user_rendering() from the fun module works flawlessly, what are you talking about?

Remove the fm_* prefix and remove the stock, include fun, compile.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 05-10-2009 , 06:19   Re: Colored Spawn v1.0
Reply With Quote #8

I'd suggest to add glowing colors based on the team the player is on.
And you should probably clamp the color values.
__________________
In Flames we trust!
Nextra is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 05-10-2009 , 08:37   Re: Colored Spawn v1.0
Reply With Quote #9

nice plugin ;)

what about amx_spawn_admin_color ?
KadiR is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 05-10-2009 , 14:46   Re: Colored Spawn v1.0
Reply With Quote #10

Quote:
Originally Posted by Exolent[jNr] View Post
set_user_rendering() from the fun module should be used.
Quote:
Originally Posted by Xellath View Post
set_user_rendering() from the fun module works flawlessly, what are you talking about?

Remove the fm_* prefix and remove the stock, include fun, compile.
Code:
L 05/11/2009 - 20:40:29: [FUN] Invalid player 1
L 05/11/2009 - 20:40:29: [AMXX] Displaying debug trace (plugin "colored_spawn.amxx")
L 05/11/2009 - 20:40:29: [AMXX] Run time error 10: native error (native "set_user_rendering")
L 05/11/2009 - 20:40:29: [AMXX]    [0] colored_spawn.sma::event_player_spawn (line 32)
__________________
"There is no knowledge, that is not power"
fezh is offline
Reply


Thread Tools
Display Modes

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:09.


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