GetPlayerVelocity ?
#5

Код:
new
    Float: vX,
    Float: vY,
    Float: vZ;
GetVehicleVelocity(GetPlayerVehicleID(playerid), vX, vY, vZ);
if (vX > 0 || xY > 0 || vZ > 0)
{
    // Player is moving
}
This detects if the player is moving or not.

I'm not sure if it works perfectly when the player is AFK, because when you press pause when driving, you continue to move on other players' screens.
Reply


Messages In This Thread
GetPlayerVelocity ? - by MayaEU - 16.06.2016, 20:01
Re: GetPlayerVelocity ? - by MayaEU - 16.06.2016, 20:15
Re: GetPlayerVelocity ? - by WhiteGhost - 16.06.2016, 20:16
Re: GetPlayerVelocity ? - by MayaEU - 16.06.2016, 20:18
Re: GetPlayerVelocity ? - by Stinged - 16.06.2016, 20:36
Re: GetPlayerVelocity ? - by MayaEU - 16.06.2016, 20:39
Re: GetPlayerVelocity ? - by MayaEU - 16.06.2016, 21:40
Re: GetPlayerVelocity ? - by d1git - 17.06.2016, 01:55
Re: GetPlayerVelocity ? - by MayaEU - 17.06.2016, 04:50
Re: GetPlayerVelocity ? - by d1git - 17.06.2016, 13:39

Forum Jump:


Users browsing this thread: 1 Guest(s)