19.08.2009, 05:28
This is line 177: if([playerid][Muted] == 1)
This is the callback it is in. I didnt code it, i am just hard codeing it in. And editing a few commands here and there:
Thanks For The Help,
Rick
This is the callback it is in. I didnt code it, i am just hard codeing it in. And editing a few commands here and there:
Код:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
if([playerid][Muted] == 1)
{
new string[128];
[playerid][MuteWarnings]++;
if([playerid][MuteWarnings] < ServerInfo[MaxMuteWarnings]) {
format(string, sizeof(string),"WARNING: You are muted, if you continue to speak you will be kicked (Warning: %d/%d)", [playerid][MuteWarnings], ServerInfo[MaxMuteWarnings] );
SendClientMessage(playerid,red,string);
} else {
SendClientMessage(playerid,red,"You have been warned! Now you have been kicked");
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string),"%s [ID %d] Kicked for exceeding mute warnings", string, playerid);
SendClientMessageToAll(grey,string);
SaveToFile("KickLog",string); Kick(playerid);
} return 0;
}
return 1;
}
Thanks For The Help,
Rick

