06.04.2012, 12:12
Here you go.. Harish
I already wrote in my admin script.. But still level 5 can become helper??
pawn Код:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
if(ServerInfo[ReadPMs] == 1 && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel])
{
new string[64],playername[MAX_PLAYER_NAME],recievername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerName(recieverid, recievername, sizeof(recievername));
format(string, sizeof(string), "***PM: %s To %s: %s", playername,recievername, text);
for (new a = 0; a < MAX_PLAYERS; a++)
if (IsPlayerConnected(a) && (PlayerInfo[a][Level] >= 1) && a != playerid)
SendClientMessage(a, COLOR_GREY, string);
}
if(PlayerInfo[playerid][Muted] == 1)
{
PlayerInfo[playerid][MuteWarnings]++;
if(PlayerInfo[playerid][MuteWarnings] < 5) {
SendClientMessage(playerid,red,"WARNING: You are muted, if you continue to speak you will be kicked");
} else {
SendClientMessage(playerid,red,"You have been warned ! Now you have been kicked");
new string[100], playername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string),"%s [ID %d ] Kicked For exceeding Mute warnings", playername,playerid);
SendClientMessageToAll(grey,string);
SaveToFile("KickLog",string); Kick(playerid); }
return 0;
}
return 1;
}