Disable user from using all commands but one
#6

That's not needed, you can just use OnPlayerCommandReceived.
Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
	if(strcmp(cmdtext, "/mycommand", true)) return 0;
	return 1;
}
Where /mycommand is the only command you can use.

EDIT: Oops, posted at the same time.
Reply


Messages In This Thread
Disable user from using all commands but one - by Sellize - 03.04.2015, 17:39
Re: Disable user from using all commands but one - by JeaSon - 03.04.2015, 17:45
Re: Disable user from using all commands but one - by Sellize - 03.04.2015, 17:46
Re: Disable user from using all commands but one - by JeaSon - 03.04.2015, 17:48
Re: Disable user from using all commands but one - by Sellize - 03.04.2015, 18:02
Re: Disable user from using all commands but one - by CalvinC - 03.04.2015, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)