10.01.2014, 14:49
Quote:
It doesn't show up because you're destroying it after it's shown the first time. Don't destroy it but hide it instead.
https://sampwiki.blast.hk/wiki/TextDrawHideForPlayer P.D: you'll have to pass playerid as an argument at SetTimerEx to know whose textdraw's going to be hidden. |
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) {
if (!success) {
TextDrawShowForPlayer(playerid, Textdraw0);
SetTimerEx("InvalidKomanda", 3000, false, "");
}
return 1;
}
forward InvalidKomanda();
public InvalidKomanda()
{
TextDrawHideForPlayer(MAX_PLAYERS, Textdraw0);
}
