Set Timer on Text Draw
#1

Hi! I create this text draw, it's showing the text draw, but my problem is the text draw is not hiding / removed after 1.5 secs. Please Help. Thank you!

PHP код:
new Text:UnknownCommand
Under OnPlayerConnect:
PHP код:
        UnknownCommand TextDrawCreate(323.799999432"Unknown Command!");
    
TextDrawLetterSize(UnknownCommand0.20.999);
    
TextDrawAlignment(UnknownCommand2);
    
TextDrawColor(UnknownCommand, -1);
    
TextDrawSetOutline(UnknownCommand1);
    
TextDrawFont(UnknownCommand2);
    
TextDrawUseBox(UnknownCommand1);
    
TextDrawBoxColor(UnknownCommand0x00000088);
    
SetTimerEx("HideTextDraw"1500false"i"playerid); 
Under OnPlayerDisconnect:
PHP код:
        TextDrawDestroy(UnknownCommand); 
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    return 
TextDrawShowForPlayer(playeridUnknownCommand);
}
public 
OnPlayerCommandPerformed(playeridcmdtext[], success)
{
    return 
TextDrawShowForPlayer(playeridUnknownCommand);

PHP код:
forward HideTextDraw(playerid);
public 
HideTextDraw(playerid)
{
    
TextDrawHideForPlayer(playeridUnknownCommand);
    return 
1;

Reply


Messages In This Thread
Set Timer on Text Draw - by eikzdej - 27.03.2016, 03:20
Re: Set Timer on Text Draw - by SickAttack - 27.03.2016, 03:28
Re: Set Timer on Text Draw - by eikzdej - 27.03.2016, 03:59

Forum Jump:


Users browsing this thread: 3 Guest(s)