Command Help here.
#7

// top of script

pawn Код:
new IsUsed;
// dcmd
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
Reply


Messages In This Thread
Command Help here. - by Lorenc_ - 20.06.2010, 21:55
Re: Command Help here. - by Cameltoe - 20.06.2010, 22:03
Re: Command Help here. - by Lorenc_ - 20.06.2010, 22:16
Re: Command Help here. - by Cameltoe - 20.06.2010, 22:17
Re: Command Help here. - by Lorenc_ - 20.06.2010, 22:20
Re: Command Help here. - by Cameltoe - 20.06.2010, 22:26
Re: Command Help here. - by titanak - 20.06.2010, 22:39
Re: Command Help here. - by Lorenc_ - 21.06.2010, 06:07

Forum Jump:


Users browsing this thread: 1 Guest(s)