Jump to content

Una consulta


Recommended Posts

se me olvido agregar el txd al meta . ._. pero ya pare con eso de los zombies estoy en un nuevo proyecto de GUI con events de radio buttons si no me funciona algo les posteo mi script ^^

aqui ta mi script ya lo termine ^^ buee ai ta :

mtascreen20120310143744.png

mtascreen20120310143745.png

mtascreen20120310143747j.png

mtascreen20120310143749.png

        GUIEditor_Window = {} 
        GUIEditor_Button = {} 
        GUIEditor_Memo = {} 
        GUIEditor_Radio = {} 
        GUIEditor_Image = {} 
  
        GUIEditor_Window[1] = guiCreateWindow(154,130,485,362,"Panel de Ayuda",false) 
        GUIEditor_Radio[1] = guiCreateRadioButton(0.0289,0.3177,0.1753,0.116,"Comandos",true,GUIEditor_Window[1]) 
        guiRadioButtonSetSelected(GUIEditor_Radio[1],true) 
        guiSetFont(GUIEditor_Radio[1],"clear-normal") 
        GUIEditor_Image[1] = guiCreateStaticImage(0.0598,0.0497,0.8639,0.2459,"images/logobkz.png",true,GUIEditor_Window[1]) 
        GUIEditor_Radio[2] = guiCreateRadioButton(0.0289,0.4088,0.1979,0.116,"Informacion",true,GUIEditor_Window[1]) 
        guiSetFont(GUIEditor_Radio[2],"clear-normal") 
        GUIEditor_Memo[1] = guiCreateMemo(0.3134,0.3039,0.668,0.6657,"Comandos :\n\n F1 : Gui Canciones / Music GUI\n F2 : Panel de Ayuda\n F3 : Panel de Spawn de vehiculos Comprados\n F4 : Shader Panel / Panel para texturas reales\n",true,GUIEditor_Window[1]) 
        guiMemoSetReadOnly(GUIEditor_Memo[1],true) 
        GUIEditor_Radio[3] = guiCreateRadioButton(0.0289,0.4917,0.1979,0.116,"Sobre",true,GUIEditor_Window[1]) 
        guiSetFont(GUIEditor_Radio[3],"clear-normal") 
        GUIEditor_Radio[4] = guiCreateRadioButton(0.0289,0.5829,0.1979,0.116,"Clan",true,GUIEditor_Window[1]) 
        guiSetFont(GUIEditor_Radio[4],"clear-normal") 
        GUIEditor_Button[1] = guiCreateButton(0.0247,0.8177,0.2722,0.1464,"Cerrar",true,GUIEditor_Window[1]) 
        GUIEditor_Memo[2] = guiCreateMemo(0.3134,0.3039,0.668,0.6657,"Informacion Sobre el server :\n\nBuee yo ago casi todos los scripts ( ElMota ) uno que otro descargado. Aveces me ayudan con las functions en el foro del MTA\n",true,GUIEditor_Window[1]) 
        guiMemoSetReadOnly(GUIEditor_Memo[2],true) 
        GUIEditor_Memo[3] = guiCreateMemo(0.3134,0.3039,0.668,0.6657,"Sobre el server y la GUI :\n\nServer y GUI creada por ElMota ayudado con algunas Functions \n\n-----------------------------------------------------------------------------CopyRight 2012 (c)",true,GUIEditor_Window[1]) 
        guiMemoSetReadOnly(GUIEditor_Memo[3],true) 
        GUIEditor_Memo[4] = guiCreateMemo(0.3134,0.3039,0.668,0.6657,"Bueeno el clan del server es BKZ| Best Killer of Zombies Clan\n\nPara entrar minimo ai que tener 200 zombies kills y estar loggeado y registrado\n",true,GUIEditor_Window[1]) 
        guiMemoSetReadOnly(GUIEditor_Memo[4],true) 
  
function eta() 
if (source == GUIEditor_Radio[1]) then 
guiSetVisible ( GUIEditor_Memo[1], true ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
  
elseif (source == GUIEditor_Radio[2]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], true ) 
guiSetVisible ( GUIEditor_Memo[3], false ) 
guiSetVisible ( GUIEditor_Memo[4], false ) 
  
