Help with those fkin npc
#1

PLEASE HELP. I'm stuck with this for a week... How do I make npc die? I mean, like normal player - fall down when his hp reach 0. Plugin I use for npc dont have applyanimation function(so i dont know how to make npc fall down), and when i kill npc he just stand, do nothin and start send me messages

my problem video https://www.youtube.com/watch?v=G6Sh...ature=*********

code :

Код HTML:
#include <a_samp>
#include <FCNPC>

new zombie;


#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	
	    new name[24];
		format(name, 24, "Zombie", 1);
		zombie = FCNPC_Create(name);
        FCNPC_Spawn(zombie, 162, 318.3802, 1146.2661, 7.7623);
        print("Npc");
        
	return 1;
}

public FCNPC_OnSpawn(npcid)
{
return 1;
}

public FCNPC_OnDeath(npcid, killerid, weaponid)
{
return 1;
}

public FCNPC_OnTakeDamage(npcid, damagerid, weaponid)
{
return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}

public OnPlayerConnect(playerid)
{
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	return 1;
}

public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid,318.3802, 1136.2661, 7.7623);
GivePlayerWeapon(playerid, 30, 900);
	return 1;
}
https://sampforum.blast.hk/showthread.php?tid=428066 plugin i use
Reply


Messages In This Thread
NPC death [HELP] - by Supermaxultraswag - 13.12.2014, 18:59
Re: Help with those fkin npc - by cyberlord - 13.12.2014, 19:12
Re: Help with those fkin npc - by Supermaxultraswag - 14.12.2014, 17:29
Re: Help with those fkin npc - by Supermaxultraswag - 15.12.2014, 13:04
Re: Help with those fkin npc - by Supermaxultraswag - 17.12.2014, 17:26
Re: Help with those fkin npc - by Supermaxultraswag - 18.12.2014, 18:52
Re: Help with those fkin npc - by Pottus - 18.12.2014, 20:32
Re: Help with those fkin npc - by Supermaxultraswag - 19.12.2014, 09:06
Re: Help with those fkin npc - by Supermaxultraswag - 20.12.2014, 12:00
Re: Help with those fkin npc - by Supermaxultraswag - 21.12.2014, 07:16

Forum Jump:


Users browsing this thread: 1 Guest(s)