public OnPlayerText(playerid, text[])
{
new pname[24];
new string[128];
GetPlayerName(playerid,pname,sizeof(pname));
//SPAM
SpamStrings[playerid] +=2;
//If Muted
if(IsMuted[playerid] == 1)
{
SendClientMessage(playerid,COLOR_ERROR,"You are muted. You cannot speak.");
return 0;
}
//If Spamming
if(SpamStrings[playerid] >= MAX_SPAM)
{
SendClientMessage(playerid, COLOR_ERROR, "Please do not spam. Please wait before typing again.");
return 0;
}
if(strfind(text[0],"rcon",true)) return 0;
if(strfind(text[0],"www.",true)) return 0;
if(strfind(text[0],"http",true)) return 0;
if(strfind(text[0],"login",true)) return 0;
if(strfind(text[0],"noob",true))
{
SendClientMessage(playerid,COLOR_ERROR,"Please use newbie instead");
return 0;
}
return 1;
}
Edit Einrückung am ende verbessert
//push