14.02.2011, 18:49
Hey i made this code
But it only mutes ID 0 and not the guy who sweared how to fix ? :S
pawn Код:
forward unmute2(playerid);
public unmute2(playerid)
{
GetPlayerName(playerid, name2, sizeof(name2));
Muted[playerid] = 1;
format(string5, sizeof(string5), "ET Bot: %s has been muted for swearing for 1 minute", name2);
SendClientMessageToAll(playerid, string5);
SetTimer("unmute", 1000*60, false);
}
new string25[700];
forward unmute(playerid);
public unmute(playerid)
{
Muted[playerid] = 0;
format(string25, sizeof(string25), "ET Bot: %s has been unmuted", name2);
SendClientMessageToAll(playerid, string25);
IsPlayerMuted[playerid] = 0;
}