elseif (source == GUIEditor_Radio[3]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false ) 
guiSetVisible ( GUIEditor_Memo[3], true ) 
guiSetVisible ( GUIEditor_Memo[4], false ) 
  
elseif (source == GUIEditor_Radio[4]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false ) 
guiSetVisible ( GUIEditor_Memo[3], false ) 
guiSetVisible ( GUIEditor_Memo[4], true ) 
  
   end 
end 
addEventHandler("onClientGUIClick",GUIEditor_Radio[1],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[2],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[3],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[4],eta,false) 
  
  
function oppenz() 
        if guiGetVisible ( GUIEditor_Window[1] ) then  
                guiSetVisible ( GUIEditor_Window[1], false ) 
showCursor(false) 
  guiSetInputEnabled(false) 
        else 
                guiSetVisible ( GUIEditor_Window[1], true ) 
showCursor(true) 
  guiSetInputEnabled(true) 
   setTimer(glowbabyglow,6000,1) 
 end 
end 
bindKey("F5","down",oppenz) 
  
function close() 
if (source == GUIEditor_Button[1]) then 
guiSetVisible ( GUIEditor_Window[1], false ) 
showCursor(false) 
  guiSetInputEnabled(false) 
  
   end 
end 
  
addEventHandler("onClientGUIClick",GUIEditor_Button[1],close,false) 
  
showCursor(true) 

voy aprendiendo los eventos y ocmo usarlos ^^

EDIT : sigo aprendiendo : :D

        GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Memo = {} 
GUIEditor_Radio = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(154,130,486,425,"Panel de Ayuda",false) 
GUIEditor_Radio[1] = guiCreateRadioButton(14,115,85,42,"Comandos",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[1],"clear-normal") 
GUIEditor_Image[1] = guiCreateStaticImage(29,18,419,89,"images/logobkz.png",false,GUIEditor_Window[1]) 
GUIEditor_Radio[2] = guiCreateRadioButton(14,148,96,42,"Informacion",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[2],"clear-normal") 
GUIEditor_Memo[1] = guiCreateMemo(152,110,324,241,"Comandos :\n\n F1 : Gui Canciones / Music GUI\n F2 : Panel de Ayuda\n F3 : Panel de Spawn de vehiculos Comprados\n F4 : Shader Panel / Panel para texturas reales",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[1],true) 
GUIEditor_Radio[3] = guiCreateRadioButton(14,178,96,42,"Sobre",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[3],"clear-normal") 
GUIEditor_Radio[4] = guiCreateRadioButton(14,211,96,42,"Clan",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[4],"clear-normal") 
GUIEditor_Button[1] = guiCreateButton(348,366,124,40,"Cerrar",false,GUIEditor_Window[1]) 
GUIEditor_Memo[2] = guiCreateMemo(152,110,324,241,"Informacion Sobre el server :\n\nBuee yo ago casi todos los scripts ( ElMota ) uno que otro descargado. Aveces me ayudan con las functions en el foro del MTA",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[2],true) 
GUIEditor_Memo[3] = guiCreateMemo(152,110,324,241,"Sobre el server y la GUI :\n\nServer y GUI creada por ElMota ayudado con algunas Functions \n\n-----------------------------------------------------------------------------CopyRight 2012 (c)",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[3],true) 
GUIEditor_Memo[4] = guiCreateMemo(152,110,324,241,"Bueeno el clan del server es BKZ| Best Killer of Zombies Clan\n\nPara entrar minimo ai que tener 200 zombies kills y estar loggeado y registrado",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[4],true) 
GUIEditor_Image[2] = guiCreateStaticImage(18,367,59,30,"images/BAT.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[3] = guiCreateStaticImage(88,367,75,29,"images/shruk.png",false,GUIEditor_Window[1]) 
GUIEditor_Radio[5] = guiCreateRadioButton(14,115,85,42,"Commands",false,GUIEditor_Window[1]) 
guiRadioButtonSetSelected(GUIEditor_Radio[5],true) 
guiSetFont(GUIEditor_Radio[5],"clear-normal") 
GUIEditor_Radio[6] = guiCreateRadioButton(14,148,96,42,"Information",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[6],"clear-normal") 
GUIEditor_Radio[7] = guiCreateRadioButton(14,178,96,42,"About",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[7],"clear-normal") 
GUIEditor_Radio[8] = guiCreateRadioButton(14,211,96,42,"Clan",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[8],"clear-normal") 
GUIEditor_Memo[5] = guiCreateMemo(152,110,324,241,"Sorry for my bad english :\n\nF1 : Music GUI\nF2 : Animations\nF3 : Car Panel\nF4 : Shader Panel\nF5 : Help Panel.",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[5],true) 
GUIEditor_Memo[6] = guiCreateMemo(152,110,324,241,"This is my server and my Scripts by ( ElMota )\n\nSpam = Mute or Kick\nCheats or Hacks = Kick or Bann( 1 Year )\nBugs = Kick or Bann\n-",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[6],true) 
GUIEditor_Memo[7] = guiCreateMemo(152,110,324,241,"This scripts and this server have CopyRight 2012 (c)\n\nAnd the official Creator of this server is me ( ElMota )",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[7],true) 
GUIEditor_Memo[8] = guiCreateMemo(152,110,324,241,"The official Clan of this server is BKZ| Best Killer of Zombies Clan and is my clan , if u want be BKZ| u need 600 kills and be registered",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[8],true) 
  
function eta() 
if (source == GUIEditor_Radio[1]) then 
guiSetVisible ( GUIEditor_Memo[1], true ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[2]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], true )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[3]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], true )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[4]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], true ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[5]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], true ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[6]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], true )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[7]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], true )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[8]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], true ) 
  
