[FilterScript] Realistic Transmission 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] Realistic Transmission Speedometer (
/showthread.php?tid=655275)
Realistic Transmission Speedometer -
CaptainBoi - 17.06.2018
Introduction:
I have created this speedometer for my server but after all i thought to release it.
Contains:
-Vehicle Name
-Vehicle Model
-Vehicle Health
-Vehicle Fuel
-Vehicle Speed
-Vehicle Gear (7 Gears: P, 1, 2, 3, 4, 5, R)
Pictures:
More Pictures
Click here
v2.0
Credits:
Код:
/**************************
Credits
ZCMD: Zeex
foreach: Kar & ******
SpeedoMeter: CaptainBoi
**************************/
Download:
Pastebin v1.0
Pastebin v2.0
Github v1.0
Github v2.0
Re: Realistic Transmission Speedometer -
Mike861 - 17.06.2018
Too colorful, i like it simple.Yet the effort gets a plus.
Re: Realistic Transmission Speedometer -
CaptainBoi - 17.06.2018
Quote:
Originally Posted by Mike861
Too colorful, i like it simple.Yet the effort gets a plus.
|
Thanks
Re: Realistic Transmission Speedometer -
AlphaDeLaCOD - 17.06.2018
Perfect
Re: Realistic Transmission Speedometer -
Lokii - 17.06.2018
I dont like the health cause it could be on fire and health will be displayed between 0-250
i use for mine
PHP код:
GetVehicleHP(vehicleid)
{
new hp_result, Float:hp;
GetVehicleHealth(vehicleid, hp);
hp_result = floatround((floatsub(hp, 250))/7.5);
if(hp_result > 0) return hp_result;
return 0;
}
Re: Realistic Transmission Speedometer -
Pottus - 17.06.2018
Quote:
Originally Posted by AlphaDeLaCOD
Perfect
|
Do you have any clue what you are talking about? I think not.
1.) Improper speed calculation - look this up you will see why it is out-to-lunch.
2.) Lousy health calculation. A car catches fire at 250hp.
3.) Improper use of textdraws. You are burning up textdraws for no reason!
Код:
new Text:speedo[MAX_PLAYERS][22];
This script could work for a maximum of 90 players before failure use player textdraws. Additionally use regular textdraws for any textdraws that don't change.
Re: Realistic Transmission Speedometer -
Freaksken - 17.06.2018
See
this for a tutorial regarding correct use of (player)textdraws.
Re: Realistic Transmission Speedometer -
CaptainBoi - 18.06.2018
Version 2.0 Added
-Whole Code Changed.
-Created A New Design.
Re: Realistic Transmission Speedometer -
Pottus - 18.06.2018
Your speed calculation is still wrong.