This plugin pretty much needs the source file to be of any use to servers in today's age and to be honest I have very limited knowledge when it comes to code so I hoped coming here I'd get some help. I think the .smx I decompiled was from around late 2019 and I'm fairly certain when it was available to download it originally came with the .sp for reasons I'm hoping you'll see with the attached code below.
Code:
public void:OnPluginStart()
{
HookEvent("create_panic_event", 41, 1);
HookEvent("round_start", 33, 1);
HookEvent("tank_spawn", 25, 1);
HookEvent("tank_killed", 23, 1);
HookEvent("player_hurt", 17, 1);
HookEvent("round_end", 21, 1);
HookEvent("player_say", 19, 1);
HookEvent("player_death", 15, 1);
return 0;
}
public void:PrintMapRecord(bool:forceprint)
{
new var1;
if (roundinprogress && forceprint)
{
return 0;
}
new String:map[128];
new String:record[1024];
GetCurrentMap(map, 32);
if (StrEqual(map, "l4d_hospital02_subway", true))
{
record = "360:10.63 - enk, 0pposer, Raptor, Undergo";
}
else
{
if (StrEqual(map, "l4d_hospital03_sewers", true))
{
record = "364:36.67 - Raptor, Scout, Skyheart, Xero";
}
if (StrEqual(map, "l4d_hospital04_interior", true))
{
record = "319:39.23 - Bloody, Dennis, JusT SLOW, 0pposer";
}
if (StrEqual(map, "l4d_vs_hospital05_rooftop", true))
{
record = "251:47.87 - 0pposer, Raptor, Scout, Undergo";
}
if (StrEqual(map, "l4d_garage01_alleys", true))
{
record = "273:57.33 - Jim, Nesisoth, Scout, Undergo";
}
if (StrEqual(map, "l4d_garage02_lots", true))
{
record = "168:40.43 - Jim, Nesisoth, Scout, Skyheart";
}
if (StrEqual(map, "l4d_smalltown02_drainage", true))
{
record = "300:13.80 - Dean Winchester, GerryLame, Raptor, Undergo";
}
if (StrEqual(map, "l4d_smalltown03_ranchhouse", true))
{
record = "290:39.70 - Dean Winchester, Scout, Raptor, Undergo";
}
if (StrEqual(map, "l4d_smalltown04_mainstreet", true))
{
record = "500:45.77 - Bloody, JusT SLOW, 0pposer, Raptor";
}
if (StrEqual(map, "l4d_vs_smalltown05_houseboat", true))
{
record = "322:40.80 - Bloody, JusT SLOW, 0pposer, Raptor";
}
if (StrEqual(map, "l4d_airport02_offices", true))
{
record = "226:48.67 - enk, 0pposer, Raptor, Scout";
}
if (StrEqual(map, "l4d_airport03_garage", true))
{
record = "201:22.10 - 0pposer, Raptor, Scout, Undergo";
}
if (StrEqual(map, "l4d_airport04_terminal", true))
{
record = "270:09.60 - Bloody, Davis, JusT SLOW, 0pposer";
}
if (StrEqual(map, "l4d_vs_airport05_runway", true))
{
record = "215:33.30 - Dean Winchester, Raptor, Scout, Undergo";
}
if (StrEqual(map, "l4d_farm02_traintunnel", true))
{
record = "286:12.94 - Dean Winchester, 0pposer, Raptor, Scout";
}
if (StrEqual(map, "l4d_farm03_bridge", true))
{
record = "210:11.80 - 0pposer, Raptor, Scout, Undergo";
}
if (StrEqual(map, "l4d_vs_farm05_cornfield", true))
{
record = "501:17.20 - 0pposer, Raptor, Scout, Undergo";
}
if (StrEqual(map, "l4d_river01_docks", true))
{
record = "205:53.13 - Jim, Nesisoth, Scout, Skyheart";
}
if (StrEqual(map, "l4d_river03_port", true))
{
record = "483:15.73 - Dean Winchester, Tomski, Raptor, 0pposer";
}
if (StrEqual(map, "l4d_sv_lighthouse", true))
{
record = "269:19.13 - enk, 0pposer, Raptor, Scout";
}
}
PrintToChatAll("\x03Map World Record is %s. GLHF!", record);
return 0;
}
I just feel like it was meant to be edited, every friend that I have that also runs this plugin on their server has said the same thing, that they don't have the .sp either. This plugin is mega outdated now and it doesn't seem like the original maker is updating it anymore due to me not seeing it provided by him anywhere.
Attached will be the full plugin decompiled I don't know how many errors there are in the full version however the code I mainly care about, there are 12 errors that come up when running it through SM compiler and Spider Compiler, the errors are below.
SourcePawn Compiler 1.10
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2018 AlliedModders LLC
plugin.sp(1) : warning 239: 'void' is an illegal tag; use void as a type
plugin.sp(3) : error 100: function prototypes do not match
plugin.sp(4) : error 100: function prototypes do not match
plugin.sp(5) : error 100: function prototypes do not match
plugin.sp(6) : error 100: function prototypes do not match
plugin.sp(7) : error 100: function prototypes do not match
plugin.sp(8) : error 100: function prototypes do not match
plugin.sp(9) : error 100: function prototypes do not match
plugin.sp(10) : error 100: function prototypes do not match
plugin.sp(11) : error 088: cannot return a value from a void function
plugin.sp(11) : warning 213: tag mismatch
plugin.sp(14) : warning 239: 'void' is an illegal tag; use void as a type
plugin.sp(17) : error 017: undefined symbol "roundinprogress"
plugin.sp(19) : error 088: cannot return a value from a void function
plugin.sp(19) : warning 213: tag mismatch
plugin.sp(108) : error 088: cannot return a value from a void function
plugin.sp(108) : warning 213: tag mismatch
plugin.sp(16) : warning 203: symbol is never used: "var1"