Please help me with a script im working on.
Hey everyone if anyone can help me with this script ive been making it basically makes your player bigger depending on the button you press but the issue im having is Only i can see me get bigger please help me. Here is the code
PHP Code:
findPlayer("Graal1118869").addWeapon(this);
//#CLIENTSIDE
function onCreated() {
new GuiWindowCtrl("MyGUI_Window2") {
profile = GuiBlueWindowProfile;
style = $pref::Video::defaultguistyle;
clientrelative = true;
clientextent = "320,240";
canmove = true;
canresize = true;
closequery = false;
destroyonhide = false;
text = "SuperSize ";
x = 531;
y = 340;
new GuiButtonCtrl("MyGUI_Button3") {
profile = GuiBlueButtonProfile;
height = 44;
text = "Normal Size";
width = 74;
x = 245;
}
new GuiButtonCtrl("MyGUI_Button4") {
profile = GuiBlueButtonProfile;
text = "x2 Size";
width = 80;
y = 210;
}
new GuiButtonCtrl("MyGUI_Button5") {
profile = GuiBlueButtonProfile;
text = "x3 Size";
width = 80;
x = 80;
y = 210;
}
new GuiButtonCtrl("MyGUI_Button6") {
profile = GuiBlueButtonProfile;
text = "x4 Size";
width = 80;
x = 160;
y = 210;
}
new GuiButtonCtrl("MyGUI_Button7") {
profile = GuiBlueButtonProfile;
text = "x5 Size";
width = 80;
x = 240;
y = 210;
}
new GuiTextCtrl("MyGUI_Text1") {
profile = GuiBlueTextProfile;
height = 20;
text = "Made by Noofboy12(Graal1118869)";
width = 207;
}
}
}
function MyGUI_Button3.onAction() {
// Button "Normal Size" has been pressed
player.zoom = 1;
}
function MyGUI_Button4.onAction() {
// Button "x2 Size" has been pressed
player.zoom = 2;
}
function MyGUI_Button5.onAction() {
// Button "x3 Size" has been pressed
player.zoom = 3;
}
function MyGUI_Button6.onAction() {
// Button "x4 Size" has been pressed
player.zoom = 4;
}
function MyGUI_Button7.onAction() {
// Button "x5 Size" has been pressed
player.zoom = 5;
}