Killing npc
#1

Код:
		

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

KXM, you cant kill default npc. are you using fcnpc or rnpc?
Reply
#3

Rnpc
Reply
#4

ah sry i got it, solved , on player death is for only players
okk fixed :P
Reply
#5

Use this for rnpc
PHP код:
 OnRNPCDeath 
Reply
#6

yep ,thnx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)