Code
if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT)
{
PlayerTextDrawDestroy(playerid, Tacho1[playerid]);
PlayerTextDrawDestroy(playerid, Tacho2[playerid]);
PlayerTextDrawDestroy(playerid, Tacho3[playerid]);
PlayerTextDrawDestroy(playerid, Tacho4[playerid]);
PlayerTextDrawDestroy(playerid, Tacho5[playerid]);
PlayerTextDrawDestroy(playerid, Tacho6[playerid]);
PlayerTextDrawDestroy(playerid, Tacho7[playerid]);
PlayerTextDrawDestroy(playerid, Tacho8[playerid]);
PlayerTextDrawDestroy(playerid, Tacho9[playerid]);
PlayerTextDrawDestroy(playerid, Tacho10[playerid]);
PlayerTextDrawDestroy(playerid, Tacho11[playerid]);
PlayerTextDrawDestroy(playerid, Tacho12[playerid]);
}
Alles anzeigen
Auch unter OnPlayerStateChange ?