Advertisement
05X2

Point Check/Add/Remove/Set/Reset/Pay

Dec 5th, 2022
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.30 KB | None | 0 0
  1. ===============
  2. Point Add/Remove/Set/Reset/Pay
  3.  
  4. $nomention
  5. $if[$message[function]==add]
  6. $onlyAdmin[❌คุณไม่สามารถใช้งานฟังชั่นนี้ได้เนื่องจากคุณไม่ใช่ผู้ดูแล]
  7. $if[$message[user]!=]
  8. $if[$message[value]!=]
  9. $reply
  10. $ephemeral
  11. $setUserVar[point;$sum[$getUserVar[point;$message[user]];$message[value]];$message[user]]
  12. $title[✅**Add Point Success**✅]
  13. $description[คุณได้เพิ่มพ้อยท์ให้คุณ `$username[$message[user]]`
  14. เป็นจำนวน `$message[value]` พ้อยท์🪙 สำเร็จแล้ว!]
  15. $color[00C1FF]
  16. $addTimestamp
  17. $else
  18. $reply
  19. $ephemeral
  20. ❗โปรดระบุจำนวนพ้อยท์!
  21. $endif
  22. $else
  23. $reply
  24. $ephemeral
  25. ❗โปรดระบุเป้าหมายที่ต้องการใช้คำสั่ง!
  26. $endif
  27. $elseif[$message[function]==remove]
  28. $onlyAdmin[❌คุณไม่สามารถใช้งานฟังชั่นนี้ได้เนื่องจากคุณไม่ใช่ผู้ดูแล!]
  29. $if[$message[user]!=]
  30. $if[$message[value]!=]
  31. $reply
  32. $ephemeral
  33. $setUserVar[point;$calculate[$getUserVar[point;$message[user]]-$message[value]];$message[user]]
  34. $title[✅**Remove Point Success**✅]
  35. $description[คุณได้ลบพ้อยท์ของคุณ `$username[$message[user]]`
  36. เป็นจำนวน `$message[value]` Point🪙 สำเร็จแล้ว!✅]
  37. $color[00C1FF]
  38. $addTimestamp
  39. $else
  40. $reply
  41. $ephemeral
  42. ❗โปรดระบุจำนวนพ้อยท์!
  43. $endif
  44. $else
  45. $reply
  46. $ephemeral
  47. ❗โปรดระบุเป้าหมายที่คุณต้องการใช้คำสั่ง!
  48. $endif
  49. $elseif[$message[function]==set]
  50. $onlyAdmin[❌คุณไม่สามารถใช้งานฟังชั่นนี้ได้เนื่องจากคุณไม่ใช่ผู้ดูแล!]
  51. $if[$message[user]!=]
  52. $if[$message[value]!=]
  53. $reply
  54. $ephemeral
  55. $setUserVar[point;$message[value];$message[user]]
  56. $title[✅**Set Point Success**✅]
  57. $description[คุณได้ตั้งพ้อยท์ให้คุณ `$username[$message[user]]`
  58. เป็น `$message[value]` Point🪙 สำเร็จแล้ว!✅]
  59. $color[00C1FF]
  60. $addTimestamp
  61. $else
  62. $reply
  63. $ephemeral
  64. ❗โปรดระบุจำนวนพ้อยท์!
  65. $endif
  66. $else
  67. $reply
  68. $ephemeral
  69. ❗โปรดระบุเป้าหมายทีต้องการใช้คำสั่ง!
  70. $endif
  71. $elseif[$message[function]==reset]
  72. $onlyAdmin[❌คุณไม่สามารถใช้งานฟังชั่นนี้ได้เนื่องจากคุณไม่ใช่ผู้ดูแล!]
  73. $if[$message[user]!=]
  74. $reply
  75. $ephemeral
  76. $resetUserVar[point;$message[user]]
  77. $title[✅**Reset Point Success**✅]
  78. $description[คุณได้ทำการรีเซ็ตพ้อยท์ของคุณ `$username[$message[user]]` สำเร็จแล้ว!✅]
  79. $color[00C1FF]
  80. $addTimestamp
  81. $else
  82. $reply
  83. $ephemeral
  84. ❗โปรดระบุเป้าหมายที่ต้องการใช้คำสั่ง!
  85. $endif
  86. $elseif[$message[function]==pay]
  87. $if[$message[user]!=]
  88. $if[$message[value]!=]
  89. $if[$message[value]<=$getUserVar[point;$authorID]]
  90. $reply
  91. $setUserVar[point;$calculate[$getUserVar[point;$authorID]-$message[value]];$authorID]
  92. $setUserVar[point;$sum[$getUserVar[point;$message[user]];$message[value]];$message[user]]
  93. $title[✅**Pay Success**✅]
  94. $description[คุณ `$username[$authorID]`
  95. ได้มอบพ้อยท์ให้คุณ `$username[$message[user]]`
  96. เป็นจำนวน `$message[value]`Point🪙 สำเร็จแล้ว!✅]
  97. $color[00C1FF]
  98. $addTimestamp
  99. $else
  100. $reply
  101. ❗คุณมีพ้อยท์ไม่เพียงพอ
  102. $endif
  103. $else
  104. $reply
  105. $ephemeral
  106. ❗โปรดระบุจำนวนพ้อยท์!
  107. $endif
  108. $else
  109. $reply
  110. $ephemeral
  111. ❗โปรดระบุเป้าหมายที่ต้องการใช้คำสั่ง!
  112. $endif
  113. $endif
  114.  
  115. ===============
  116. Point Check
  117.  
  118. $nomention
  119. $if[$message[user]!=]
  120. $reply
  121. $thumbnail[$userAvatar[$message[user]]]
  122. $title[🪙**พ้อยของคุณ `$username[$message[user]]`**🪙]
  123. $description[คุณ `$username[$message[user]]`
  124. มีอยู่ `$getUserVar[point;$message[user]]` Point🪙]
  125. $color[00C1FF]
  126. $addTimestamp
  127. $elseif[$message[user]==]
  128. $reply
  129. $thumbnail[$userAvatar[$authorID]]
  130. $title[🪙**พ้อยท์ของคุณ**🪙]
  131. $description[คุณมีอยู่ `$getUserVar[point;$authorID]` Point🪙]
  132. $color[00C1FF]
  133. $addTimestamp
  134. $endif
  135.  
  136. ===============
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement