Admin chat doesn't work
#1

Hi,

I just made an admin chat command but it doesn't seem to work, for some reason. As I type in something in /ac nothing comes up in the chat, and I'm not sure why.

pawn Код:
CMD:ac(playerid,params[])
{
    if(PlayerInfo[playerid][Level] < 1) return SendClientMessage(playerid, 0xF69521AA, "You can't use this command!");
    if(isnull(params)) return SendClientMessage(playerid, 0xF69521AA, "USAGE: /ac [message]");
    new string[128];
    if(PlayerInfo[playerid][Level] == 1) format(string, sizeof(string), "(( Moderator %s: %s ))", GetPName(playerid), params);
    format(string, sizeof(string), "(( Admin %s: %s ))", GetPName(playerid), params);
    foreach(Player, i){
    if(PlayerInfo[playerid][Level] < 1) return SendClientMessage(playerid, 0xc3f8fd, string);
    }
    return 1;
}
I hope you can help!
Reply


Messages In This Thread
Admin chat doesn't work - by Vasu99 - 01.03.2014, 14:04
Re: Admin chat doesn't work - by Hybris - 01.03.2014, 14:08
Re: Admin chat doesn't work - by Vasu99 - 01.03.2014, 14:11
Re: Admin chat doesn't work - by PrivatioBoni - 01.03.2014, 14:12
Re: Admin chat doesn't work - by Threshold - 01.03.2014, 14:53
Re: Admin chat doesn't work - by Vasu99 - 01.03.2014, 15:07
Re: Admin chat doesn't work - by Threshold - 01.03.2014, 15:22
Re: Admin chat doesn't work - by Vasu99 - 01.03.2014, 15:35

Forum Jump:


Users browsing this thread: 2 Guest(s)