Advertisement
DoctorX13

XNews

Oct 13th, 2019 (edited)
841
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. //Script Created By Senior S
  2. //You are able to edit it as you pleasure
  3.  
  4. //Translation: PLEASE RESPECT THE SPACES!
  5. xservername = "YOUR_SERVER_NAME";
  6. xtitularnotice = "TITULAR";
  7. xupdatenote = "Here push the update of your server";
  8. xpublicnew = "The Notice are now in the newspaper!";
  9.  
  10. //Array DONT CHANGE THIS!
  11. xnew = 0;
  12.  
  13. //Script
  14. command news(arg){
  15. permission = "xnews.journalist";
  16. allowedCaller = "both";
  17. execute(){
  18. xnew = arg;
  19. player.message(xpublicnew);
  20. }
  21. }
  22.  
  23. event onPlayerJoined(player){
  24. effectManager.sendUI(16295, 1, player.id);
  25. }
  26.  
  27. event onEffectButtonClicked(player, key){
  28. if(key == "News"){
  29. effectManager.sendUI(16300, 2, player.id, toString(xservername), toString(xtitularnotice), toString(xupdatenote), toString(xnew));
  30. }
  31. }
  32.  
  33. command close(){
  34. permission = "xnews.user";
  35. execute(){
  36. effectManager.clearUIbyID(16300, player.id);
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement