[FilterScript] [Textdraw] Vehicle's Speed/Fuel/Name
#1

Hi Everybody.

Now, i finished this filterscript.
as i said in Title, This filterscript show Vehicle's Speed - Fuel and name.
i hope you liked

Image:



Download:
pastebin.com/6JyAYsFd

Note:
OnPlayerStateChange
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
return 1;
}
if(newstate == PLAYER_STATE_ONFOOT)
{
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
TextDrawHideForPlayer(playerid, Textdraw2);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw5);
return 1;
}
if you have a SetTimer on your OnGameModeInit add this codes but if
you don't have add a timer with 1 sec
pawn Код:
new string[128];
// Vehicle Name
format(str2, sizeof(str2), "~r~Vehicle: ~w~%s",VehicleName[GetVehicleModel(GetPlayerVehicleID(playerid))]);
TextDrawSetString(Textdraw0[playerid], string);

// Fuel (Replace Your Fuel Check Code)
format(str2, sizeof(str2), "~w~%d",Fuel[GetPlayerVehicleID(playerid)]);
TextDrawSetString(Textdraw4[playerid], string);

// Speed (Replace Your Speed Check Code)
format(str2, sizeof(str2), "~w~%d",GetVehicleSpeed(GetPlayerVehicleID(playerid));
TextDrawSetString(Textdraw5[playerid], string);
Credit(s):
* [Phoenix-] (Me) - Creator

Sorry For My Bad English .
Reply
#2

Good job i like it.!
Reply
#3

good job! bro +rep
Reply
#4

Nice one!!
Reply
#5

Thanks
i like when someone say his comment about my filterscript
Reply
#6

-delete- misunderstood the thread
Reply
#7

Nice Bro CheckOut My SpeedoMeter !!......
Reply
#8

Nice speedometer its look like 3D
Reply
#9

Very Nice.
Reply
#10

awesome 3d speedo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)