Command Help here.
#6

Quote:
Originally Posted by » Lorenc « (back)
I did but im not sure, where should it be executed??


gotta go school ill be on after school!
Well, i gotta sleep.

but heres a simple way to do this(it's noobish, but it's so you'll get a idea where to start):


Insert Quote
Make this variable:
Code:

new IsUsed;


When the Code is executed set IsUsed = 1;
and when the player is done executing the cmd set IsUsed = 0;

Code:

Код:
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;
}
use your imagination and it will work
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: 2 Guest(s)