[FilterScript] Speedgun; excellent for RP servers!
#21

Bugg all player can sea thes speed
Please report thes
Reply
#22

Quote:
Originally Posted by Elviss
Посмотреть сообщение
Bugg all player can sea thes speed
Please report thes
thats not a bug..
Reply
#23

That's better, but in V2 are 3 Bug's.
Reply
#24

Quote:
Originally Posted by oliver12
Посмотреть сообщение
That's better, but in V2 are 3 Bug's.
tell me

8char
Reply
#25

1.That's what Elviss Say(If it isn't a bug, then OK)
2.Even if Policeman is in LS and the racer is in SF, policeman can still know racer's speed.
3. I forgot
(I tell last bugg later)
Sorry for very bad English
Reply
#26

reason 2 is invalid
Reply
#27

How would I go about making it so if a vehicle isn't close by it doesn't check the speed cause just some normal aiming it keeps displaying the speed even if you're not aiming at a vehicle
Reply
#28

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
pawn Код:
stock GetPlayerSpeed(playerid) //MPH
{
    new veh = GetClosestVehicle(playerid), pSpeed[MAX_PLAYERS];
    if (veh)
    {
        new Float:x,Float:y,Float:z/*,string[128]*/;
        GetVehiclePos(veh,x,y,z);
        //IsPlayerAimingAt(veh,x,y,z,25);
        new Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,final_speed_int;
        GetVehicleVelocity(veh, speed_x, speed_y, speed_z);
        final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*85.4166672; // 136.666667 = kmph  // 85.4166672= mph
        final_speed_int = floatround(final_speed,floatround_round);
        /*format(string,sizeof(string),"Speed: %i MPH",final_speed_int,2000);
        SendClientMessage(playerid,lightblue,string);*/

        pSpeed[playerid] = final_speed+int,2000;
    }
    return 1;
}
Something like that should work, that is not tested so I am not sure if it will work. Nice work with this.
What if i want to aim at a vehicle that is not the closest one? For example i get out of a car, and aim at a player. I will still see my vehicle speed.
Reply
#29

Quote:
Originally Posted by wups
Посмотреть сообщение
What if i want to aim at a vehicle that is not the closest one? For example i get out of a car, and aim at a player. I will still see my vehicle speed.
In V3 It's got a fix for that. I'll be doing it soon, I'm coding for other people ATM.
Reply
#30

Nice one!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)