set user maxspeed
Hi, i have menu. In the menu is TAKE SPEED. After this you have speed better (500.0) But ... if you switch weapon, your speed is normal .. Why? I want speed everytime if you have menu and if your choice SPEED
|
Re: set user maxspeed
Quote:
|
Re: set user maxspeed
yeah ... its already been explained , u have to do it using cur weapon ... use search as connor said
|
Re: set user maxspeed
PHP Code:
PHP Code:
|
Re: set user maxspeed
Quote:
|
Re: set user maxspeed
Yes, hook ResetMaxSpeed and then set maxspeed with set_pev not set_user_maxspeed
|
Re: set user maxspeed
|
Re: set user maxspeed
Quote:
|
Re: set user maxspeed
It's quite the same to use set_user_maxspeed.
Here's the snippet. Check if user is alive so you don't alter spectator speed, and check if maxspeed is not 1.0 so you don't allow players to move during freezetime : PHP Code:
|
Re: set user maxspeed
OK Connor, your method is fine and worked, but if i set maxspeed 700, and player push W (forward) he have speed maybe 400-500? And if he push W+A or W+D (forward+move left(strafe) or forward+move right(strafe) after this he have speed 700, but only forward dont work 700 speed.
|
| All times are GMT -4. The time now is 10:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.