a few questions
I'm writing a code so that a user can make himself a "Haxor", where that costs 16,000 bucks!
Here's the code so far: Code:
#include <amxmodx>But now I need to know how to do the following things when the user is a "haxor" -Make him 3 times faster. -Make his gravity at 200. -Make him immune to headshots. -Make him only have a knife. If he picks up another gun, he automatically drops it. And he cant buy weapons. -Make him glow red or blue, depending on the team he's on (ct or t). So can somebody please help me with that stuff? Whatever you can help with would be fantastic! |
Re: a few questions
Okay, for the glow part, I figured out:
To glow red: set_user_rendering(index,kRenderFxGlowShell,255,0,0,kRenderNorm al,25) To glow blue: set_user_rendering(index,kRenderFxGlowShell,0,0,255,kRenderNorm al,25) But how to make it so T's glow red, CT's glow blue? :| And I still need help with everything else ;) Sorry for the bump, just needed to post this ;) |
Re: a few questions
Code:
You need to include the Cstrike module, and the fun module. Code:
|
Re: a few questions
Quote:
Quote:
Note that these functions require the fun module (which you already seem to have being loaded). set_user_maxspeed get_user_maxspeed set_user_gravity |
Re: a few questions
you guys Rock!
|
Re: a few questions
Quote:
set_user_maxspeed(id, get_user_maxspeed(id) / 2); if i wanted the speed to be half of normal? please help. thx in advance |
Re: a few questions
Yes.
|
Re: a few questions
aight thanks
|
Re: a few questions
please note:
everyone time someone changes their weapon the maxspeed with be reset, you must hook the CurWeapon event and reset their maxspeed. |
Re: a few questions
hm.. thanks ;)
|
| All times are GMT -4. The time now is 21:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.