SA-MP Forums Archive
[FilterScript] Gamer's speedometer & fuel system - 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] Gamer's speedometer & fuel system (/showthread.php?tid=169469)

Pages: 1 2 3


Gamer's speedometer & fuel system - gamer931215 - 19.08.2010

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


Re: Gamer's speedometer & fuel system - RemizeX - 19.08.2010

nice work, Gonna use it


Respuesta: Gamer's speedometer & fuel system - Cacoby - 19.08.2010

good job


Re: Gamer's speedometer & fuel system - DaneAMattie - 19.08.2010

sexy, im gona use this too i think


Re: Gamer's speedometer & fuel system - Brian_Furious - 19.08.2010

Ye, super cool and super scripter...nice one


Re: Gamer's speedometer & fuel system - Hero_Of_War - 19.08.2010

Is that MPH?


Re: Gamer's speedometer & fuel system - gamer931215 - 19.08.2010

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;



Re: Gamer's speedometer & fuel system - Hero_Of_War - 19.08.2010

Oh Ok


Re: Gamer's speedometer & fuel system - [XST]O_x - 19.08.2010

Haha I like it,simple and nice,good one!


Re: Gamer's speedometer & fuel system - fen1x-nk - 20.08.2010

good job, thanks


Re: Gamer's speedometer & fuel system - Deadwalker - 20.08.2010

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


Re: Gamer's speedometer & fuel system - gamer931215 - 20.08.2010

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.


Re: Gamer's speedometer & fuel system - Lookin - 22.08.2010

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


Re: Gamer's speedometer & fuel system - gondes - 16.09.2010

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.


Re: Gamer's speedometer & fuel system - gamer931215 - 16.09.2010

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


Re: Gamer's speedometer & fuel system - gondes - 16.09.2010

Ok Where i put stock IsPlayerAtRefuelStation(playerid) ?


Re: Gamer's speedometer & fuel system - gamer931215 - 16.09.2010

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


Re: Gamer's speedometer & fuel system - gondes - 17.09.2010

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.


Re: Gamer's speedometer & fuel system - gamer931215 - 17.09.2010

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()



Re: Gamer's speedometer & fuel system - Hawkz_Ryder - 17.09.2010

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

Sorry for my bad english!