pawn Код:
stock GetPlayerSpeed(playerid)
{
new Float:X,Float:Y,Float:Z;
GetPlayerVelocity(playerid,X,Y,Z);
return floatround(floatsqroot(X * X + Y * Y + Z * Z) * 200.00);
}
stock GetVehicleSpeed(vehicleid)
{
new Float:X,Float:Y,Float:Z;
GetVehicleVelocity(vehicleid,X,Y,Z);
return floatround(floatsqroot(X * X + Y * Y + Z * Z) * 200.00);
}
stock GetVehicleHP(vehicleid)
{
new Float:Health;
GetVehicleHealth(vehicleid,Health);
return floatround(floatsqroot(Health / 10.00));
}
Here.