27.03.2016, 03:28
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);
}