Jump to content
  • 0

Item drops whenever a player was killed


Question

Posted

Hey everyone, may i request a script that has a function of whenever a player was killed by another player, an item will drop. It's like a skull from the pvp, but i want an item instead of skull. Plus the item will automatically goes to the killer inventory. 

 

Thanks in advance. Ciao.

4 answers to this question

Recommended Posts

  • 0
Posted

 

 

Thank you Skorm. It works, but can you make it works only in a specific map? Is it possible? Coz players can get skulls whenever they're dueling. (@duel)

Thanks in advance. 

 

-	script	item_get	-1,{ OnPCKillEvent: if(getmapflag(strcharinfo(3),mf_pvp)) getitem 501, 10; }

 

It works! Thanks a lot Skorm!  /no1

Posted (edited)
-	script	item_get	-1,{ OnPCKillEvent: getitem 501, 10; }

 

Thank you Skorm. It works, but can you make it works only in a specific map? Is it possible? Coz players can get skulls whenever they're dueling. (@duel)

Thanks in advance. 

Edited by awesomazingxed
Posted

 

Thank you Skorm. It works, but can you make it works only in a specific map? Is it possible? Coz players can get skulls whenever they're dueling. (@duel)

Thanks in advance. 

 

-	script	item_get	-1,{ OnPCKillEvent: if(getmapflag(strcharinfo(3),mf_pvp)) getitem 501, 10; }

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...