[FilterScript] bR SpeedoMeter
#9

Quote:
Originally Posted by Pottus
View Post
You didn't do your homework at all this function is incorrect but you can easily find the correct function on the forums.

Code:
Float:GetPlayerSpeed(playerid)
{
    new Float:px, Float:py, Float:pz;
    GetVehicleVelocity(GetPlayerVehicleID(playerid), px, py, pz);
    return floatsqroot(floatpower(floatabs(px), 2.0) + floatpower(floatabs(py), 2.0) + floatpower(floatabs(pz), 2.0)) * 100;
}
You are also wasting player textdraws and doing extra work when a lot of them should just be global textdraws.

Code:
public OnPlayerDisconnect(playerid, reason)
{
    speedohide(playerid);
    return 1;
}
This does nothing at all.
Ok sir edited
Reply


Messages In This Thread
bR SpeedoMeter - by BulletRaja - 23.02.2018, 16:00
Re: bR SpeedoMeter - by willbedie - 23.02.2018, 16:02
Re: bR SpeedoMeter - by BulletRaja - 23.02.2018, 16:09
Re: bR SpeedoMeter - by Wherethescripters - 23.02.2018, 16:39
Re: bR SpeedoMeter - by BulletRaja - 23.02.2018, 16:41
Re: bR SpeedoMeter - by Nizarh - 23.02.2018, 16:51
Re: bR SpeedoMeter - by BulletRaja - 23.02.2018, 16:54
Re: bR SpeedoMeter - by Pottus - 23.02.2018, 21:16
Re: bR SpeedoMeter - by BulletRaja - 01.03.2018, 05:50
Re: bR SpeedoMeter - by nimaGamer - 06.03.2018, 16:34

Forum Jump:


Users browsing this thread: 3 Guest(s)