#1

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

Junkbuster 11 is outdated.

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

New version of JB is there?
Reply
#4

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

i need only anicheat which prevent Spawning vehicles
Reply
#6

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;
}
Reply
#7

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)