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
- //Tranlation:
- perms_error = "You dont have permissions to use this!";
- m_heal = "You are healed!";
- y_god = "You now are in god!";
- n_god = "You desactive your god!";
- event onPlayerGestured(player, gesture){
- if(gesture == "PunchLeft" or gesture == "PunchRight"){
- cc = player.look.getBarricade();
- if(isSet(cc)){
- if(cc.hasSign()){
- cz = cc.owner;
- cx = cc.getSign();
- if(cx.text == "[Heal]" and player.isAdmin){
- player.heal();
- player.message(m_heal);
- }
- else if(cx.text == "[Heal]" and player.isAdmin == false){
- player.message(perms_error);
- }
- if(cx.text == "[God]" and player.isAdmin){
- if(player.god == false){
- player.god = true;
- player.message(y_god);
- }
- else {
- player.god = false;
- player.message(n_god);
- }
- }
- else if(cx.text == "[God]" and player.isAdmin == false){
- player.message(perms_error);
- }
- if(cx.text == "[Day]" and player.isAdmin){
- server.execute("day");
- }
- else if(cx.text == "[Day]" and player.isAdmin == false){
- player.message(perms_error);
- }
- if(cx.text == "[Night]" and player.isAdmin){
- server.execute("night");
- }
- else if(cx.text == "[Night]" and player.isAdmin == false){
- player.message(perms_error);
- }
- if(cx.text == "[Skills]"){
- player.maxSkills();
- }
- if(cx.text == "[Clear]" and player.isAdmin){
- server.execute("ci " + player.name);
- }
- else if(cx.text == "[Clear]" and player.isAdmin == false){
- player.message(perms_error);
- }
- }
- }
- else if(isSet(cc) == false) {
- continue;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment