20.06.2010, 22:39
// top of script
// dcmd
// script end i think
not tested but you can try
pawn Код:
new IsUsed;
pawn Код:
dcmd_order(playerid, params[])
{
if (IsUsed == 0){
#pragma unused params
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "ORDER", "Type your objective for the Prisoners.\n Abusing will Suspend you.", "Submit", "Cancel");
SetTimerEx("stop",5000,0,"d",playerid);
}
else{
SendClientMessage(playerid,RED,"You Must Wait 5 Seconds to use this command again!");
}
return 1;
}
// script end i think
pawn Код:
forward stop(playerid);
public stop(playerid) {
IsUsed = 0; }
not tested but you can try