17.12.2013, 12:16
Quote:
Top:
Код:
new PlayerText:CmdT[MAX_PLAYERS]; new CmdTimer[MAX_PLAYERS]; forward BadCmd(playerid); Код:
CmdT[playerid] = CreatePlayerTextDraw(playerid,172.000000, 403.000000, "You cannot use this command"); PlayerTextDrawBackgroundColor(playerid,CmdT[playerid], 255); PlayerTextDrawFont(playerid,CmdT[playerid], 2); PlayerTextDrawLetterSize(playerid,CmdT[playerid], 0.390000, 1.600000); PlayerTextDrawColor(playerid,CmdT[playerid], -1); PlayerTextDrawSetOutline(playerid,CmdT[playerid], 1); PlayerTextDrawSetProportional(playerid,CmdT[playerid], 1); PlayerTextDrawSetSelectable(playerid,CmdT[playerid], 0); Код:
KillTimer(CmdTimer[playerid]); PlayerTextDrawHide(playerid,CmdT[playerid]); PlayerTextDrawShow(playerid,CmdT[playerid]); CmdTimer[playerid]=SetTimerEx("BadCmd",25000,false,"i",playerid); Код:
public BadCmd(playerid) { PlayerTextDrawHide(playerid, CmdT[playerid]); return 1; } - Not tested. - It isn't the best way I guess. |