[FilterScript] Speedometer with carname, engine and doors status
#2

Nice Release
much better you use OnPlayerStateChange to avoid "textdraw hiding bug"
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
        //Show Textdraw Here
    }
   
    if(newstate == PLAYER_STATE_ONFOOT)
    {
        //Hide Textdraw here
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)