SA-MP Forums Archive
help - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help (/showthread.php?tid=329126)



help - Crazyboobs - 27.03.2012

I am using Junkbuster 11

and when i compile, this is the error

pawn Код:
D:\2231\lronboy\My Documents\Downloads\New Folder\filterscripts\JunkBuster.pwn(298) : fatal error 111: user error: Please download SA-MP 0.3c R3 server package!


Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

How to fix it?


Re: help - TheLazySloth - 27.03.2012

Junkbuster 11 is outdated.

If you want to use it, you have to download an earlier version of SA-MP from HERE


Re: help - Crazyboobs - 27.03.2012

New version of JB is there?


Re: help - TheLazySloth - 27.03.2012

It's better to create your own anti-cheat.


Re: help - Crazyboobs - 27.03.2012

i need only anicheat which prevent Spawning vehicles


Re: help - TheLazySloth - 27.03.2012

Example...

Код:
new	Vehicle[MAX_VEHICLES];

public OnGameModeInit() {
	Vehicle[0] = CreateVehicle( ... );
	Vehicle[1] = CreateVehicle( ... );
	Vehicle[2] = CreateVehicle( ... );
	return true;
}

public OnGameModeExit() {
	DestroyVehicle(Vehicle[0]);
	DestroyVehicle(Vehicle[1]);
	DestroyVehicle(Vehicle[2]);
	return true;
}

public OnPlayerEnterVehicle(playerid, vehicleid) {
	if(!IsVehicleValid(vehicleid)) {
		Ban(playerid);
		DestroyVehicle(vehicleid);
	}
	return true;
}

public OnPlayerExitVehicle(playerid, vehicleid) {
	if(!IsVehicleValid(vehicleid)) {
		Ban(playerid);
		DestroyVehicle(vehicleid);
	}
	return true;
}

stock IsVehicleValid(vehicleid) {
	for(new Vehicles = 0; Vehicles < MAX_VEHICLES; Vehicles++) {
		if(vehicleid == Vehicle[Vehicles]) return true;
	}
	return false;
}



Re: help - Crazyboobs - 27.03.2012

Just copy paste thats all?
Or i want to add anymore functions in that?


Re: help - TheLazySloth - 27.03.2012

It's an example, study it. If you're familiar with Pawn you will completely understand it all and it will give you an idea on how you could make your required anti-cheat.