NPC wont connect -
Astonish - 15.05.2018
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);
Re: NPC wont connect -
kovac - 15.05.2018
Simply make an exception in your anti-cheat system
PHP код:
if(!IsPlayerNPC(playerid))
{
// not a NPC
}
Re: NPC wont connect -
Astonish - 15.05.2018
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);
Re: NPC wont connect -
Astonish - 15.05.2018
Код:
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
Re: NPC wont connect -
kovac - 15.05.2018
Make an exception for NPCs inside the anti cheat function.
Re: NPC wont connect -
Astonish - 15.05.2018
Okay so now they connect but they wont move
Re: NPC wont connect -
GTLS - 15.05.2018
Код:
if(IsPlayerNPC(playerid)) return 1;
Add that.. might work out?
Re: NPC wont connect -
Astonish - 15.05.2018
Still not idk why they dont do the functions they should do just stuck no movement
Re: NPC wont connect -
OsmanMalagic - 15.05.2018
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.
Re: NPC wont connect -
Sew_Sumi - 15.05.2018
Quote:
Originally Posted by OsmanMalagic
You must use this
|
Are you sure though that they are using FCNPC though?