SA-MP Forums Archive
Is it imposible? - 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: Is it imposible? (/showthread.php?tid=497134)



Is it imposible? - skydux123 - 25.02.2014

Hello everybody I have some questions.
Is it imposible to do something like move faster on the server Ex. Player want to run everytime not even when he hold space.
Another question is Is it imposible to do when player do damage it is more.


Re: Is it imposible? - Smileys - 25.02.2014

for the second question, yes.

https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage

https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage

https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot

https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate

for the first one, idk, don't think so, maybe with SetPlayerVelocity or something, might be possible, but it'll probably look terrible.

https://sampwiki.blast.hk/wiki/SetPlayerVelocity
https://sampwiki.blast.hk/wiki/GetPlayerVelocity

although with a vehicle it IS possible, it'll work nice n smooth.

https://sampwiki.blast.hk/wiki/SetVehicleVelocity

https://sampwiki.blast.hk/wiki/GetVehicleVelocity

or you could use SetVehicleSpeed, or something like that( those are custom functions, ****** for them ).


Re: Is it imposible? - MP2 - 25.02.2014

You don't need velocity functions for running - you just need to apply the 'running' animation when a player's holding an arrow key.