[FilterScript] S32_Speedo - Nice and useful speedometer
#1

Introduction

Hi all

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



Features
  • Nice textdraws
  • Displaying vehicle name, vehicle speed, vehicle state (R - Reverse N - Neutral D - Drive), vehicle health (3 dots) and fuel
  • Fuel decreases 1% every 20 seconds

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
  • System32 - Almost everything!
  • Creator of GetSpeed function!
  • ****** - y_commands!
  • gamer931215 - He saved my time with his fuel tutorial!
Reply
#2

nice
Reply
#3

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.
Reply
#4

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

thanks for that


Video uploaded
Reply
#5

Nice work
Reply
#6

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

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
Reply
#8

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"
Reply
#9

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

Nice Job
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)