11.02.2013, 13:27
Anybody using this FilterScript, add this...
It will clear the speedo if a player dies whilst inside a vehicle. I've made it so that passengers don't see the speedo, so if your passengers can see the speedo, you'll need to add a similar script, to check if the player was ejected from the vehicle, or teleported away.
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
//Hide all the text draws for the player
TextDrawHideForPlayer(playerid, speedo1[playerid]);
TextDrawHideForPlayer(playerid, speedo2[playerid]);
TextDrawHideForPlayer(playerid, speedo3[playerid]);
return 1;
}