SA-MP Forums Archive
control the sprint speed of a player - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: control the sprint speed of a player (/showthread.php?tid=252809)



control the sprint speed of a player - Amine_Mejrhirrou - 03.05.2011

hi all
i know that what i'm gonna aske is 100% posible & it will be very helpfull for all the user
i all knwo that the sprint when we use UsePlayerPedAnims(); is the same for all
so all the players has the same speed
but now i'm looking for way to make one player faster than the other
i mean
if we have 2 team
Team 1 & Team 2
if the one player spawn in team 2 he will run a litelbit faster than player in team 1
pls don't telme to use animation caus i've try it & it's real not intresting
i try with setplayervelocity too but i fail
any solution or just an idea


Re: control the sprint speed of a player - Joe Staff - 03.05.2011

It isn't possible, SetPlayerVelocity will only affect players that are off the ground


Re : Re: control the sprint speed of a player - Amine_Mejrhirrou - 03.05.2011

Quote:
Originally Posted by SilentHuntR
Посмотреть сообщение
It isn't possible, SetPlayerVelocity will only affect players that are off the ground
i'm sur that thйr is a way caus i saw 2 server like that


Re: control the sprint speed of a player - Georgelopez1 - 03.05.2011

Hmm, i'll have to think about that..


Re : control the sprint speed of a player - Amine_Mejrhirrou - 03.05.2011

for exaple Los Santo Zombie Appocalypse have this i think
zombies run faster than human


Re: control the sprint speed of a player - dr.pepper - 03.05.2011

You need to like run a 0.2X script on a 0.3c server. (needs to be compatible)


Re: control the sprint speed of a player - _Outbreak_ - 03.05.2011

The skins they use for zombies are slightly faster at sprinting when UsePlayerPedAnims() isn't included under OnGameModeInit.

It's a skin, not something scripted to make certain players run faster.


Re : Re: control the sprint speed of a player - Amine_Mejrhirrou - 03.05.2011

Quote:
Originally Posted by _Outbreak_
Посмотреть сообщение
The skins they use for zombies are slightly faster at sprinting when UsePlayerPedAnims() isn't included under OnGameModeInit.

It's a skin, not something scripted to make certain players run faster.
as you probably don't see ... i said that UsePlayerPedAnims() set the same animations to all the player except 2 skins ! two skaters ! so no what you said is compleatly rong


Re: Re : Re: control the sprint speed of a player - _Outbreak_ - 03.05.2011

Quote:
Originally Posted by Amine_Mejrhirrou
Посмотреть сообщение
as you probably don't see ... i said that UsePlayerPedAnims() set the same animations to all the player except 2 skins ! two skaters ! so no what you said is compleatly rong
The roller skate ones won't run properly, and never have in SAMP.

Adding "UsePlayerPedAnims()" under OnGameModeInit() would make all skins run a little like CJ. The server you mentioned doesn't use CJ running style for skins. That's why some skins are faster than others. The bald farmer man with no shirt on runs faster than some of the other peds, there maybe a few more skins like that but that's how it works in that server.


Re: control the sprint speed of a player - [SFA]SpiRRiT - 03.05.2011

This subject is useless.. It's not possible so, just stop discussing? Stop waisting eachothers time?