NPC join then Leave D: why?
#4

Check Your Anti Cheat And Put This On it :
pawn Код:
if(!IsPlayerNPC(playerid))
{
//Code
return 1;
}
Or If You Want know Why The NPC Leave ? 1.kick or ...
Use This :
pawn Код:
new aDisconnectNames[][16] = {
    {"Time Out"},
    {"Exit - /Q"},
    {"Kick"}
};
pawn Код:
// In the OnPlayerDisconnect :
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
printf("%s(%d) Has Been Left The Server [%d]"pname,playerid,aDisconnectNames[reason]);
if Is kick check your anti cheat. i was have this problems some day .
OR
Put "if(IsPlayerNPC(playerid)) return 1;" In The OnPlayerRequestClass, OnPlayerConnect, OnPlayerRequestSpawn And In The
OnPlayerSpawn Where You Have Added The NPC Put this
pawn Код:
if(IsPlayerNPC(playerid))
{
 //NPC Code ...
return 1;
}
I Hope I Can Help You And Sorry for my bad english
Don't Forget +Rep
Reply


Messages In This Thread
NPC join then Leave D: why? - by Mzake - 01.09.2014, 13:11
Re: NPC join then Leave D: why? - by meitaredri - 01.09.2014, 13:15
Re: NPC join then Leave D: why? - by DaniceMcHarley - 01.09.2014, 13:26
Re: NPC join then Leave D: why? - by M0HAMMAD - 01.09.2014, 15:54
Re: NPC join then Leave D: why? - by Mzake - 02.09.2014, 11:52
Re: NPC join then Leave D: why? - by Dotayuri - 02.09.2014, 11:57
Re: NPC join then Leave D: why? - by Mzake - 02.09.2014, 13:33
Re: NPC join then Leave D: why? - by Rifa4life - 02.09.2014, 16:55
Re: NPC join then Leave D: why? - by meitaredri - 02.09.2014, 16:58
Re: NPC join then Leave D: why? - by Clad - 02.09.2014, 16:59

Forum Jump:


Users browsing this thread: 2 Guest(s)