17.01.2010, 16:12
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[256];
if(text[0] == '@' && pInfo[j][level] > 0) //Won't let the next part happen, unless the person's "level" is more than 0
{
format(string, sizeof(string), "[Team Admin Chat] %s[%i]: %s", pInfo[playerid][name], playerid, text[1]);
for(new j = 0; j < MAX_PLAYERS; j++)
{
if(IsPlayerConnected(j) && pInfo[j][level] > 0) SendClientMessage(j, COLOR_NOTICE, string);
}
return 0;
}