28.06.2009, 13:30
Quote:
Originally Posted by Puzi
It works but when I compile i get Windows Error =/ Please help.
//edit: I don't mean stars because its not good for me. Punishment is better I think =) Btw, I wanted a Time limit for it like 15/20 secs so it unmutes after that time automatically. |
Fix i hope:
pawn Код:
new Muted[MAX_PLAYERS];
public OnPlayerText(playerid, text[])
{
if (Muted[playerid]) { SendClientMessage(playerid, 0xFF0000FF, "You are muted, you cannot speak!"); return 0; }
if (strfind(text, "noob", true) != -1 ||
strfind(text, "asshole", true) != -1 ||
strfind(text, "n00b", true) != -1
)
{
Muted[playerid] = true;
SendClientMessage(playerid, 0xFF0000FF, "You got muted for swearing!");
SetTimerEx("UnMuted", 20000, 0, "d", playerid);
}
}
public UnMuted(playerid)
{
Muted[playerid] = false;
return 1;
}