CMDMessage to the admins & some other issue's
#2

pawn Код:
forward SendAdminMessage(color,const string[],level); // We are forwarded it

// This down is to send message to admins when someone do something
format(string, 256, "[ADMIN] %s is now spectating %s",spectator , spectating);
SendAdminMessage(-1,string,1);

// We need to make public command now
public SendAdminMessage(color,const string[],level)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if (PlayerInfo[i][pAdmin] >= level)
            {
                SendClientMessage(i, color, string);
                printf("%s", string);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)