16.01.2016, 09:08
i dont understand why do you make same mistakes again and again mate?
why are you using
when you are using zcmd and to make simple mole command,
the command you are using is not made for zcmd.. so use that one.
why are you using
PHP код:
if(strcmp(cmd, "/mole", true) == 0 && PlayerInfo[playerid][pAdmin] >= 5)
PHP код:
CMD:mole(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 3)
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
return 1;
}
new string[128];
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mole [mole text]");
format(string, sizeof(string), "SMS: %s, Sender: Server",params);
SendClientMessageToAll(COLOR_YELLOW, string);
return 1;
}