SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 17/06/2018, 01:41 PM   #1
CaptainBoi
Huge Clucker
 
CaptainBoi's Avatar
 
Join Date: May 2018
Location: Inside Game
Posts: 235
Reputation: 25
Default Realistic Transmission Speedometer

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:
Code:
/************************** 
            Credits  
   ZCMD: Zeex
  
   foreach: Kar & ******
  
   SpeedoMeter: CaptainBoi
 **************************/

Download:
Pastebin v1.0
Pastebin v2.0
Github v1.0
Github v2.0

Last edited by CaptainBoi; 18/06/2018 at 04:27 PM.
CaptainBoi is offline   Reply With Quote
Old 17/06/2018, 01:48 PM   #2
Mike861
Huge Clucker
 
Join Date: Feb 2018
Posts: 201
Reputation: 14
Default Re: Realistic Transmission Speedometer

Too colorful, i like it simple.Yet the effort gets a plus.
Mike861 is offline   Reply With Quote
Old 17/06/2018, 02:05 PM   #3
CaptainBoi
Huge Clucker
 
CaptainBoi's Avatar
 
Join Date: May 2018
Location: Inside Game
Posts: 235
Reputation: 25
Default Re: Realistic Transmission Speedometer

Quote:
Originally Posted by Mike861 View Post
Too colorful, i like it simple.Yet the effort gets a plus.
Thanks
__________________
Code:
Releases
[FilterScript] Dynamic MySQL GPS System
[Tutorial] How to make TDM Team Selection.
[Include] moneybar.inc || Coloured Moneybar || Released
[Tutorial] PAWN Compiler In Notepad++
[FilterScript] Perks System (v: [On Update]) [DINI, ZCMD]
[FilterScript] Realistic Transmission Speedometer
CaptainBoi is offline   Reply With Quote
Old 17/06/2018, 04:06 PM   #4
AlphaDeLaCOD
Little Clucker
 
Join Date: Jan 2017
Posts: 4
Reputation: 0
Default Re: Realistic Transmission Speedometer

Perfect
AlphaDeLaCOD is offline   Reply With Quote
Old 17/06/2018, 04:28 PM   #5
Lokii
Huge Clucker
 
Join Date: Sep 2017
Posts: 319
Reputation: 81
Default Re: Realistic Transmission Speedometer

I dont like the health cause it could be on fire and health will be displayed between 0-250

i use for mine

PHP Code:
GetVehicleHP(vehicleid)
{
    new 
hp_resultFloat:hp;
    
GetVehicleHealth(vehicleidhp);
    
hp_result floatround((floatsub(hp250))/7.5);
    if(
hp_result 0) return hp_result;
    return 
0;

Lokii is offline   Reply With Quote
Old 17/06/2018, 06:13 PM   #6
Pottus
High-roller
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 4,856
Reputation: 1291
Default Re: Realistic Transmission Speedometer

Quote:
Originally Posted by AlphaDeLaCOD View Post
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!

Code:
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.

Last edited by Pottus; 18/06/2018 at 04:57 AM.
Pottus is offline   Reply With Quote
Old 17/06/2018, 11:43 PM   #7
Freaksken
Huge Clucker
 
Freaksken's Avatar
 
Join Date: Mar 2009
Location: Belgium
Posts: 495
Reputation: 363
Default Re: Realistic Transmission Speedometer

See this for a tutorial regarding correct use of (player)textdraws.
__________________
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.


[Include] FCNPC A.I. - [Tutorial] Speedometer - [WIP] Single-player-like co-op mission - [Other] List of all my work
Freaksken is offline   Reply With Quote
Old 18/06/2018, 04:06 PM   #8
CaptainBoi
Huge Clucker
 
CaptainBoi's Avatar
 
Join Date: May 2018
Location: Inside Game
Posts: 235
Reputation: 25
Default Re: Realistic Transmission Speedometer

Version 2.0 Added
-Whole Code Changed.
-Created A New Design.
__________________
Code:
Releases
[FilterScript] Dynamic MySQL GPS System
[Tutorial] How to make TDM Team Selection.
[Include] moneybar.inc || Coloured Moneybar || Released
[Tutorial] PAWN Compiler In Notepad++
[FilterScript] Perks System (v: [On Update]) [DINI, ZCMD]
[FilterScript] Realistic Transmission Speedometer
CaptainBoi is offline   Reply With Quote
Old 18/06/2018, 09:49 PM   #9
Pottus
High-roller
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 4,856
Reputation: 1291
Default Re: Realistic Transmission Speedometer

Your speed calculation is still wrong.
Pottus is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Realistic Manual Transmission System LEOTorres Filterscripts 19 13/01/2018 06:21 PM
Help in Transmission Gamer_007 Scripting Help 0 31/01/2013 03:11 AM
Help in detecting car's Transmission Gamer_007 Scripting Help 4 01/01/2013 07:33 AM
[FilterScript] Cde | Speedometer transmission system Cde Filterscripts 17 08/11/2010 03:07 PM


All times are GMT. The time now is 04:06 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.