question about commands
#6

Try making a nice define like this....

Код:
#define IN_DM(%0) if(IsInDM[%0]) return SendClientMessage(%0, -1, "You are not allowed to enter commands in a DM.");
Then slap it in your commands by far the cleanest easiest and fastest way....

Код:
CMD:mycommand(playerid, arg[])
{
    IN_DM(playerid);

}
Reply


Messages In This Thread
question about commands - by HurtLocker - 05.04.2013, 16:36
Re: question about commands - by L.Hudson - 05.04.2013, 16:39
Re: question about commands - by SilverKiller - 05.04.2013, 16:40
Re: question about commands - by HurtLocker - 05.04.2013, 16:44
Re: question about commands - by Ronaldo_raul™ - 05.04.2013, 16:45
Re: question about commands - by Pottus - 05.04.2013, 17:02

Forum Jump:


Users browsing this thread: 5 Guest(s)