SA-MP Forums Archive
Velocity couldn't be zero after death. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Velocity couldn't be zero after death. (/showthread.php?tid=495338)



Velocity couldn't be zero after death. - Rancho - 16.02.2014

Hello,

I've noticed bug that we can solve with OnPlayerDeath. But it's bug

If I don't use Spawning functions comes automatically with SA-MP(etc AddPlayerClass) and If I spawn player in onPlayerConnect and onPlayerDeath; the velocity couldn't be zero. And player deaths 3-4 times per 1 death.

PS: Sorry for bad english.

Solving in Pawn:

Add To OnPlayerDeath:
Код:
SetPlayerVelocity (playerid, 0,0,0);