Speed Player/Veh And HP
#5

Quote:
Originally Posted by RedJohn
Посмотреть сообщение
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.
Thanks.
Reply


Messages In This Thread
Speed Player/Veh And HP - by Hervest1998 - 23.07.2012, 10:26
Re: Speed Player/Veh And HP - by RedJohn - 23.07.2012, 10:34
Re: Speed Player/Veh And HP - by [IKS]Niko_Hs™ - 23.07.2012, 10:38
Re: Speed Player/Veh And HP - by RedJohn - 23.07.2012, 10:41
Re: Speed Player/Veh And HP - by Hervest1998 - 23.07.2012, 10:41

Forum Jump:


Users browsing this thread: 1 Guest(s)