AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   /glow help (Colors) (https://forums.alliedmods.net/showthread.php?t=130402)

suffer 06-23-2010 15:20

/glow help (Colors)
 
I'm making a really good '/glow' plugin where a player can type that then a name, but how do I make it glow different colors? Like to glow red it's
255 0 0, but how do i do like USA glow

Red, Green, Blue -- Wheres the white? How do we make white

Then how do we make it so itll switch from red, to white, then to blue, then to loop it so it does it over?

Also, how do I make it so when a player types /glowoff it turns off all glowing.

register_clcmd("say /glowoff", "glowoff");

public glowoff(id)
{
What's the code?
}

infek 06-23-2010 16:35

Re: /glow help (Colors)
 
The color white is
PHP Code:

255255255 

Syntax Example
PHP Code:

set_user_renderingindexkRenderFxGlowShellREDGREENBLUEkRenderNormalAmountOfGlow 


Making a player glow white
PHP Code:

set_user_renderingindexkRenderFxGlowShell255255255kRenderNormal25 

Removing Glow
PHP Code:

set_user_renderingindexkRenderFxGlowShell000kRenderNormal25 



All times are GMT -4. The time now is 14:46.

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