Diff
checker
Text
Text
Images
Documents
Excel
Folders
Legal
Enterprise
Desktop
Pricing
Sign in
Download Diffchecker Desktop
Compare text
Find the difference between two text files
Tools
History
Real-time editor
Hide unchanged lines
Disable line wrap
Layout
Split
Unified
Diff precision
Smart
Word
Char
Syntax highlighting
Choose syntax
Ignore
Transform text
Go to first change
Edit input
Diffchecker Desktop
The most secure way to run Diffchecker. Get the Diffchecker Desktop app: your diffs never leave your computer!
Get Desktop
Untitled diff
Created
10 years ago
Diff never expires
Clear
Export
Share
Explain
26 removals
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
43 lines
Copy
51 additions
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
44 lines
Copy
Copy
Copied
Copy
Copied
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(0xFF
0000
FF,
string);
SendClientMessageToAll(0xFF
FF
FF,
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;
}
Saved diffs
Original text
Open file
stock AntiSpam(playerid) { SpamCount[playerid]++; switch (SpamCount[playerid]) { case 1: { ChatSpamTime[playerid][0]=gettime(); } case 2: { if((gettime()-ChatSpamTime[playerid][0])<5) { SendClientMessage(playerid,0xFF0000FF,"You are having some warnings (1/3)! (Reason: Spam)"); ChatSpamTime[playerid][1]=gettime(); } else SpamCount[playerid]=0; } case 3: { if((gettime()-ChatSpamTime[playerid][1])<5) { SendClientMessage(playerid,0xFF0000FF,"You are having some warning (2/3)! (Reason: Spam)"); ChatSpamTime[playerid][2]=gettime(); } else SpamCount[playerid]=0; } case 4..50: { new string[128],name[24]; GetPlayerName(playerid,name,24); if((gettime()-ChatSpamTime[playerid][2])<5) { format(string,sizeof(string),"Player %s has been muted for 2 minutes! (Reason: Spam!)",name); SendClientMessageToAll(0xFF0000FF,string); SendClientMessage(playerid,0xFF0000FF,"You have received your final warning (3/3)! (Reason: Spam)"); muted[playerid]=1; SetTimerEx("AutoUnMute",AutoUnmuteTime*60000,false,"i",playerid); } } } return 1; }
Changed text
Open file
stock AntiSpam(playerid) { new msg[145]; SpamCount[playerid]++; switch(SpamCount[playerid]) { case 1: { ChatSpamTime[playerid][0]=gettime(); } case 2: { if((gettime()-ChatSpamTime[playerid][0])<4) { ChatSpamTime[playerid][1]=gettime(); } else SpamCount[playerid]=0; } case 3: { if((gettime()-ChatSpamTime[playerid][1])<4) { SendClientMessage(playerid, 0xFFFFFF, "[Anti-Spam]: Warning you are one message away from being muted!"); format(msg,sizeof(msg),"[Flood Control] - %s has been warned for flooding",GetName(playerid)); ABroadCast(COLOR_ADMIN,msg,1); ChatSpamTime[playerid][2]=gettime(); } else SpamCount[playerid]=0; } case 4..50: { if((gettime()-ChatSpamTime[playerid][2])<4) { format(msg, sizeof(msg), "[Anti-Spam]: %s has been muted for 5 minutes! (Reason: Spam)", GetName(playerid)); SendClientMessageToAll(0xFFFFFF, msg); SendClientMessage(playerid,COLOR_GREEN,"You have received your final warning! You are now muted"); PlayerInfo[playerid][muted] = 1; print(msg); SetTimerEx("AutoUnMute",AutoUnmuteTime*60000,false,"i",playerid); } } } return 1; }
Find difference