elseif (source == GUIEditor_Image[2]) then 
guiSetVisible ( GUIEditor_Radio[1], true ) 
guiSetVisible ( GUIEditor_Radio[2], true )  
guiSetVisible ( GUIEditor_Radio[3], true )  
guiSetVisible ( GUIEditor_Radio[4], true ) 
guiSetVisible ( GUIEditor_Radio[5], false ) 
guiSetVisible ( GUIEditor_Radio[6], false )  
guiSetVisible ( GUIEditor_Radio[7], false )  
guiSetVisible ( GUIEditor_Radio[8], false ) 
  
elseif (source == GUIEditor_Image[3]) then 
guiSetVisible ( GUIEditor_Radio[1], false ) 
guiSetVisible ( GUIEditor_Radio[2], false )  
guiSetVisible ( GUIEditor_Radio[3], false )  
guiSetVisible ( GUIEditor_Radio[4], false ) 
guiSetVisible ( GUIEditor_Radio[5], true ) 
guiSetVisible ( GUIEditor_Radio[6], true )  
guiSetVisible ( GUIEditor_Radio[7], true )  
guiSetVisible ( GUIEditor_Radio[8], true ) 
  
   end 
end 
addEventHandler("onClientGUIClick",GUIEditor_Radio[1],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[2],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[3],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[4],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[5],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[6],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[7],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[8],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Image[3],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Image[2],eta,false) 
  
  
function oppenz() 
        if guiGetVisible ( GUIEditor_Window[1] ) then  
                guiSetVisible ( GUIEditor_Window[1], false ) 
showCursor(false) 
  guiSetInputEnabled(false) 
        else 
                guiSetVisible ( GUIEditor_Window[1], true ) 
showCursor(true) 
  guiSetInputEnabled(true) 
   setTimer(glowbabyglow,6000,1) 
 end 
end 
bindKey("F5","down",oppenz) 
  
function close() 
if (source == GUIEditor_Button[1]) then 
guiSetVisible ( GUIEditor_Window[1], false ) 
showCursor(false) 
  guiSetInputEnabled(false) 
  
   end 
end 
  
addEventHandler("onClientGUIClick",GUIEditor_Button[1],close,false) 
  
showCursor(true) 

mtascreen20120311040431.png

mtascreen20120311040441.png

Link to comment

