NPC attack bug
#5

well the NPC is very famous this is the NPC (FS)
Quote:

#include <a_samp>
#include <a_angles>
#include <attacking_npc>
#define FILTERSCRIPT
public OnFilterScriptInit()
{
ConnectNPC("Attack_NPC", "1");
return 1;
}
//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);
{
SetPlayerTeam(playerid, 2);
SetPlayerPos(playerid,2598.9768,-2211.1077,-0.218;
}
}
return 0;
}
forward AttackNPC();
public AttackNPC()
{
CreateAttackingNPC("Attack_NPC",2598.9768,-2211.1077,-0.218;
return 0;
}

Reply


Messages In This Thread
NPC attack bug - by Amine_Mejrhirrou - 02.12.2010, 20:36
Re: NPC attack bug - by Kitten - 02.12.2010, 21:22
Re : NPC attack bug - by Amine_Mejrhirrou - 03.12.2010, 06:09
Re: NPC attack bug - by Mauzen - 03.12.2010, 06:41
Re : NPC attack bug - by Amine_Mejrhirrou - 03.12.2010, 15:34
Re : NPC attack bug - by Amine_Mejrhirrou - 03.12.2010, 15:38
Re: NPC attack bug - by Vince - 03.12.2010, 16:09
Re : Re: NPC attack bug - by Amine_Mejrhirrou - 03.12.2010, 17:13
Re: NPC attack bug - by [WSF]ThA_Devil - 08.12.2010, 19:05

Forum Jump:


Users browsing this thread: 1 Guest(s)