IsPlayerMoving - Would this work?
#1

pawn Код:
stock bool:IsPlayerMoving(playerid)
{
    new Float:Velocity[3];
    GetPlayerVelocity(playerid, Velocity[0], Velocity[1], Velocity[2]);
    if(Velocity[0] == 0 && Velocity[1] == 0 && Velocity[2] == 0) return false;
    return true;
}
Reply


Messages In This Thread
IsPlayerMoving - Would this work? - by Phil_Cutcliffe - 27.02.2014, 18:40
Respuesta: IsPlayerMoving - Would this work? - by Stront - 27.02.2014, 18:56
Re: Respuesta: IsPlayerMoving - Would this work? - by Phil_Cutcliffe - 27.02.2014, 20:42

Forum Jump:


Users browsing this thread: 1 Guest(s)