Deny All commands exept 2
#6

In short, this should work:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (GetPlayerVirtualWorld(playerid) == 10 && !strcmp(cmdtext, "/help") && !strcmp(cmdtext, "/ask")) {
        SendClientMessage(playerid, 0xFF0000AA, "You cannot use any command just /help & /ask");
        return 0;
    }
   
    return 1;
}
[03]Garsino must have accidentally typed the wrong brackets and forgotten the exclamation mark before strcmp() or == 0 at the end, and was thinking you were using a more modern command processor (zcmd).
Reply


Messages In This Thread
Deny All commands exept 2 - by Super_Panda - 12.11.2011, 13:40
Re: Deny All commands exept 2 - by MadeMan - 12.11.2011, 13:42
Re: Deny All commands exept 2 - by [03]Garsino - 12.11.2011, 13:43
Respuesta: Deny All commands exept 2 - by Super_Panda - 12.11.2011, 14:03
Re: Deny All commands exept 2 - by [03]Garsino - 12.11.2011, 14:36
Re: Deny All commands exept 2 - by Calgon - 12.11.2011, 14:55
Respuesta: Deny All commands exept 2 - by Super_Panda - 12.11.2011, 15:05
Re: Deny All commands exept 2 - by whitedragon - 12.11.2011, 15:21
Re: Deny All commands exept 2 - by [03]Garsino - 12.11.2011, 15:25
Re: Deny All commands exept 2 - by Calgon - 12.11.2011, 15:26

Forum Jump:


Users browsing this thread: 1 Guest(s)