08.05.2012, 13:53
Nevermind fixed -.- Just realised i had 'return 1;' FML... -.-
NPCs Connect but disconnect within 15 seconds of connecting
I have added if(IsPlayerNPC(playerid)) return 1; to the following
And so on but still, connects and leaves...
NPCs Connect but disconnect within 15 seconds of connecting
I have added if(IsPlayerNPC(playerid)) return 1; to the following
pawn Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
pawn Код:
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerNPC(playerid)) return 1;
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
pawn Код:
case 1: //Login
{
if(IsPlayerNPC(playerid)) return 1;
if(!response) KickEx(playerid,999, "Cancelled login process");
else
{
pawn Код:
if(IsPlayerNPC(playerid)) return 1;
if(!response) KickEx(playerid,999, "Cancelled registration process");
else
{
pawn Код:
case 6: // Beginning of registration process
{
if(IsPlayerNPC(playerid)) return 1;
if(!response) KickEx(playerid,999, "Cancelled registration process");
else