Police Speed Radar!
#4

Wow, you are impatient.. Nope sorry can't help you.. Well, maybe I can :O

Code:
stock GetPlayerSpeed(playerid) // bottom of your script
{
    new Float:X, Float:Y, Float:Z;
    if(IsPlayerInAnyVehicle(playerid))
    {
        GetVehicleVelocity(GetPlayerVehicleID(playerid), X, Y, Z);
        return floatround(floatmul(floatmul(floatsqroot(floatpower(floatabs(X), 2) + floatpower(floatabs(Y), 2) + floatpower(floatabs(Z), 2)), 100), 1.621371192), floatround_round);
    }
    else
    {
        GetPlayerVelocity(playerid, X, Y, Z);
        return floatround(floatmul(floatmul(floatsqroot(floatpower(floatabs(X), 2) + floatpower(floatabs(Y), 2) + floatpower(floatabs(Z), 2)), 100), 1.621371192), floatround_round);
    }
}
You can add this somewhere, at a command or something, I'm sure you understand this
Code:
new Str[128];
format(Str, sizeof(Str), "You are driving %d km/hour!", GetPlayerSpeed(playerid));
SendClientMessage(playerid, Str);
return 1;
THIS IS NOT MADE BY ME, AND I DIDN'T TEST IT! IT HAS BEEN MADE BY "WANTED".
Reply


Messages In This Thread
Police Speed Radar! - by [LSR]State_Trooper - 26.02.2010, 09:08
Re: Police Speed Radar! - by [LSR]State_Trooper - 26.02.2010, 09:23
Re: Police Speed Radar! - by [LSR]State_Trooper - 26.02.2010, 09:31
Re: Police Speed Radar! - by VonLeeuwen - 26.02.2010, 10:29
Re: Police Speed Radar! - by addinol - 26.02.2010, 10:30
Re: Police Speed Radar! - by [LSR]State_Trooper - 26.02.2010, 10:32
Re: Police Speed Radar! - by VonLeeuwen - 26.02.2010, 10:37
Re: Police Speed Radar! - by bajskorv123 - 26.02.2010, 13:14
Re: Police Speed Radar! - by VonLeeuwen - 26.02.2010, 14:02
Re: Police Speed Radar! - by bajskorv123 - 26.02.2010, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)