Got tired of it. *help please*
#4

Quote:
Originally Posted by RowdyrideR
Посмотреть сообщение
Top:

Код:
new PlayerText:CmdT[MAX_PLAYERS];
new CmdTimer[MAX_PLAYERS];
forward BadCmd(playerid);
Under public OnPlayerConnect(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);
Under public OnPlayerCommandPerformed(playerid, cmdtext[], success)

Код:
KillTimer(CmdTimer[playerid]);
PlayerTextDrawHide(playerid,CmdT[playerid]);
PlayerTextDrawShow(playerid,CmdT[playerid]);
CmdTimer[playerid]=SetTimerEx("BadCmd",25000,false,"i",playerid);
Anywhere:

Код:
public BadCmd(playerid)
{
PlayerTextDrawHide(playerid, CmdT[playerid]);
return 1;
}




- Not tested.
- It isn't the best way I guess.
Much apprcieate, works clearly thx. +rep
Reply


Messages In This Thread
Got tired of it. *help please* - by DemME - 16.12.2013, 23:19
Re: Got tired of it. *help please* - by RowdyrideR - 17.12.2013, 00:02
Re: Got tired of it. *help please* - by PawnoQ - 17.12.2013, 00:22
Re: Got tired of it. *help please* - by DemME - 17.12.2013, 12:16

Forum Jump:


Users browsing this thread: 1 Guest(s)