How do I reset a users speed?
I tried using set_user_maxspeed( id );
So the second value would just default to -1.0, but the player cant move... its like i start to move but then move back to my position its weird, is anyone else having this problem? |
isn't the normal speed 320?
cant you do: Code:
|
Quote:
My guess is that you're setting the speed in an event like CurWeapon or something like that. |
I think what wouter ment, which I also do in my plugin:
Before you actually change the persons speed somewhere in your plugin, save their normal speed to a variable. Code:
|
Quote:
i.e. I set their speed to 320 while they're holding shield I now want to reset it... They make shield "hidden", but they have movespeed of 320 b/c this didn't fire CurWeapon.. See what i mean? I need to be able to like set it to what it should be :/ |
set_user_maxspeed(index,0.0)
0.0 = default 1.0 = stop user |
AFAIK, 250.0 is the default value.
|
Make sure you have the real default:
Code:
|
i dont think there is a real default, it depends from the server max speed and the client max speed, and some plugins change both of them...
|
Quote:
|
| All times are GMT -4. The time now is 05:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.