AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Glow + UserSpeed (https://forums.alliedmods.net/showthread.php?t=50866)

Phantom Warrior 02-05-2007 17:21

Glow + UserSpeed
 
How would I make the user glow red, and there speed be fast.

I'm also going to add very good aiming, and more ammo in there weapon, later on in the code.

Here is my code so far. (I'm at the begging of it)

PHP Code:

#include <amxmodx>
 
#define PLUGIN "Champ is here"
#define VERSION "1.0"
#define AUTHOR "Phantom Warrior"

public plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
 
register_concmd("amx_champ""cmdchamp"ADMIN_LEVEL_A"Makes  the  user  have  lots  of  powers.")

 



Drak 02-05-2007 17:26

Re: Glow + UserSpeed
 
Glowing red:
Code:
set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25)
Setting speed: There's many different ways todo this, but this is the main way.
Code:
set_user_maxspeed(id,get_user_maxspeed(id) + 300.0)
Change 300.0 to your speed. Also, sv_maxspeed (Server CVAR) must be set accordingly.
(Both need fun module)

Phantom Warrior 02-05-2007 17:27

Re: Glow + UserSpeed
 
Ok thank you, will add fun module, thank you.


+karma


All times are GMT -4. The time now is 00:38.

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