[HELP] With setting gravity on user.
Hi, there, i want to ask you why doesn't this work. I've a VIPmenu where you can choise gravity, but when I make it like this:
set_user_gravity(id, 300.0) It starts flying in air and it cant fall on the ground. I'm wondering, how can i make it like on deathrun server, or like when you type sv_gravity 300 in console and get low gravity. I'll give you the .sma to take a look on it! :) It's about the 3rd case, when i want to set the user 300 gravity by choosing option 3 on the menu. And it looks like this (DEMO) : http://dox.bg/files/dw?a=787b241ce8 PHP Code:
|
Re: [HELP] With setting gravity on user.
PHP Code:
|
Re: [HELP] With setting gravity on user.
set_user_gravity works differently than sv_gravity. Setting it to 1 will make the user's gravity the same as the server. Setting it less than 1 makes it less than the server and greater than 1 makes it higher than the server
|
Re: [HELP] With setting gravity on user.
That's what is happening - http://prikachi.com/images.php?images/129/7123129H.jpg
Errors, again and again. I don't know what to do, i tried to set it on 0.3, 0.64, and many other numbers, but the same thing happens in the server. PHP Code:
|
Re: [HELP] With setting gravity on user.
change index to id
|
Re: [HELP] With setting gravity on user.
Look to the upper post, with index or id, it doesn't work. I'm flyung up and down in the server again and this is weird. Maybe I need to add something else in the .sma to fix it?
|
Re: [HELP] With setting gravity on user.
Code:
|
Re: [HELP] With setting gravity on user.
it should be vice-versa
cause 300 means that player ir lighter than normally (800), but with your code it would be heavier, so it must be then 300.0 / 800.0 |
Re: [HELP] With setting gravity on user.
Quote:
|
Re: [HELP] With setting gravity on user.
Thank you, Georgik57!!!! This worked, thank you so much!
Now i want to ask, why when I set some speed to user, it's like the maximum fast, and the number of the speed doesnt matter, it's everytime that fast. I want to ask, how am I supposed to set_user speed, just little over the normal. Like if the normal is 250, i want to set the user speed 300. Perhaps it's again something with new float, but i'll be so grateful if someone tell me what to do. :) |
| All times are GMT -4. The time now is 05:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.