Event_CurWeapon
Hey, I need some help with my script, I hooked event_curweapon event and changed cs_set_user_maxspeed to get_user_maxspeed + 30.0. but when I'm shooting and runnin I'm getting even faster and maxspeed increases to like 400+... how can I fix this problem ?
PHP Code:
|
Re: Event_CurWeapon
CurWeapon is called each time you shoot. You change the speed by a custom speed you add from the current speed... Normal behaviour. Explain what you want to do.
|
Re: Event_CurWeapon
I wan't to do that, if player has ADMIN_LEVEL_H he will be faster, I tried to put this code into hamspawn event but when I changed my weapon speed resetted to normal.
|
Re: Event_CurWeapon
|
Re: Event_CurWeapon
is this going to work for me ? and is it what im lookin for ? :)
http://forums.alliedmods.net/showpost.php?p=853202&postcount=11 |
Re: Event_CurWeapon
Yes, that should do it. Not sure 100%.
Read through the thread. |
Re: Event_CurWeapon
Now
PHP Code:
|
Re: Event_CurWeapon
Quote:
PHP Code:
CS_ARMOR_VESTHELM :arrow: PHP Code:
|
Re: Event_CurWeapon
http://www.amxmodx.org/funcwiki.php?...rmor&go=search
I think it is needed. I was unsure about that at first too, but then I checked. |
| All times are GMT -4. The time now is 05:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.