Need help with MessageToAdmins
#6

Okay, so you have one function and it's sending you a 2 messages.
You need to do this:
pawn Код:
forward MessageToAdmins(color, const string[]);
public MessageToAdmins(color, const string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][pAdminLevel] >=1)
        {
            //SendClientMessage(i, AdminColor, string);   - Delete this because you won't need it.
            SendClientMessage(i, Grey, string); // This function will send message in Grey color!
        }
    }
    return 1;
}
And now make another function...Something like this:
pawn Код:
forward MessageToAdminsFromAdmins(color, const string[]);
public MessageToAdminsFromAdmins(color, const string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][pAdminLevel] >=1)
        {
            SendClientMessage(i, AdminColor, string);// And this function will send Message in AdminColor color!
            //SendClientMessage(i, Grey, string);    - Delete this because you won't need it.
        }                                       // Or leave it, I don't care...
    }
    return 1;
}
OR READ THIS: Colour_Embedding

Change the colors you want, this was just an example.
Hope it helps.
Reply


Messages In This Thread
Need help with MessageToAdmins - by xir - 08.01.2011, 07:58
Re: Need help with MessageToAdmins - by iggy1 - 08.01.2011, 08:03
Re: Need help with MessageToAdmins - by Ash. - 08.01.2011, 08:16
Re: Need help with MessageToAdmins - by xir - 08.01.2011, 08:23
Re: Need help with MessageToAdmins - by xir - 08.01.2011, 09:39
Re: Need help with MessageToAdmins - by Alex_Valde - 08.01.2011, 10:03
Re: Need help with MessageToAdmins - by DVDK - 08.01.2011, 10:08
Re: Need help with MessageToAdmins - by Kyosaur - 08.01.2011, 10:11
Re: Need help with MessageToAdmins - by Kwarde - 08.01.2011, 10:18
Re: Need help with MessageToAdmins - by xir - 08.01.2011, 10:22

Forum Jump:


Users browsing this thread: 1 Guest(s)