AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Colored Spawn v1.2.2 (https://forums.alliedmods.net/showthread.php?t=92091)

fezh 05-09-2009 21:16

Colored Spawn v1.2.2
 
1 Attachment(s)
.: 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]

AlejandroSk 05-09-2009 21:21

Re: Colored Spawn v1.0
 
Code:
fm_set_rendering
->
Code:
set_rendering

fezh 05-09-2009 21:24

Re: Colored Spawn v1.0
 
Yeah, I know fun rendering is more efficient than fakemeta, but it still not work for me.

AlejandroSk 05-09-2009 22:57

Re: Colored Spawn v1.0
 
What you mean whit not work?

Exolent[jNr] 05-09-2009 23:22

Re: Colored Spawn v1.0
 
set_user_rendering() from the fun module should be used.

Starsailor 05-10-2009 01:10

Re: Colored Spawn v1.0
 
jeje i think i need credits :mrgreen::mrgreen::mrgreen::mrgreen:

Xellath 05-10-2009 04:48

Re: Colored Spawn v1.0
 
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.

Nextra 05-10-2009 05:19

Re: Colored Spawn v1.0
 
I'd suggest to add glowing colors based on the team the player is on.
And you should probably clamp the color values.

KadiR 05-10-2009 07:37

Re: Colored Spawn v1.0
 
nice plugin ;)

what about amx_spawn_admin_color ? :D

fezh 05-10-2009 13:46

Re: Colored Spawn v1.0
 
Quote:

Originally Posted by Exolent[jNr] (Post 824661)
set_user_rendering() from the fun module should be used.

Quote:

Originally Posted by Xellath (Post 824748)
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)



All times are GMT -4. The time now is 01:37.

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