05.06.2011, 14:19
Hi, i have a question. How create IsPlayerMoving or not. I am trying so
and check
But, i getting variables or moneys. Where is the problem?
Код:
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 true;
return false;
}
Код:
if(IsPlayerMoving(playerid))
{
}
else
{
}

