Set Timer on Text Draw
#2

pawn Код:
UnknownCommand = TextDrawCreate(323.799999, 432, "Unknown Command!");
    TextDrawLetterSize(UnknownCommand, 0.2, 0.999);
    TextDrawAlignment(UnknownCommand, 2);
    TextDrawColor(UnknownCommand, -1);
    TextDrawSetOutline(UnknownCommand, 1);
    TextDrawFont(UnknownCommand, 2);
    TextDrawUseBox(UnknownCommand, 1);
    TextDrawBoxColor(UnknownCommand, 0x00000088);
    SetTimerEx("HideTextDraw", 1500, false, "i", playerid); // REMOVE THIS FROM HERE

public OnPlayerCommandText(playerid, cmdtext[])
{
    SetTimerEx("HideTextDraw", 1500, false, "i", playerid);
    return TextDrawShowForPlayer(playerid, UnknownCommand);
}

public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    SetTimerEx("HideTextDraw", 1500, false, "i", playerid);
    return TextDrawShowForPlayer(playerid, UnknownCommand);
}
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: 2 Guest(s)