buee en mi GUI de ayuda quiero hacer para que se vean y no se vean los skins modificados que puse y pos ise esto pero me falta para que vuelvan a ponerse por defecto me ayudarian ?

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Memo = {} 
GUIEditor_Radio = {} 
GUIEditor_Image = {} 
GUIEditor_Checkbox = {} 
  
GUIEditor_Window[1] = guiCreateWindow(154,130,486,425,"Panel de Ayuda",false) 
GUIEditor_Radio[1] = guiCreateRadioButton(14,115,85,42,"Comandos",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[1],"clear-normal") 
GUIEditor_Image[1] = guiCreateStaticImage(29,18,419,89,"images/logobkz.png",false,GUIEditor_Window[1]) 
GUIEditor_Radio[2] = guiCreateRadioButton(14,148,96,42,"Informacion",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[2],"clear-normal") 
GUIEditor_Memo[1] = guiCreateMemo(152,110,324,241,"Comandos :\n\n F1 : Gui Canciones / Music GUI\n F2 : Panel de Ayuda\n F3 : Panel de Spawn de vehiculos Comprados\n F4 : Shader Panel / Panel para texturas reales",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[1],true) 
GUIEditor_Radio[3] = guiCreateRadioButton(14,178,96,42,"Sobre",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[3],"clear-normal") 
GUIEditor_Radio[4] = guiCreateRadioButton(14,211,96,42,"Clan",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[4],"clear-normal") 
GUIEditor_Button[1] = guiCreateButton(348,366,124,40,"Cerrar",false,GUIEditor_Window[1]) 
GUIEditor_Memo[2] = guiCreateMemo(152,110,324,241,"Informacion Sobre el server :\n\nBuee yo ago casi todos los scripts ( ElMota ) uno que otro descargado. Aveces me ayudan con las functions en el foro del MTA",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[2],true) 
GUIEditor_Memo[3] = guiCreateMemo(152,110,324,241,"Sobre el server y la GUI :\n\nServer y GUI creada por ElMota ayudado con algunas Functions \n\n-----------------------------------------------------------------------------CopyRight 2012 (c)",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[3],true) 
GUIEditor_Memo[4] = guiCreateMemo(152,110,324,241,"Bueeno el clan del server es BKZ| Best Killer of Zombies Clan\n\nPara entrar minimo ai que tener 200 zombies kills y estar loggeado y registrado",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[4],true) 
GUIEditor_Image[2] = guiCreateStaticImage(18,367,59,30,"images/BAT.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[3] = guiCreateStaticImage(88,367,75,29,"images/shruk.png",false,GUIEditor_Window[1]) 
GUIEditor_Radio[5] = guiCreateRadioButton(14,115,85,42,"Commands",false,GUIEditor_Window[1]) 
guiRadioButtonSetSelected(GUIEditor_Radio[5],true) 
guiSetFont(GUIEditor_Radio[5],"clear-normal") 
GUIEditor_Radio[6] = guiCreateRadioButton(14,148,96,42,"Information",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[6],"clear-normal") 
GUIEditor_Radio[7] = guiCreateRadioButton(14,178,96,42,"About",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[7],"clear-normal") 
GUIEditor_Radio[8] = guiCreateRadioButton(14,211,96,42,"Clan",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[8],"clear-normal") 
GUIEditor_Memo[5] = guiCreateMemo(152,110,324,241,"Sorry for my bad english :\n\nF1 : Music GUI\nF2 : Animations\nF3 : Car Panel\nF4 : Shader Panel\nF5 : Help Panel.",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[5],true) 
GUIEditor_Memo[6] = guiCreateMemo(152,110,324,241,"This is my server and my Scripts by ( ElMota )\n\nSpam = Mute or Kick\nCheats or Hacks = Kick or Bann( 1 Year )\nBugs = Kick or Bann\n-",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[6],true) 
GUIEditor_Memo[7] = guiCreateMemo(152,110,324,241,"This scripts and this server have CopyRight 2012 (c)\n\nAnd the official Creator of this server is me ( ElMota )",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[7],true) 
GUIEditor_Memo[8] = guiCreateMemo(152,110,324,241,"The official Clan of this server is BKZ| Best Killer of Zombies Clan and is my clan , if u want be BKZ| u need 600 kills and be registered",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[8],true) 
GUIEditor_Button[2] = guiCreateButton(348,366,124,40,"Close",false,GUIEditor_Window[1]) 
GUIEditor_Checkbox[1] = guiCreateCheckBox(13,248,135,26,"Ver Skins Modificados",false,false,GUIEditor_Window[1]) 
        guiCheckBoxSetSelected(GUIEditor_Checkbox[1],true) 
        GUIEditor_Checkbox[2] = guiCreateCheckBox(13,273,135,26,"Ver Skins por Defecto",false,false,GUIEditor_Window[1]) 
        guiCheckBoxSetSelected(GUIEditor_Checkbox[2],true) 
        GUIEditor_Checkbox[3] = guiCreateCheckBox(13,248,135,26,"Show Skins Modification",false,false,GUIEditor_Window[1]) 
        GUIEditor_Checkbox[4] = guiCreateCheckBox(13,273,135,26,"Show Skins Defect",false,false,GUIEditor_Window[1]) 
  
function eta() 
  
if (source == GUIEditor_Radio[1]) then 
guiSetVisible ( GUIEditor_Memo[1], true ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[2]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], true )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[3]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], true )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[4]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], true ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[5]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], true ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[6]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], true )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[7]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], true )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[8]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], true ) 
  
