Jump to content
  • 0

Kill notification (chat box only not broadcast)


Question

Posted

Hi..I wanna ask for a script that will notify a player when killing or being killed by other players.

 

Example: player A  & player B

 

player A kills player B:

 

player A's chatbox : You have killed player B.

player B's chatbox: You have been killed by player A.

 

5 answers to this question

Recommended Posts

Posted (edited)


-    script    fghk    -1,{

OnPCKillEvent:

dispbottom "You killed "+ rid2name(killedrid) ;

end;

OnPCDIeEvent:

dispbottom "You have been killed by "+ rid2name(killerrid) ;

end;

}

Edited by icabit
Posted

OnPCDIeEvent: will also trigger when you are killed by monster

 

will notify a player when killing or being killed by other players

-	script	fghk	-1,{
OnPCKillEvent:
	message strcharinfo(0), "You killed "+ rid2name(killedrid) ;
	message rid2name(killedrid), "You have been killed by "+ strcharinfo(0) ;
	end;
}
  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...