01.09.2014, 13:11
Subject say everything
Server log :
Why the NPC join then he just leave...
NPC script:
HELP ME PLEASE!!!
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
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;
}