AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   glowingplayers? (https://forums.alliedmods.net/showthread.php?t=55516)

st0rmstan 05-23-2007 15:58

glowingplayers?
 
I used search function and found some ways to make players glow, but ways are different. What is a good and easy way to make a player glow?
I want a player to say: /glow red , and then they start to glow red.
I'm pretty sure it's: register_clcmd("say /glow red", "glowred" , right? and then make:
public glowred(id)
{
CODE
}


If that's right, I'll be happy, I'm learning to code :d

Alka 05-23-2007 16:05

Re: glowingplayers?
 
yes that is it!
Code:

register_clcmd("say /glow red","glowred");
:)

st0rmstan 05-23-2007 16:07

Re: glowingplayers?
 
but then on:

public glowred(id)
{
CODE
}

whats should the CODE be? (how do I actually make them glow on that command)



Yay i actually remember that register_clcmd :)

Deviance 05-23-2007 16:09

Re: glowingplayers?
 
set_user_rendering

st0rmstan 05-23-2007 16:13

Re: glowingplayers?
 
set_user_rendering(index,kRenderFxGlowShell,255,0,0,kRenderNorm al,25)
^^ glow red ^^

set_user_rendering(index,kRenderFxGlowShell,0,255,0,kRenderNorm al,25)
^^ glow green ^^

set_user_rendering(index,kRenderFxGlowShell,0,0,255,kRenderNorm al,25)
^^ glow blue ^^ correct?

PS:how can I make it so that when a player types /glow <color> and they start glowing, it displays and message to everyone that <PLAYER> IS GLOWING <COLOR> ?

Deviance 05-23-2007 17:19

Re: glowingplayers?
 
Quote:

Originally Posted by st0rmstan (Post 479825)
PS:how can I make it so that when a player types /glow <color> and they start glowing, it displays and message to everyone that <PLAYER> IS GLOWING <COLOR> ?

Code:
new name[32] get_user_name(id, name, 31) client_print(0, print_chat, "%s is glowing %s", name, color)

st0rmstan 05-23-2007 17:44

Re: glowingplayers?
 
Thank you very much! After my GunGiver plugin, im making a glow with tooooooons of colors and stuff , so thx a TON

st0rmstan 05-23-2007 18:10

Re: glowingplayers?
 
oopz nvm there is already many glow plugins made but I'll keep that in mind just incase i ever need glow effect, +karma guys and thanks a ton :)


All times are GMT -4. The time now is 10:44.

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