Killing npc - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Killing npc (
/showthread.php?tid=621309)
Killing npc -
Riccardomen - 09.11.2016
Код:
OnPlayerDeath
.....
....
if(playerid == IsPlayerNPC(playerid))
{
new string3[256];
format(string3, sizeof(string3), "~g~You killed NPC : %s ~w~ ~r~+1",GetPlayerNameEx(playerid));
GameTextForPlayer(killerid,string3, 3000, 4);
}
The message didn't show.
in facts i want a message with gametextforplayer when you kill a NPC
anyone can help me?
Re: Killing npc -
Pearson - 09.11.2016
KXM, you cant kill default npc. are you using fcnpc or rnpc?
Re: Killing npc -
Riccardomen - 09.11.2016
Rnpc
Re: Killing npc -
Riccardomen - 09.11.2016
ah sry i got it, solved , on player death is for only players
okk fixed :P
Re: Killing npc -
Pearson - 09.11.2016
Use this for rnpc
Re: Killing npc -
Riccardomen - 07.12.2016
yep ,thnx