Speed???
Hey, I was making a plugin and I can't get a player to have more speed...
When they type the clcmd he can't move unless he changes weapons and after that he doesn't go faster... Normal speed is this: Code:
How would you make it got faster??? -2.0??? Thanks in advance |
Code:
This would make player move faster. And also -1.0 is not the normal speed. I'm not sure what normal speed is. 320 maybe. And if you want the person to keep the speed if weapon is changed then you need hook CurWeapon event. |
do a set_user_maxspeed(id, 1000) in a current weapon event so when he changes it will stay.
and set sv_maxspeed to 9999999 Edit: Damn posted at the same time :lol: |
default is 320.0
If you want to be faster you must set sv_maxspeed in your server.cfg like sv_maxspeed 1000 then you can set set_user_maxspeed(id,1000.0) |
i think the normal speed is 250
|
Hmm.. I belive you dont have to do sv_maxspeed 9999 or whatever. Doesnt this change the speed of all players? I'm not using sv_maxspeed in my plugin but set_user_maxspeed seems to work fine.
|
This kinda works...
Code:
But when you switch weapons it changes... How do you do the Currweapon? I want to make it so when they say "buyspeed" it gives them speed +680 |
|
What I do:
Code:
|
| All times are GMT -4. The time now is 20:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.