SA-MP Forums Archive
Weapon holding & player running speed - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Weapon holding & player running speed (/showthread.php?tid=654021)



Weapon holding & player running speed - Chanty420 - 19.05.2018

No (1)I see players holding high range weapons like (m4,combat-shotgun etc) with two hands when the player is simply holding gun & standing & while running also.
In another server's, players hold weapons like m4 & combat shotgun with only one hand.
How can we handle this?

No (2) I see players running fast speedy in some server's & slowly in other servers. I don't think that's a speed because all players go same.
How can i change the running speed of player?

Can anyone help me for this cases? If you didn't understand my 1st case, i will upload picture's to make you understand.


Re: Weapon holding & player running speed - JasonRiggs - 19.05.2018

The first thing is called PedAnims, If you want heavy weapons with two hands (Like CJ) you must add under
Quote:

OnPlayerConnect

add this
PHP код:
UsePlayerPedAnims(); 
If you want the heavy guns with one hand then simply don't add this line..

Also CJ running style is faster than the normal one, That's the point..


Re: Weapon holding & player running speed - Chanty420 - 19.05.2018

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
The first thing is called PedAnims, If you want heavy weapons with two hands (Like CJ) you must add under

add this
PHP код:
UsePlayerPedAnims(); 
If you want the heavy guns with one hand then simply don't add this line..

Also CJ running style is faster than the normal one, That's the point..
What about 2nd question & explain me in detail please.


Re: Weapon holding & player running speed - Lokii - 19.05.2018

using UsePlayerPedAnims(); will set all skins animation to cj's
which will also use cj running animation and make them run faster


Re: Weapon holding & player running speed - Chanty420 - 19.05.2018

All just i need to do is to remove this?
PHP код:
UsePlayerPedAnims(): 



Re: Weapon holding & player running speed - Lokii - 19.05.2018

Quote:
Originally Posted by Chanty420
Посмотреть сообщение
All just i need to do is to remove this?
PHP код:
UsePlayerPedAnims(): 
no add it to gamemodeinit


Re: Weapon holding & player running speed - JasonRiggs - 19.05.2018

By the way it isn't
PHP код:
UsePlayerPedAnims(): 
But it is
PHP код:
UsePlayerPedAnims(); 



Re: Weapon holding & player running speed - Chanty420 - 20.05.2018

Now i should remove it from the script or what?


Re: Weapon holding & player running speed - DarkSkull - 20.05.2018

Quote:
Originally Posted by Chanty420
Посмотреть сообщение
Now i should remove it from the script or what?
Just add the below code under OnGameModeInit();

PHP код:
UsePlayerPedAnims(); 



Re: Weapon holding & player running speed - Chanty420 - 21.05.2018

Lol I want to remove the CJ speed & weapon holding, so i should remove this
PHP код:
UsePlayerPedAnims(); 
But if i remove the "UsePlayerPedAnims" & compile the script then the commands are not working

If i type /setweather 0 - the weather actually should change to 0, but now its showing /setweather - [ID]
Similarly
/ban 2 FH - it shows ( /ban (id) (reason) )
/kick
/warn
........ All commnands are not working when i do remove this from OnGameModeInt
PHP код:
UsePlayerPedAnims();