Help setting maxspeed
Hey guys,
I am trying to make a menu for special rounds and I have this code: PHP Code:
PHP Code:
Also, how do I change it so it gives everyone maxspeed? I tried setting that to set_user_maxspeed(0, 1000.0) with a 0 instead of 1 but that didn't work at all. Thanks! |
Re: Help setting maxspeed
You set only max speed. You need to set player speed.
EDIT: I don't know maybe I am wrong. |
Re: Help setting maxspeed
|
Re: Help setting maxspeed
Hmm, i'm not quite sure I understand what's happening in that plugin :(
|
Re: Help setting maxspeed
Your way is fine, Bugsy way is more accurate but it won't help with your problem.
Your problem is that clients cvars limit clients maxspeed. Those cvars are cl_forwardspeed, cl_backspeed and cl_sidespeed. Changing them without asking clients permission is considerated as slowhacking and is not allowed. |
Re: Help setting maxspeed
If you set speed too high, does the value get clamped or just ignored? I assumed it was working but getting reset on him frequently that's why I was hinting towards using ResetMaxSpeed for setting speed.
|
Re: Help setting maxspeed
Hm, when I put this in it, it still doesn't work.
PHP Code:
|
Re: Help setting maxspeed
You speed is still 320? [MAX]
You are setting the speed on server side. Why don't You set it on client side too? PHP Code:
|
Re: Help setting maxspeed
sv_maxspeed as a client command? I think thats a server side command, thats what the sv_ stands for. Correct me if i'm wrong though.
I tried already setting the client command cl_forwardspeed, sidespeed, and backspeed to 700, but the effect was still the same. No change in speed :( |
Re: Help setting maxspeed
Did you search the forums yet because there are a lot of threads on the topic, you can even look at an existing plugin to see how its done and maybe it'll help solve your problem.
In that plugin thread: Code:
Make sure that server cvars sv_maxspeed and sv_maxvelocity are set in |
| All times are GMT -4. The time now is 14:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.