View Single Post
  #1  
Old 08-19-2012, 01:59 AM
Bleachlover551 Bleachlover551 is offline
Soul Reaper
Bleachlover551's Avatar
Join Date: Jul 2012
Location: Brunswick
Posts: 34
Bleachlover551 is an unknown quantity at this point
AP Changer Script :)

Hope You Like

PHP Code:
//Script By Toshi!
//#CLIENTSIDE
function onCreated() {
  new 
GuiTextCtrl("MyGUI_TextEdit1") {
    
profile = GuiBlueTextProfile;
    
x = 81;
    
y = 5;
    
height = 20;
    
text = "";
  }
}
function 
onMouseDown(mode) {
  if (
mode == "Left") {
    for (
pl: players) {
      if ( 
mousex in | pl.x + 0.5, pl.x + 2.5| && mousey in | pl.y, pl.y + 3|) {
        if (
pl != NULL) {
           new 
GuiWindowCtrl("MyGUI_Window1") {
    
profile = GuiBlueWindowProfile;
    
clientrelative = true;
    
clientextent = "115,126";

    
canmaximize = false;
    
canminimize = false;
    
canmove = true;
    
canresize = false;
    
closequery = false;
    
destroyonhide = true;
    
text = "AP Changer";
    
y = 100;

    new 
GuiButtonCtrl("MyGUI_Button1") {
      
profile = GuiBlueButtonProfile;
      
text = "Ap = 0";
      
width = 115;
    }
    new 
GuiButtonCtrl("MyGUI_Button2") {
      
profile = GuiBlueButtonProfile;
      
text = "Ap = 50";
      
width = 115;
      
y = 29;
    }
    new 
GuiButtonCtrl("MyGUI_Button3") {
      
profile = GuiBlueButtonProfile;
      
text = "Ap = 100";
      
width = 115;
      
y = 58;
    }
    new 
GuiTextEditCtrl("MyGUI_TextEdit1") {
      
profile = GuiBlueTextEditProfile;
      
height = 20;
      
width = 115;
      
x = 0;
      
y = 106;
      
MyGUI_TextEdit1.text = player.nick;
    }
      new 
GuiTextEditCtrl("MyGUI_TextEdit2") {
      
profile = GuiBlueTextEditProfile;
      
height = 20;
      
width = 115;
      
x = 0;
      
y = 88;
      
MyGUI_TextEdit2.text = player.ap;
    }
  }
}
}
function 
MyGUI_Button1.onAction() {
player.ap = "0";
}

function 
MyGUI_Button2.onAction() {
player.ap = "50";
}

function 
MyGUI_Button3.onAction() {
player.ap = "100";
}
        }
      }
    } 
Reply With Quote