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
#2

check this https://sampforum.blast.hk/showthread.php?tid=128254
Reply
#3

Quote:
Originally Posted by cyberlord
Посмотреть сообщение
I need solution with FCNPC plugin functions.
Reply
#4

Cmon, no one?
Reply
#5

bump
Reply
#6

bump
Reply
#7

FCNPC has the killing function built into it....

FCNPC_SetHealth() set the health to 0
Reply
#8

Lol, I know that fcnpc has the killing function, I need death animation, because when I kill npc, he just stand and do nothing.
Reply
#9

VIDEO ADDED :

https://www.youtube.com/watch?v=G6Sh...ature=*********
Reply
#10

For real? No one?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)