Jump to content
  • 0

Item drops whenever a player was killed


awesomazingxed

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  10/24/14
  • Last Seen:  

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.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  10/24/14
  • Last Seen:  

 

 

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

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  


- script item_get -1,{ OnPCKillEvent: getitem 501, 10; }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  10/24/14
  • Last Seen:  

-	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
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

 

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; }
Link to comment
Share on other sites

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.

×
×
  • Create New...