01.09.2014, 15:54
Check Your Anti Cheat And Put This On it :
Or If You Want know Why The NPC Leave ? 1.kick or ...
Use This :
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
I Hope I Can Help You And Sorry for my bad english
Don't Forget +Rep
pawn Код:
if(!IsPlayerNPC(playerid))
{
//Code
return 1;
}
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]);
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;
}
Don't Forget +Rep