Guest User

Untitled

a guest
Apr 25th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. import es
  2. import popuplib
  3.  
  4. myPopup = None
  5.  
  6. def load():
  7. global myPopup
  8. # Create a new Popup_popup object using the create method from popuplib:
  9. myPopup = popuplib.create('example_popup')
  10.  
  11. # add some stuff to it in a few languages:
  12. myPopup.addline("Infinite Rulez!")
  13. myPopup.addline("-------------------------------")
  14. myPopup.addline("->1. No Racism! = Kick")
  15. myPopup.addline("->2. No Hack/Bhop Hack! = Ban")
  16. myPopup.addline("->3. Dont Advertise! = Permenant Ban")
  17. myPopup.addline("->4. Dont Block Others! = Ban")
  18. myPopup.addline("->5. Dont Spamm! = Kick/Ban")
  19. myPopup.addline("->6. No Exploits/Server Hacks = Ban")
  20. myPopup.addline("------------------------------------")
  21. myPopup.addline("0. Close")
  22.  
  23. # another way to add multiple language content is using a dict-like object:
  24. text = {
  25. 'en': 'This is a test',
  26. 'de': 'Dies ist ein Test',
  27. 'fi': 'Testataan vaan...',
  28. }
  29. myPopup.addline(text)
  30.  
  31. def player_jump(event_var):
  32. # Let's greet the jumping player with our popup
  33. myPopup.send(event_var['userid'])
  34.  
  35. def unload():
  36. # Script unloading, remove the popup from taking memory
  37. myPopup.delete()
Add Comment
Please, Sign In to add comment