elseif (source == GUIEditor_Image[2]) then 
guiSetVisible ( GUIEditor_Radio[1], true ) 
guiSetVisible ( GUIEditor_Radio[2], true )  
guiSetVisible ( GUIEditor_Radio[3], true )  
guiSetVisible ( GUIEditor_Radio[4], true ) 
guiSetVisible ( GUIEditor_Radio[5], false ) 
guiSetVisible ( GUIEditor_Radio[6], false )  
guiSetVisible ( GUIEditor_Radio[7], false )  
guiSetVisible ( GUIEditor_Radio[8], false ) 
guiSetVisible ( GUIEditor_Button[1], true ) 
guiSetVisible ( GUIEditor_Button[2], false ) 
guiSetVisible ( GUIEditor_Checkbox[2], true ) 
guiSetVisible ( GUIEditor_Checkbox[1], true ) 
guiSetVisible ( GUIEditor_Checkbox[3], false ) 
guiSetVisible ( GUIEditor_Checkbox[4], false ) 
  
elseif (source == GUIEditor_Image[3]) then 
guiSetVisible ( GUIEditor_Radio[1], false ) 
guiSetVisible ( GUIEditor_Radio[2], false )  
guiSetVisible ( GUIEditor_Radio[3], false )  
guiSetVisible ( GUIEditor_Radio[4], false ) 
guiSetVisible ( GUIEditor_Radio[5], true ) 
guiSetVisible ( GUIEditor_Radio[6], true )  
guiSetVisible ( GUIEditor_Radio[7], true )  
guiSetVisible ( GUIEditor_Radio[8], true ) 
guiSetVisible ( GUIEditor_Button[2], true ) 
guiSetVisible ( GUIEditor_Button[1], false ) 
guiSetVisible ( GUIEditor_Checkbox[3], true ) 
guiSetVisible ( GUIEditor_Checkbox[4], true ) 
guiSetVisible ( GUIEditor_Checkbox[2], false ) 
guiSetVisible ( GUIEditor_Checkbox[1], false ) 
  
  
   end 
end 
addEventHandler("onClientGUIClick",GUIEditor_Radio[1],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[2],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[3],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[4],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[5],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[6],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[7],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[8],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Image[3],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Image[2],eta,false) 
  
  
showCursor(true) 
  
function oppenz() 
        if guiGetVisible ( GUIEditor_Window[1] ) then  
                guiSetVisible ( GUIEditor_Window[1], false ) 
showCursor(false) 
  guiSetInputEnabled(false) 
        else 
                guiSetVisible ( GUIEditor_Window[1], true ) 
showCursor(true) 
  guiSetInputEnabled(true) 
   setTimer(glowbabyglow,6000,1) 
 end 
