29.12.2010, 20:28
Thanks the kick worked
This is the admin chat
This is the admin chat
pawn Код:
public OnPlayerText(playerid, text[])
{
if(muted[playerid] == 1)
{
SendClientMessage(playerid, Red, "You are muted and cannot talk");
return 0;
}
if(text[0] == '#')
{
if(level[playerid] >= 1)
{
new string[180], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Admin Lvl %s: %s",name,text[1]);
MessageToAdmins(AdminColor,string);
return 0;
} else {
return 0;
}
}
return 1;
}