[FilterScript] [FS] Anti Spawner
#6

This would only work with CreateVehicle since only those vehicles can be later destroyed with DestroyVehicle. And start using switch instead of if in such cases because it's easier to be written and it is faster.
And yes, this isn't filterscript, but simple snippet.

pawn Код:
#include <a_samp>
#define FILTERSCRIPT
public OnFilterScriptInit() { return 1; }
public OnFilterScriptExit() { return 1; }
public OnVehicleSpawn(vehicleid)
{
    new model = GetVehicleModel(vehicleid);
    switch(model)
    {
        case 521,520,406,432,444,539,556,557: DestroyVehicle(vehicleid);
    }
    return 1;
}
Reply


Messages In This Thread
[removed] - by Ipuvaepe - 24.02.2008, 18:59
Re: Anti Spawn Hacker - by Sinces - 24.02.2008, 19:02
Re: [FS] Anti Spawner - by FujiNNN - 24.02.2008, 20:59
Re: [FS] Anti Spawner - by weedarr - 24.02.2008, 21:13
Re: [FS] Anti Spawner - by Noddi3 - 28.10.2009, 05:43
Re: [FS] Anti Spawner - by Sergei - 28.10.2009, 07:54

Forum Jump:


Users browsing this thread: 1 Guest(s)