08.01.2011, 10:03
Okay, so you have one function and it's sending you a 2 messages.
You need to do this:
And now make another function...Something like this:
OR READ THIS: Colour_Embedding
Change the colors you want, this was just an example.
Hope it helps.
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;
}
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;
}
Change the colors you want, this was just an example.
Hope it helps.
