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 :
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 :
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)