
dcmd_order(playerid, params[])
{
#pragma unused params
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "ORDER", "Type your objective for the Prisoners.\n Abusing will Suspend you.", "Submit", "Cancel");
return 1;
}
new IsUsed;
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;
}
|
Originally Posted by » Lorenc « (back)
your one seems to not work..
|
|
Originally Posted by » Lorenc « (back)
I did but im not sure, where should it be executed??
gotta go school ill be on after school! ![]() |
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;
}
dcmd_orderstop(playerid, params[])
{
if (IsUsed == 1){
#pragma unused params
SendClientMessage(playerid,RED,"You stopped it and others can now use the /order cmd");
IsUsed = 0;
SendClientMessage(playerid,RED,"There are no orders!");
}
return 1;
}
new IsUsed;
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;
}

forward stop(playerid);
public stop(playerid) {
IsUsed = 0; }