Don' hide textdraw
#4

First, learn english, second show us more code. Provide us to know more about your problem, if you don't know
to give us more code, you can't be helped. This is a minor problem, you just have to add the function that i said into your code at "OnPlayerStateChange", in the moment that player is on foot.

PHP код:
public OnPlayerStateChangeplayeridnewstateoldstate )
{
    if( 
oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER )
    {
         
killtimerplayerid ] = SetTimerEx"speed"100true"i"playerid );
    }
    if( 
oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT )
    {
       
KillTimerkilltimerplayerid ] );
       
TextDrawHideForPlayerplayeridyour_textdraw_name_for_speedometer );
       
//you just have to edit "your_textdraw_name_for_speedometer" with your TD name.
    
}
    return 
1;

Reply


Messages In This Thread
Don' hide textdraw - by Calinut200 - 10.05.2018, 19:40
Re: Don' hide textdraw - by FaLLenGirL - 10.05.2018, 20:00
Re: Don' hide textdraw - by Calinut200 - 10.05.2018, 20:23
Re: Don' hide textdraw - by FaLLenGirL - 10.05.2018, 20:27
Re: Don' hide textdraw - by Calinut200 - 10.05.2018, 20:40
Re: Don' hide textdraw - by FaLLenGirL - 10.05.2018, 20:44
Re: Don' hide textdraw - by Calinut200 - 10.05.2018, 20:50
Re: Don' hide textdraw - by Calinut200 - 10.05.2018, 20:53
Re: Don' hide textdraw - by DeathCore - 10.05.2018, 23:51

Forum Jump:


Users browsing this thread: 1 Guest(s)