end 
bindKey("F5","down",oppenz) 
  
function close() 
if (source == GUIEditor_Button[1]) then 
guiSetVisible ( GUIEditor_Window[1], false ) 
showCursor(false) 
  guiSetInputEnabled(false) 
  
   end 
end 
  
addEventHandler("onClientGUIClick",GUIEditor_Button[1],close,false) 
  
function replaceModel()  
  txd = engineLoadTXD("Skins/cesar.txd", 106 ) 
  engineImportTXD(txd, 106) 
  dff = engineLoadDFF("Skins/cesar.dff", 106 ) 
  engineReplaceModel(dff, 106) 
end 
  
addEventHandler("onClientGUIClick",GUIEditor_Checkbox[1],replaceModel,true) 
  
function close2() 
if (source == GUIEditor_Button[2]) then 
guiSetVisible ( GUIEditor_Window[1], false ) 
showCursor(false) 
  guiSetInputEnabled(false) 
  
   end 
end 
  
addEventHandler("onClientGUIClick",GUIEditor_Button[2],close2,false) 

Link to comment

destroyElement(dff)

destroyElement(txd)

si quieres mas carros le asignas otra variable

por ejemplo

function replaceModel() 
  txd = engineLoadTXD("Skins/cesar.txd", 106 ) 
  engineImportTXD(txd, 106) 
  dff = engineLoadDFF("Skins/cesar.dff", 106 ) 
  engineReplaceModel(dff, 106) 
  txd2 = engineLoadTXD("Skins/other.txd", 105 ) 
  engineImportTXD(txd2, 105) 
  dff2 = engineLoadDFF("Skins/other.dff", 105 ) 
  engineReplaceModel(dff2, 105) 
end 

y ai despues si keres destruir el other o el cesar

destroyElement(dff2)

destroyElement(txd2)

Link to comment

