20.06.2010, 22:03
Make this variable:
When the Code is executed set IsUsed = 1;
and when the player is done executing the cmd set IsUsed = 0;
Код:
new IsUsed;
and when the player is done executing the cmd set IsUsed = 0;
Код:
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");}
else{
SendClientMessage(playerid,RED,"Somone is already using this cmd!");
}
return 1;
}

