Advertisement
Guest User

e2 code

a guest
Mar 28th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. #[
  2. Why hello there! This is Awesome's Auto Gun Store 1, obviously made
  3. by Awesome. It will sell guns to other users (or yourself if you
  4. want). It will automatically detect prices and add a set profit per
  5. gun to it. You can set the profit yourself.
  6.  
  7. IMPORTANT!!!!!
  8. If this user overpays for a gun, that overpayment is transferred into
  9. a 'Credits' system. Credits are a way to discount players to
  10. compensate for overpaying. The amount the player has overpayed by will
  11. be added to the credit amount. Then, the next customer can get that
  12. same amount of credits removed from their purchase. However, if it
  13. goes down to below $2, the price will stay at $2. $2 is the mandatory
  14. fee required to USE the credits.
  15. ]#
  16.  
  17.  
  18.  
  19.  
  20.  
  21. #[ ESSENTIAL CODE BITS & PIECES ]#
  22. @name Auto Gunstore 1
  23. @inputs CustomerEGP:wirelink User:entity
  24. @inputs IntEGP:wirelink
  25. @inputs X Y Use
  26. @inputs Ranger1 Ranger2 Ranger3 Ranger4 Ranger5 Ranger6
  27. @outputs User1 User2 User3 User4 User5 User6
  28. @persist Menu CustMenu Toggle
  29. runOnChat(1)
  30.  
  31. if (duped()){
  32. IntToggle = 0
  33. CustToggle = 0
  34. print("-=_=- AUTO GUNSTORE 1 -=_=-")
  35. print("Made by Awesome.")
  36. print("Type !cmd in chat to list commands.")}
  37.  
  38. #[ /ESSENTIAL CODE BITS & PIECES ]#
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46. #[ CHAT COMMANDS ]#
  47.  
  48. if (chatClk(owner())) {
  49. OwnerMSG = owner():lastSaid():lower():explode(" ")
  50.  
  51.  
  52. if(OwnerMSG[1,string]=="!cmd"){ #[ !cmd ]#
  53. hideChat(1)
  54. print("--- Commands List ---")
  55. print("[KEY] [1/2] = Choose one, optional")
  56. print("")
  57. print("[CMD] !cmd")
  58. print("[DESC] Shows this list")
  59. print("")
  60. print("[CMD] !toggle")
  61. print("[DESC] Toggles the gun store On/Off")
  62. print("[SYNT] !toggle [on/off]")}
  63.  
  64.  
  65. if(OwnerMSG[1,string]=="!toggle"){ #[ !toggle ]#
  66. hideChat(1)
  67. if(OwnerMSG[2,string]=="on"){
  68. IntToggle = 1
  69. CustToggle = 1}
  70. elseif(OwnerMSG[2,string]=="off"){
  71. IntToggle = 0
  72. CustToggle = 0}
  73. elseif(OwnerMSG[2,string]==""){
  74. IntToggle = !IntToggle
  75. CustToggle = IntToggle}
  76. if (IntToggle){
  77. hint("AutoGunStore1 has been turned ON.",3)}
  78. else{
  79. hint("AutoGunStore1 has been turned OFF.",3) }}}
  80. else{ #[ Not Command ]#
  81. hideChat(0)}
  82.  
  83. #[ /CHAT COMMANDS ]#
  84.  
  85.  
  86.  
  87.  
  88.  
  89. #[ ScreenPrint ]#
  90.  
  91. if (CustToggle){
  92. CustomerEGP:egpClear()
  93. CustomerEGP:egpBox( 1, vec2(0,0), vec2(600,100))
  94. CustomerEGP:egpColor( 1, vec((255/2),(255/2),(255/2)))
  95. CustomerEGP:egpCircle( 2, vec2(25,25), vec2(20,20))
  96. CustomerEGP:egpColor( 2, vec(55,255,55))
  97. CustomerEGP:egpText( 3, "1 Gun Select", vec2(15,6))
  98. CustomerEGP:egpSize( 3, 35)
  99. CustomerEGP:egpColor( 3, vec(175,255,175))}
  100. else{
  101. CustomerEGP:egpClear()
  102. CustomerEGP:egpText( 100, "Gun Store Disabled", vec2(100,200))
  103. CustomerEGP:egpSize( 100, 39)
  104. CustomerEGP:egpColor( 100, vec(255,127.5,127.5))
  105. CustomerEGP:egpText( 99, ">:(", vec2(285,250))
  106. CustomerEGP:egpSize( 99, 39)
  107. CustomerEGP:egpColor( 99, vec(255,127.5,127.5))
  108. CustomerEGP:egpAngle( 99, 270)}
  109.  
  110. #[ /ScreenPrint ]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement