28.10.2009, 07:54
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.
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;
}