26.06.2011, 06:58
pawn Code:
enum info
{
SSMember,
}
new PlayerInfo[MAX_PLAYERS][info];
forward MessageToSSChat(color,const string[]);
public MessageToSSChat(color,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
{
if((strcmp(ReturnPlayerName(i),"Joseph_Stryker",true) == 0) || (strcmp(ReturnPlayerName(i),"Josh_Rolen",true) == 0) || (PlayerInfo[i][SSMember] >= 1))
{
SendClientMessage(i, color, string);
}
}
}
return 1;
}
stock ReturnPlayerName(playerid)
{
new name[24];
GetPlayerName(playerid, name, 24);
return name;
}