[FilterScript] Clock speedometer
#1

Introduction
So, this is the first version of my new speedo. Feel free to edit it however you wish. The gas system is optional, it can easly be adjusted to your own. Do NOT re-release the script.
This is my first release, don't be too harsh .

Screens
http://imageshack.us/photo/my-images/812/5ki3.png/
http://imageshack.us/photo/my-images/13/c3kd.png/
http://imageshack.us/photo/my-images/41/9cps.png/
http://imageshack.us/photo/my-images/31/v0us.png/

Bugs
This fuel system is a little buggy, it's from GodFather. If you don't move the fuel will increase instead of decreasing.

Download
AMX
PWN
Pastebin
Reply
#2

Nice '-'

Reply
#3

Just amazing!
Reply
#4

Wow! It looks amazing!
Reply
#5

You are so creative to use the preview model function to add those lines. I've never thought of this.
Reply
#6

Wow, that's looking so cool.
Reply
#7

wow amazing nice +rep
Reply
#8

Fucking amazing, +REP!
Reply
#9

WOW looks really nice! great job.
Reply
#10

WoW Man is that Interior of a Car in this Filter-Script? and if it is I would like to +REP u
Reply
#11

Thanks guys.

Quote:
Originally Posted by Meow22
Посмотреть сообщение
WoW Man is that Interior of a Car in this Filter-Script? and if it is I would like to +REP u
It's the speedometer only. A 1st person view filterscript was already posted, it's called eDriverCam.
Reply
#12

amazing, great job.
Reply
#13

Great work bud, +REP
Reply
#14

o.O O.o

Best speedometer ever, awesome work!
Reply
#15

Amazing dude.
Reply
#16

wow... nice idea to use textdraw rotation!
Reply
#17

Looks pretty good just wanted to point out a couple improvements.

1.) You shouldn't use player textdraws for any textdraws that are common it's silly to create them everytime
2.) In addition to the first point it is silly to create/destroy the textdraws everytime you enter exit a vehicle
3.) Your velocity calculation is incorrect it should be 181.5 for km/h and 112.747 for mph look here

https://sampforum.blast.hk/showthread.php?tid=364124&page=7
http://gtaforums.com/topic/216347-gt.../#entry3209126

4.) You don't need this line.

pawn Код:
if(GetPlayerVehicleSeat(playerid) == 0 || GetPlayerVehicleSeat(playerid) == 1)
You have already made that check on this line

pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
5.) No need to call GetSpeed(playerid) multiple times do this instead.

new Float:currspeed = GetSpeed(playerid);

I think that sums up most of the problems I see I'll be honest the TD's look nice but the coding is beyond brutal when it comes to design choices.
Reply
#18

What about this?
Код:
E:\My server\filterscripts\Meter.pwn(37) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(39) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
E:\My server\filterscripts\Meter.pwn(41) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
E:\My server\filterscripts\Meter.pwn(44) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(46) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
E:\My server\filterscripts\Meter.pwn(48) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
E:\My server\filterscripts\Meter.pwn(112) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(114) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
E:\My server\filterscripts\Meter.pwn(116) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
E:\My server\filterscripts\Meter.pwn(121) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(123) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
E:\My server\filterscripts\Meter.pwn(125) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
E:\My server\filterscripts\Meter.pwn(130) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(132) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
E:\My server\filterscripts\Meter.pwn(134) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
E:\My server\filterscripts\Meter.pwn(139) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(141) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
E:\My server\filterscripts\Meter.pwn(143) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
E:\My server\filterscripts\Meter.pwn(148) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(150) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
E:\My server\filterscripts\Meter.pwn(152) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
E:\My server\filterscripts\Meter.pwn(157) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(159) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
E:\My server\filterscripts\Meter.pwn(161) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
E:\My server\filterscripts\Meter.pwn(166) : error 017: undefined symbol "TEXT_DRAW_FONT_MODEL_PREVIEW"
E:\My server\filterscripts\Meter.pwn(168) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#19

awesome .. Congratulations, great job!.
Reply
#20

Thats an awesome SPEEDOMETER.
REP++
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)