Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Script Created By Senior S
- //You are able to edit it as you pleasure
- //Translation: PLEASE RESPECT THE SPACES!
- xservername = "YOUR_SERVER_NAME";
- xtitularnotice = "TITULAR";
- xupdatenote = "Here push the update of your server";
- xpublicnew = "The Notice are now in the newspaper!";
- //Array DONT CHANGE THIS!
- xnew = 0;
- //Script
- command news(arg){
- permission = "xnews.journalist";
- allowedCaller = "both";
- execute(){
- xnew = arg;
- player.message(xpublicnew);
- }
- }
- event onPlayerJoined(player){
- effectManager.sendUI(16295, 1, player.id);
- }
- event onEffectButtonClicked(player, key){
- if(key == "News"){
- effectManager.sendUI(16300, 2, player.id, toString(xservername), toString(xtitularnotice), toString(xupdatenote), toString(xnew));
- }
- }
- command close(){
- permission = "xnews.user";
- execute(){
- effectManager.clearUIbyID(16300, player.id);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement