[Include] xxAntiVehicleFlood - Protection against lag_creator CLEO mod
#1

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
Reply
#2

I'm almost certain that every CLEO mod that has something to do with flying vehicles can be detected with this code.
Reply
#3

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!
Reply
#4

nice job, but same as ******, show us some things we could use in the callback, or some of your code of how it works...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)