buee asi le ise yakusa me funciono a la perfeccion gracias :D

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Memo = {} 
GUIEditor_Radio = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(154,130,486,425,"Panel de Ayuda",false) 
GUIEditor_Radio[1] = guiCreateRadioButton(14,115,85,42,"Comandos",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[1],"clear-normal") 
GUIEditor_Image[1] = guiCreateStaticImage(29,18,419,89,"images/logobkz.png",false,GUIEditor_Window[1]) 
GUIEditor_Radio[2] = guiCreateRadioButton(14,148,96,42,"Informacion",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[2],"clear-normal") 
GUIEditor_Memo[1] = guiCreateMemo(152,110,324,241,"Comandos :\n\n F1 : Gui Canciones / Music GUI\n F2 : Panel de Ayuda\n F3 : Panel de Spawn de vehiculos Comprados\n F4 : Shader Panel / Panel para texturas reales",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[1],true) 
GUIEditor_Radio[3] = guiCreateRadioButton(14,178,96,42,"Sobre",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[3],"clear-normal") 
GUIEditor_Radio[4] = guiCreateRadioButton(14,211,96,42,"Clan",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[4],"clear-normal") 
GUIEditor_Button[1] = guiCreateButton(348,366,124,40,"Cerrar",false,GUIEditor_Window[1]) 
GUIEditor_Memo[2] = guiCreateMemo(152,110,324,241,"Informacion Sobre el server :\n\nBuee yo ago casi todos los scripts ( ElMota ) uno que otro descargado. Aveces me ayudan con las functions en el foro del MTA",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[2],true) 
GUIEditor_Memo[3] = guiCreateMemo(152,110,324,241,"Sobre el server y la GUI :\n\nServer y GUI creada por ElMota ayudado con algunas Functions \n\n-----------------------------------------------------------------------------CopyRight 2012 (c)",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[3],true) 
GUIEditor_Memo[4] = guiCreateMemo(152,110,324,241,"Bueeno el clan del server es BKZ| Best Killer of Zombies Clan\n\nPara entrar minimo ai que tener 200 zombies kills y estar loggeado y registrado",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[4],true) 
GUIEditor_Image[2] = guiCreateStaticImage(18,367,59,30,"images/BAT.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[3] = guiCreateStaticImage(88,367,75,29,"images/shruk.png",false,GUIEditor_Window[1]) 
GUIEditor_Radio[5] = guiCreateRadioButton(14,115,85,42,"Commands",false,GUIEditor_Window[1]) 
guiRadioButtonSetSelected(GUIEditor_Radio[5],true) 
guiSetFont(GUIEditor_Radio[5],"clear-normal") 
GUIEditor_Radio[6] = guiCreateRadioButton(14,148,96,42,"Information",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[6],"clear-normal") 
GUIEditor_Radio[7] = guiCreateRadioButton(14,178,96,42,"About",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[7],"clear-normal") 
GUIEditor_Radio[8] = guiCreateRadioButton(14,211,96,42,"Clan",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Radio[8],"clear-normal") 
GUIEditor_Memo[5] = guiCreateMemo(152,110,324,241,"Sorry for my bad english :\n\nF1 : Music GUI\nF2 : Animations\nF3 : Car Panel\nF4 : Shader Panel\nF5 : Help Panel.",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[5],true) 
GUIEditor_Memo[6] = guiCreateMemo(152,110,324,241,"This is my server and my Scripts by ( ElMota )\n\nSpam = Mute or Kick\nCheats or Hacks = Kick or Bann( 1 Year )\nBugs = Kick or Bann\n-",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[6],true) 
GUIEditor_Memo[7] = guiCreateMemo(152,110,324,241,"This scripts and this server have CopyRight 2012 (c)\n\nAnd the official Creator of this server is me ( ElMota )",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[7],true) 
GUIEditor_Memo[8] = guiCreateMemo(152,110,324,241,"The official Clan of this server is BKZ| Best Killer of Zombies Clan and is my clan , if u want be BKZ| u need 600 kills and be registered",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[8],true) 
GUIEditor_Button[2] = guiCreateButton(348,366,124,40,"Close",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(19,265,126,23,"Ver Skins Modificados",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(19,297,126,23,"Show Skins defaults",false,GUIEditor_Window[1]) 
GUIEditor_Button[6] = guiCreateButton(19,297,126,23,"Ver Skins por Defecto",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(9,265,138,23,"Show Skins Modifications",false,GUIEditor_Window[1]) 
  
  
function eta() 
  
if (source == GUIEditor_Radio[1]) then 
guiSetVisible ( GUIEditor_Memo[1], true ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[2]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], true )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[3]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], true )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[4]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], true ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[5]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], true ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[6]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], true )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[7]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], true )  
guiSetVisible ( GUIEditor_Memo[8], false ) 
  
elseif (source == GUIEditor_Radio[8]) then 
guiSetVisible ( GUIEditor_Memo[1], false ) 
guiSetVisible ( GUIEditor_Memo[2], false )  
guiSetVisible ( GUIEditor_Memo[3], false )  
guiSetVisible ( GUIEditor_Memo[4], false ) 
guiSetVisible ( GUIEditor_Memo[5], false ) 
guiSetVisible ( GUIEditor_Memo[6], false )  
guiSetVisible ( GUIEditor_Memo[7], false )  
guiSetVisible ( GUIEditor_Memo[8], true ) 
  
elseif (source == GUIEditor_Image[2]) then 
guiSetVisible ( GUIEditor_Radio[1], true ) 
guiSetVisible ( GUIEditor_Radio[2], true )  
guiSetVisible ( GUIEditor_Radio[3], true )  
guiSetVisible ( GUIEditor_Radio[4], true ) 
guiSetVisible ( GUIEditor_Radio[5], false ) 
guiSetVisible ( GUIEditor_Radio[6], false )  
guiSetVisible ( GUIEditor_Radio[7], false )  
guiSetVisible ( GUIEditor_Radio[8], false ) 
guiSetVisible ( GUIEditor_Button[1], true ) 
guiSetVisible ( GUIEditor_Button[2], false ) 
guiSetVisible ( GUIEditor_Radio[11], true ) 
guiSetVisible ( GUIEditor_Radio[12], true ) 
guiSetVisible ( GUIEditor_Radio[9], false ) 
guiSetVisible ( GUIEditor_Radio[10], false ) 
guiSetVisible ( GUIEditor_Button[3], true ) 
guiSetVisible ( GUIEditor_Button[6], true ) 
guiSetVisible ( GUIEditor_Button[4], false ) 
guiSetVisible ( GUIEditor_Button[5], false ) 
  
