NPC wont connect
#1

i am using a airplane filterscript but when i connect npc they get kicked
Attempting to connect NPC!

[06:31:32] SYSTEM: [BOT]Skimmer has been kicked - Vehicle Hacks(Controlling/TPing into cars)

under
public OnPlayerSpawn(playerid)
{
#if dbg-callbacks
format(query, sizeof(query), "DBG: OnPlayerSpawn(%d)",playerid);
SendClientMessageToAll(X11_YELLOW, query);
#endif
if(!IsPlayerNPC(playerid)) {
if(!IsPlayerConnectEx(playerid)) {
Kick(playerid);
Reply
#2

Simply make an exception in your anti-cheat system

PHP код:
if(!IsPlayerNPC(playerid))
{
// not a NPC

Reply
#3

its like this under
public OnPlayerSpawn(playerid)
{
#if dbg-callbacks
format(query, sizeof(query), "DBG: OnPlayerSpawn(%d)",playerid);
SendClientMessageToAll(X11_YELLOW, query);
#endif
if(!IsPlayerNPC(playerid)) {
if(!IsPlayerConnectEx(playerid)) {
Kick(playerid);
Reply
#4

Код:
acCarCheck(playerid) {
	if(IsPlayerInAnyVehicle(playerid)) {
		new seat = GetPlayerVehicleSeat(playerid);
		new c = GetPlayerVehicleID(playerid);
		if(PlayerOwnsCar(c,playerid)) return 1;
		if(currentCar[playerid][0] != c) {
			hackKick(playerid, "Vehicle Hacks(Controlling/TPing into cars)", "Vehicle Hacks");
		} else if(seat == 0 && currentCar[playerid][1] != 0 && seat != 128) {
			hackKick(playerid, "Vehicle Hacks(Controlling from passenger)", "Vehicle Hacks");
		}
	} else if(currentCar[playerid][0] != 0 && currentCar[playerid][2] < 1) {
			currentCar[playerid][0] = 0;
	}
	return 1;
}
here is a piece of code from anti cheat
Reply
#5

Make an exception for NPCs inside the anti cheat function.
Reply
#6

Okay so now they connect but they wont move
Reply
#7

Код:
 if(IsPlayerNPC(playerid)) return 1;
Add that.. might work out?
Reply
#8

Still not idk why they dont do the functions they should do just stuck no movement
Reply
#9

Quote:
Originally Posted by Astonish
Посмотреть сообщение
Okay so now they connect but they wont move
You must use this
PHP код:
FCNPC_StartPlayingPlayback(npcid"driving"); 
// driving was example, you must set the name of your file.
Reply
#10

Quote:
Originally Posted by OsmanMalagic
Посмотреть сообщение
You must use this
Are you sure though that they are using FCNPC though?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)