12.11.2011, 14:55
In short, this should work:
[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).
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;
}
