19.02.2011, 15:16
use this:
way to use:
pawn Код:
stock GetPlayerSpeed(playerid)
{
new Float:x, Float:y, Float:z, Float:rst;
GetPlayerVelocity(playerid, x, y, z);
rst = ((x*x) + (y*y));
return floatround(rst * 200, floatround_round);
}
pawn Код:
new speed = GetPlayerSpeed(playerid);