NPC join then Leave D: why?
#1

Subject say everything
Server log :
Код:
[13:41:49] [npc:join] Attack_NPC has joined the server (0:127.0.0.1)
[13:42:01] Incoming connection: 127.0.0.1:54463
[13:42:05] [npc:part] Attack_NPC has left the server (0:0)
[13:42:11] Incoming connection: 127.0.0.1:54464
Why the NPC join then he just leave...
NPC script:
pawn Код:
#include <a_samp>
#include <attacking_npc>

#define FILTERSCRIPT

public OnFilterScriptInit()
{
    ConnectNPC("Attack_NPC", "1");
    return 0;
}

//We make sure that the NPC spawns before we make it an attacking NPC
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
      if(playerid == GetPlayerID("Attack_NPC")) SetTimer("AttackNPC", 5000, 0);
    }
    return 0;
}

forward AttackNPC();
public AttackNPC()
{
    CreateAttackingNPC("Attack_NPC", 1398.5673,1528.5996,10.8125);
    return 0;
}
HELP ME PLEASE!!!
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: 1 Guest(s)