SA-MP Forums Archive
[FilterScript] S32_Speedo - Nice and useful speedometer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] S32_Speedo - Nice and useful speedometer (/showthread.php?tid=301062)



S32_Speedo - Nice and useful speedometer - System64 - 02.12.2011

Introduction

Hi all

I was bored so I decide to make this little speedometer!



Features

Video

[ame]http://www.youtube.com/watch?v=Jh7Mz7sz9mw[/ame]


Necessary things

y_commands by ******


Download

Pastebin (v1.0.0)


Mediafire (v1.0.0)


Solidfiles (v1.0.0)



Credits



Respuesta: S32_Speedo - Nice and useful speedometer - Mati_IBV - 02.12.2011

nice


Re: S32_Speedo - Nice and useful speedometer - Lorenc_ - 03.12.2011

pawn Код:
function test(plaerid)
{
    new Fuel[MAX_PLAYERS], FuelPrice;

    /* SOLUTION */
    for(new i = 90; i >= 20; i -= 10)
    {
        if(Fuel[GetPlayerVehicleID(playerid)] > i - 10 && Fuel[GetPlayerVehicleID(playerid)] < i) FuelPrice = i * 5;
    }
    /* Previously. */
    if(Fuel[GetPlayerVehicleID(playerid)] > 90) FuelPrice = 500;
    if(Fuel[GetPlayerVehicleID(playerid)] > 80 && Fuel[GetPlayerVehicleID(playerid)] < 90) FuelPrice = 450;
    if(Fuel[GetPlayerVehicleID(playerid)] > 70 && Fuel[GetPlayerVehicleID(playerid)] < 80) FuelPrice = 400;
    if(Fuel[GetPlayerVehicleID(playerid)] > 60 && Fuel[GetPlayerVehicleID(playerid)] < 70) FuelPrice = 350;
    if(Fuel[GetPlayerVehicleID(playerid)] > 50 && Fuel[GetPlayerVehicleID(playerid)] < 60) FuelPrice = 300;
    if(Fuel[GetPlayerVehicleID(playerid)] > 40 && Fuel[GetPlayerVehicleID(playerid)] < 50) FuelPrice = 250;
    if(Fuel[GetPlayerVehicleID(playerid)] > 30 && Fuel[GetPlayerVehicleID(playerid)] < 40) FuelPrice = 200;
    if(Fuel[GetPlayerVehicleID(playerid)] > 20 && Fuel[GetPlayerVehicleID(playerid)] < 30) FuelPrice = 150;
    if(Fuel[GetPlayerVehicleID(playerid)] > 10 && Fuel[GetPlayerVehicleID(playerid)] < 20) FuelPrice = 100;
    if(Fuel[GetPlayerVehicleID(playerid)] < 10) FuelPrice = 50;
    if(GetPlayerMoney(playerid) < FuelPrice) return SendClientMessage(playerid, COLOR_KRED, "You don't have enough money!");
}
Instead of all the "IF" statements, I made a little solution for you :3

Nice job anyway.


Re: S32_Speedo - Nice and useful speedometer - System64 - 03.12.2011

haah lorenc thank you but I won't reupload it again xD

thanks for that


Video uploaded


Re: S32_Speedo - Nice and useful speedometer - -BadGirl- - 03.12.2011

Nice work


Re: S32_Speedo - Nice and useful speedometer - _KrazyKat_ - 26.04.2012

Great script..
I like all your works System32..
I will give you +1Rep..


Re: S32_Speedo - Nice and useful speedometer - jake_peterson - 11.05.2012

i cant download Solidfiles (v1.0.0). the download link doesn't work and where can i find "****** - y_commands!", i dont understand where i can find it.
otherwise nice ґscript


Re: S32_Speedo - Nice and useful speedometer - HaZaRaS™ - 11.05.2012

Quote:
Originally Posted by jake_peterson
Посмотреть сообщение
i cant download Solidfiles (v1.0.0). the download link doesn't work and where can i find "****** - y_commands!", i dont understand where i can find it.
otherwise nice ґscript
If you mean the download link is not working then http://"http://www.2shared.com/file/...2_SPEEDO.html"


Re: S32_Speedo - Nice and useful speedometer - Speeeeeed - 04.07.2012

Very very very very very very good job !!!! The best speedometer ever! Thx very much my friend


Re: S32_Speedo - Nice and useful speedometer - shayan122 - 04.07.2012

Nice Job