Increasing player run/sprint speed? Possible? - 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: Increasing player run/sprint speed? Possible? (
/showthread.php?tid=604184)
Increasing player run/sprint speed? Possible? -
Dokins - 01.04.2016
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && SpeedSet[playerid] == 1)
{
new Float: Xs, Float: Ys, Float: Zs;
GetPlayerVelocity(playerid, Xs, Ys, Zs);
SetPlayerVelocity(playerid, Xs*1.2, Ys*1.2, Zs);
}
This is what I have so far, It doesn't seem to work that well. I'm not sure if there's a better way or I've done this wrong.
Any help would be kind.
Re: Increasing player run/sprint speed? Possible? -
Harty - 01.04.2016
Where did you add these functions?
Re: Increasing player run/sprint speed? Possible? -
Dokins - 01.04.2016
OnPlayerUpdate
Re: Increasing player run/sprint speed? Possible? -
Dokins - 02.04.2016
Bump