[FilterScript] [FS] Anti Spawner - 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)
+--- Thread: [FilterScript] [FS] Anti Spawner (
/showthread.php?tid=27540)
[removed] -
Ipuvaepe - 24.02.2008
[removed]
Re: Anti Spawn Hacker -
Sinces - 24.02.2008
Yes this can be useful for stopping admins to spawn Disallowed Vehicles.
Thanks.
Kind Regards Sinces.
Re: [FS] Anti Spawner -
FujiNNN - 24.02.2008
very nice man!
Re: [FS] Anti Spawner -
weedarr - 24.02.2008
Its more a snippet than a script...
WeeDarr
Re: [FS] Anti Spawner -
Noddi3 - 28.10.2009
Sorry about this bump but i get error when trying to compile.
ERROR: error 029: invalid expression, assumed zero
On line 8 (error line): if (model==425||model==520||model==469||model==432|) {DestroyVehicle(vehicleid); return 1;}
Re: [FS] Anti Spawner -
Sergei - 28.10.2009
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;
}