[FilterScript] Gamer's speedometer & fuel system
#1

Gamer's speedometer

Features:
Vehicles spawn with randomized fuel

Later spawned vehicles will be detected and also will be given fuel and the health will be re-calculated

Speedometer with fuel, vehiclehealth and speed in a nice textbox

Will warp out the player as driver when the tank is empty, passengers will not be ejected so you can re-enter as passenger to refuel!

Commands:
/refuel will detect if the player has $80 left for fuel, if the player has it will freeze the player for a few seconds and change the textdraw of "Fuel:" to "Refuelling..." and will unfreeze/update the fuel when its finished.

Screenshots:


Download:
http://pastebin.com/0tMBrTQm

Please give a feedback when using this
Reply
#2

nice work, Gonna use it
Reply
#3

good job
Reply
#4

sexy, im gona use this too i think
Reply
#5

Ye, super cool and super scripter...nice one
Reply
#6

Is that MPH?
Reply
#7

Quote:
Originally Posted by Hero_Of_War
Посмотреть сообщение
Is that MPH?
kmh, you can change the ratio yourself in the source

Edit, The ratio is at this part :
pawn Код:
_y))+(speed_z*speed_z))*136.666667;
Reply
#8

Oh Ok
Reply
#9

Haha I like it,simple and nice,good one!
Reply
#10

good job, thanks
Reply
#11

Kenn you do this on a filterscript please ?
sry for my bad english
Reply
#12

Quote:
Originally Posted by Deadwalker
Посмотреть сообщение
Kenn you do this on a filterscript please ?
sry for my bad english
It is an filterscript , just copy/paste the script the code from pastebin in your pawno and save/compile.
Reply
#13

Quote:
Originally Posted by Deadwalker
Посмотреть сообщение
Kenn you do this on a filterscript please ?
sry for my bad english
yeah mate look on the top it says filterscript on the topic name
Reply
#14

Bro i have problem with:

C:\Documents and Settings\p\Desktop\indo\gamemodes\VortexRoleplay.p wn(2929 : error 021: symbol already defined: "OnPlayerStateChange"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#15

Quote:
Originally Posted by gondes
Посмотреть сообщение
Bro i have problem with:

C:\Documents and Settings\p\Desktop\indo\gamemodes\VortexRoleplay.p wn(2929 : error 021: symbol already defined: "OnPlayerStateChange"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
You used "OnPlayerStateChange" twice, merge the part from the filterscript with your gamemode's "OnPlayerStateChange". Or just keep it using as an filterscript
Reply
#16

Ok Where i put stock IsPlayerAtRefuelStation(playerid) ?
Reply
#17

Quote:
Originally Posted by gondes
Посмотреть сообщение
Ok Where i put stock IsPlayerAtRefuelStation(playerid) ?
Just somewhere in ur script, like OnPlayerConnect its an standalone function.
Reply
#18

Bro why this C:\Documents and Settings\p\Desktop\Gas.pwn(165) : warning 235: public function lacks forward declaration (symbol "IsAtFuelStation")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply
#19

Quote:
Originally Posted by gondes
Посмотреть сообщение
Bro why this C:\Documents and Settings\p\Desktop\Gas.pwn(165) : warning 235: public function lacks forward declaration (symbol "IsAtFuelStation")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Use stock as in the example, and not 'public' in front of it



OR if you want to use public for some reason add this in the beginning of ur script (at the declarations just under #include <a_samp>) just put this: (but stock just looks cleaner without needing an forward.)
pawn Код:
forward IsAtFuelStation()
Reply
#20

I repaired five warnings, the longer it is not. The repaired version can download here :
http://pastebin.com/sHFus5ar

Sorry for my bad english!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)