elseif (source == GUIEditor_Image[3]) then 
guiSetVisible ( GUIEditor_Radio[1], false ) 
guiSetVisible ( GUIEditor_Radio[2], false )  
guiSetVisible ( GUIEditor_Radio[3], false )  
guiSetVisible ( GUIEditor_Radio[4], false ) 
guiSetVisible ( GUIEditor_Radio[5], true ) 
guiSetVisible ( GUIEditor_Radio[6], true )  
guiSetVisible ( GUIEditor_Radio[7], true )  
guiSetVisible ( GUIEditor_Radio[8], true ) 
guiSetVisible ( GUIEditor_Button[2], true ) 
guiSetVisible ( GUIEditor_Button[1], false ) 
guiSetVisible ( GUIEditor_Radio[9], true ) 
guiSetVisible ( GUIEditor_Radio[10], true ) 
guiSetVisible ( GUIEditor_Radio[12], false ) 
guiSetVisible ( GUIEditor_Radio[11], false ) 
guiSetVisible ( GUIEditor_Button[4], true ) 
guiSetVisible ( GUIEditor_Button[5], true ) 
guiSetVisible ( GUIEditor_Button[3], false ) 
guiSetVisible ( GUIEditor_Button[6], false ) 
  
  
   end 
end 
addEventHandler("onClientGUIClick",GUIEditor_Radio[1],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[2],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[3],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[4],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[5],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[6],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[7],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Radio[8],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Image[3],eta,false) 
addEventHandler("onClientGUIClick",GUIEditor_Image[2],eta,false) 
  
  
showCursor(true) 
  
function oppenz() 
        if guiGetVisible ( GUIEditor_Window[1] ) then  
                guiSetVisible ( GUIEditor_Window[1], false ) 
showCursor(false) 
  guiSetInputEnabled(false) 
        else 
                guiSetVisible ( GUIEditor_Window[1], true ) 
showCursor(true) 
  guiSetInputEnabled(true) 
   setTimer(glowbabyglow,6000,1) 
 end 
end 
bindKey("F5","down",oppenz) 
  
function close() 
if (source == GUIEditor_Button[1]) then 
guiSetVisible ( GUIEditor_Window[1], false ) 
showCursor(false) 
  guiSetInputEnabled(false) 
  
   end 
end 
  
addEventHandler("onClientGUIClick",GUIEditor_Button[1],close,false) 
  
function replaceModel()  
  txd = engineLoadTXD("Skins/cesar.txd", 106 ) 
  engineImportTXD(txd, 106) 
  dff = engineLoadDFF("Skins/cesar.dff", 106 ) 
  engineReplaceModel(dff, 106) 
  txd2 = engineLoadTXD("Skins/girl.txd", 196 ) 
  engineImportTXD(txd2, 196) 
  dff2 = engineLoadDFF("Skins/girl.dff", 196 ) 
  engineReplaceModel(dff2, 196) 
end 
  
addEventHandler("onClientGUIClick",GUIEditor_Button[3],replaceModel,false) 
addEventHandler("onClientGUIClick",GUIEditor_Button[5],replaceModel,false) 
  
function Destroy()  
destroyElement(dff) 
destroyElement(txd) 
destroyElement(dff2) 
destroyElement(txd2) 
end 
  
addEventHandler("onClientGUIClick",GUIEditor_Button[4],Destroy,false) 
addEventHandler("onClientGUIClick",GUIEditor_Button[6],Destroy,false) 
  
  
function close2() 
if (source == GUIEditor_Button[2]) then 
guiSetVisible ( GUIEditor_Window[1], false ) 
showCursor(false) 
  guiSetInputEnabled(false) 
  
   end 
end 
  
addEventHandler("onClientGUIClick",GUIEditor_Button[2],close2,false) 

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...