Comparing sensitive data, confidential files or internal emails?

Most legal and privacy policies prohibit uploading sensitive data online. Diffchecker Desktop ensures your confidential information never leaves your computer. Work offline and compare documents securely.

Untitled diff

Created Diff never expires
39 removals
43 lines
59 additions
44 lines
stock AntiSpam(playerid)
stock AntiSpam(playerid)
{
{
SpamCount[playerid]++;
new msg[145];
switch (SpamCount[playerid])
SpamCount[playerid]++;
{
switch(SpamCount[playerid])
case 1:
{
{
case 1:
ChatSpamTime[playerid][0]=gettime();
{
}
ChatSpamTime[playerid][0]=gettime();
case 2:
}
{
case 2:
if((gettime()-ChatSpamTime[playerid][0])<5)
{
{
if((gettime()-ChatSpamTime[playerid][0])<4)
SendClientMessage(playerid,0xFF0000FF,"You are having some warnings (1/3)! (Reason: Spam)");
{
ChatSpamTime[playerid][1]=gettime();
ChatSpamTime[playerid][1]=gettime();
}
}
else SpamCount[playerid]=0;
else SpamCount[playerid]=0;
}
}
case 3:
case 3:
{
{
if((gettime()-ChatSpamTime[playerid][1])<5)
if((gettime()-ChatSpamTime[playerid][1])<4)
{
{
SendClientMessage(playerid,0xFF0000FF,"You are having some warning (2/3)! (Reason: Spam)");
SendClientMessage(playerid, 0xFFFFFF, "[Anti-Spam]: Warning you are one message away from being muted!");
ChatSpamTime[playerid][2]=gettime();
format(msg,sizeof(msg),"[Flood Control] - %s has been warned for flooding",GetName(playerid));
}
ABroadCast(COLOR_ADMIN,msg,1);
else SpamCount[playerid]=0;
ChatSpamTime[playerid][2]=gettime();
}
}
case 4..50:
else SpamCount[playerid]=0;
{
}
new string[128],name[24];
case 4..50:
GetPlayerName(playerid,name,24);
{
if((gettime()-ChatSpamTime[playerid][2])<5)
if((gettime()-ChatSpamTime[playerid][2])<4)
{
{
format(string,sizeof(string),"Player %s has been muted for 2 minutes! (Reason: Spam!)",name);
format(msg, sizeof(msg), "[Anti-Spam]: %s has been muted for 5 minutes! (Reason: Spam)", GetName(playerid));
SendClientMessageToAll(0xFF0000FF,string);
SendClientMessageToAll(0xFFFFFF, msg);
SendClientMessage(playerid,0xFF0000FF,"You have received your final warning (3/3)! (Reason: Spam)");
SendClientMessage(playerid,COLOR_GREEN,"You have received your final warning! You are now muted");
muted[playerid]=1;
PlayerInfo[playerid][muted] = 1;
SetTimerEx("AutoUnMute",AutoUnmuteTime*60000,false,"i",playerid);
print(msg);
}
SetTimerEx("AutoUnMute",AutoUnmuteTime*60000,false,"i",playerid);
}
}
}
}
return 1;
}
}
return 1;
}