[Include] xxAntiVehicleFlood - Protection against lag_creator CLEO mod - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] xxAntiVehicleFlood - Protection against lag_creator CLEO mod (
/showthread.php?tid=388624)
xxAntiVehicleFlood - Protection against lag_creator CLEO mod -
xx360 - 29.10.2012
xxAntiVehicleFlood
v0.2.1
Description
This include will prevent hackers from using lag_creator (mass car spawn + lag) CLEO mod.
Usage
Include this under a_samp and add the callback somewhere in your script.
pawn Код:
#include <xxAntiVehicleFlood0.2.1>
pawn Код:
public OnPlayerVehicleFlood(playerid)
{
BanEx(playerid, "Vehicle Flood");
for(new i = 0; i <= MAX_VEHICLES; i++)
{
if(IsValidVehicle(i))
{
SetVehicleToRespawn(i);
}
}
return 1;
}
Download
v0.2.1
Dropbox:
http://dl.dropbox.com/u/23193562/xxA...Flood0.2.1.inc
Re: xxAntiVehicleFlood - Protection against lag_creator CLEO mod -
Stylock - 29.10.2012
I'm almost certain that every CLEO mod that has something to do with flying vehicles can be detected with
this code.
Re: xxAntiVehicleFlood - Protection against lag_creator CLEO mod - Patrick - 29.10.2012
Nice Now I Can Use it.. on my cnr because someone trying to spam vehicles and try to lag or crash the server.. good job bro!
Re: xxAntiVehicleFlood - Protection against lag_creator CLEO mod -
niels44 - 30.10.2012
nice job, but same as ******, show us some things we could use in the callback, or some of your code of how it works...