[FilterScript] New vehicle speedometer! Good for RP servers! - 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] New vehicle speedometer! Good for RP servers! (
/showthread.php?tid=660218)
New vehicle speedometer! Good for RP servers! -
d3Pedro - 28.10.2018
cWSpeedo
Hey boys, well I did a new speedometer for my server, so I'm sharing you the old one!
Any feedback will be appreciated
Download:
Github
Updated:
Code:
Added GetVehicleSpeedMPH
Added /switchspeedo
Added ZCMD include
Added a better format for vehicle health.
Credits:
SA-MP Team for a_samp include.
Zeex for ZCMD.
Ipleomax for his amazing textdraw editor.
Screenshot:
Enjoy!
Re: New vehicle speedometer! Good for RP servers! -
Ciandlah - 28.10.2018
Hey man, nice little filterscript you have here. I understand a lot of people have opinions on where to put your releases however at the end of the day man, it your choice how you release it. As long as the files are usable. +rep though
Re: New vehicle speedometer! Good for RP servers! -
Pottus - 28.10.2018
1.) You can reduce the player textdraws used by using global textdraws for any textdraws that don't change on a per player basis.
2.) This can be removed player textdraws are for the client specifically no need to destroy them.
Code:
public OnPlayerDisconnect(playerid, reason)
{
for(new i = 0; i < 10; i ++) {
PlayerTextDrawDestroy(playerid, cWspeedo[playerid][i]);
cWspeedo[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
}
return 1;
}
3.) Do this check first before doing anything.
Code:
if(!IsAbicycle(vehicleid))
Re: New vehicle speedometer! Good for RP servers! -
d3Pedro - 28.10.2018
Quote:
Originally Posted by Ciandlah
Hey man, nice little filterscript you have here. I understand a lot of people have opinions on where to put your releases however at the end of the day man, it your choice how you release it. As long as the files are usable. +rep though
|
Thank you
Quote:
Originally Posted by Pottus
1.) You can reduce the player textdraws used by using global textdraws for any textdraws that don't change on a per player basis.
2.) This can be removed player textdraws are for the client specifically no need to destroy them.
Code:
public OnPlayerDisconnect(playerid, reason)
{
for(new i = 0; i < 10; i ++) {
PlayerTextDrawDestroy(playerid, cWspeedo[playerid][i]);
cWspeedo[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
}
return 1;
}
3.) Do this check first before doing anything.
Code:
if(!IsAbicycle(vehicleid))
|
Thank you, updated.
Re: New vehicle speedometer! Good for RP servers! -
Jessica292John - 08.11.2018
Good job !
Re: New vehicle speedometer! Good for RP servers! -
alejandro44 - 21.02.2019
Wow!