SHARE
TWEET

Untitled

a guest Aug 13th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Item_Trigger(item, event, player)
  2.     Item_menu(item, player)
  3. end
  4.  
  5. function Item_menu(item, player)
  6.     if(player:isDead() != true) then
  7.         player:SendAreaTriggerMessage("Du bist nicht Tot!")
  8.     else
  9.         item:GossipCreateMenu(3555, player, 0)
  10.         item:GossipMenuAddItem(0, "Beleb mich wieder", 3, 0)
  11.         item.GossipSendMenu(player)
  12.     end
  13. end
  14.  
  15. function OnSelect(item, event, player, id, intid, code)
  16.     if(intid == 3) then
  17.         player:ResurrectPlayer()
  18.     end
  19. end
  20.  
  21. RegisterItemGossipEvent(Item_ID, 1, "Item_Trigger")
  22. RegisterItemGossipEvent(Item_ID, 2, "OnSelect")
RAW Paste Data
Top