An admin chat? ґ+REPP
#3

pawn Код:
CMD:a(playerid, params[])
{
    if(*/ admin variable here */)
    {
        new text[124], string[124], pname[MAX_PLAYER_NAME];
        if(sscanf(params, "s[124]", text)) return SendClientMessage(playerid, -1, "/a [text]");
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string),"%s: %s", pname, text);
        SendAdminMessage(-1, string);
    }
    else return SendClientMessage(playerid, -1, "You're not an admin")
    return 1;
}

SendAdminMessage(color, const string[])
{
    foreach(Player, i)
    {
        if(*/ admin variable here */)
        {
            SendClientMessage(i, color, string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
An admin chat? ґ+REPP - by Lynet - 12.11.2013, 13:42
Re: An admin chat? ґ+REPP - by dominik523 - 12.11.2013, 13:51
Re: An admin chat? ґ+REPP - by Loot - 12.11.2013, 13:51
Re: An admin chat? ґ+REPP - by Lynet - 12.11.2013, 14:02
Re: An admin chat? ґ+REPP - by newbie scripter - 12.11.2013, 14:11
Re: An admin chat? ґ+REPP - by Loot - 12.11.2013, 14:16
AW: An admin chat? ґ+REPP - by Skimmer - 12.11.2013, 14:18
Re: An admin chat? ґ+REPP - by iFiras - 12.11.2013, 14:28
Re: An admin chat? ґ+REPP - by Lynet - 12.11.2013, 14:32
Re: An admin chat? ґ+REPP - by Ghazal - 12.11.2013, 14:33

Forum Jump:


Users browsing this thread: 2 Guest(s)