Admin Chat Help
#2

Add
pawn Code:
if(PlayerInfo[playerid][Level] == 1) format(string, sizeof(string), " Moderator %s: %s", GetPName(playerid), params);
Full code:
pawn Code:
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);
    else 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;
}
Reply


Messages In This Thread
Admin Chat Help - by Vasu99 - 01.03.2014, 13:43
Re: Admin Chat Help - by MattTucker - 01.03.2014, 13:46
Re: Admin Chat Help - by Threshold - 01.03.2014, 14:50
Re: Admin Chat Help - by Golimad - 01.03.2014, 14:58

Forum Jump:


Users browsing this thread: 2 Guest(s)