Advertisement
tyler569

Should work

May 11th, 2012
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1.  
  2. #Puts a smile on your face... or maybe just a block
  3. *:/hat = >>>
  4. assign(@player, player())
  5. if(is_null(pinv(@player, null)), die('You need to be holding something!'))
  6. if(has_permission(@player,titanicnut.hat), try(set_pinv(array(103: pinv(player(), null))), @i, die('You cannot wear that!')))
  7. msg('Look at your hat, your hat is amazing!')
  8. <<<
  9.  
  10. # Skillup
  11. /skillup $player = >>>
  12. assign(@player, player())
  13. if(has_permission(@player,titanicnut.skillup), run(/pex promote $player), die('You can not do that'))
  14. <<<
  15.  
  16. # Skillup
  17. /skillup $player $group = >>>
  18. assign(@player, player())
  19. if(has_permission(@player,titanicnut.skillup), run(/pex user $player group set $group ), die('You can not do that'))
  20. <<<
  21.  
  22. # Warp to the build
  23. /build = /warp build
  24. /ra = /reloadaliases
  25.  
  26. # Promting people to high donator
  27. /donatehigh $name = >>>
  28. run(/pex user $name group add donatorhigh)
  29. <<<
  30.  
  31. #Promoting people to low donator
  32. /donatelow $name = >>>
  33. run(/pex user $name group add donatorhigh)
  34. <<<
  35.  
  36. # Storing your current postion
  37. *:/storepos [$he='null'] = >>>
  38. assign(@player,player())
  39. assign(@value, pinfo(@player, 1))
  40. if(is_null($he), msg(Use /storepos <NUMBER> to store your location and /getstoredpos <NUMBER> to retrive the stored location))
  41. store_value(concat(@player,$he), @value)
  42. <<<
  43.  
  44. # Retrive stored postions
  45. *:/getstoredpos $he= >>>
  46. assign(@player,player())
  47. assign(@he,$he)
  48. msg(get_value(concat(@player,@he)))
  49. <<<
  50.  
  51. *:/huzza = >>>
  52. assign(@player, player())
  53. chatas(player(), Yells: HUZZA!)
  54. runas(~op, /kill @player)
  55. <<<
  56.  
  57. /removemod $name = /pex user $name group remove mod
  58. /setmod $name = /pex user $name group add mod
  59. /pset $pla [$ran='default'] = /pex user $pla group set $ran
  60. /padd $pla [$ran='null'] = /pex user $pla group add $ran
  61.  
  62. #following credit jessassin
  63. #move super fast!
  64. *:/fast = >>>
  65. if(has_permission(player(),titanicnut.fast),
  66. msg('SUPER SPEED!')
  67. set_peffect(player(), 1, 50, 50) #speed
  68. #set_peffect(player(), 3, 100, 50) #haste (speed mining)
  69. set_peffect(player(), 5, 50, 50) #strength
  70. set_peffect(player(), 8, 8, 50) #jumping
  71. #set_peffect(player(), 11, 50, 50) #damage resistance
  72. #set_peffect(player(), 12, 50, 50) #fire resistance
  73. #set_peffect(player(), 13, 50, 50) #water breathing
  74. msg('To stop this effect, type /fixme'),
  75. die('You are in survival')
  76. )
  77. <<<
  78.  
  79. #reset peffects (there is a better way to do this, but I am lazy! (I will turn into a loop later!)
  80. *:/fixme = >>>
  81. if(has_permission(player(),titanicnut.fast),
  82. set_peffect(player(), 1, 0, 0)
  83. set_peffect(player(), 5, 0, 0)
  84. set_peffect(player(), 8, 0, 0),
  85. die('You are in survival')
  86. )
  87. <<<
  88.  
  89. #fake join/leave
  90. admin:/join $nme = broadcast(concat(color(e),$nme,' has joined the game'))
  91. admin:/left $nme = broadcast(concat(color(e),$nme,' has left the game'))
  92. #print all the colors and their code
  93.  
  94. *:/c = >>>
  95. msg(concat(color(0)'0',color(1)'1',color(2)'2',color(3)'3',color(4)'4',color(5)'5',color(6)'6',color(7)'7'))
  96. msg(concat(color(8)'8',color(9)'9',color(a)'a',color(b)'b',color(c)'c',color(d)'d',color(e)'e',color(f)'f'))
  97. <<<
  98.  
  99. #prefix/suffix easy
  100. admin:/pre $pf [$pla=''] = /pex user $pla prefix $pf
  101. admin:/suf $sf [$pla=''] = /pex user $pla suffix $sf
  102.  
  103. #show tags
  104. *:/tags=>>>
  105. msg('These are all the tags currently in use:')
  106. msg(concat(color(c)'[M]',color(f)'Moderator'))
  107. msg(concat(color(6)'[D]',color(f)'Donator <$20'))
  108. msg(concat(color(2)'[D]',color(f)'Donator >$20'))
  109. msg(concat(color(7)'[H]',color(f)'Helper'))
  110. <<<
  111.  
  112. #tells you if a player has a certain permission
  113. *:/perm [$plr=player()] $perm = if(has_permission($plr,$perm),msg('YES'),msg('NO'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement