SnoopCat Posted April 12, 2011 Author Posted April 12, 2011 wow why i didnt see them ! VISIT TSW RACING SERVER http://tswracing.net/
Moderators Citizen Posted April 13, 2011 Moderators Posted April 13, 2011 Citizen, i do know what he said, since i'am Argentinian. I knew that you didn't know what he said --' so I translated it for you ( I'm french ) The rEvolution is coming ...
Castillo Posted April 13, 2011 Posted April 13, 2011 Uhm, i think you didn't understand me, i said "i do know what he said" no "i don't know what he said" San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Moderators Citizen Posted April 13, 2011 Moderators Posted April 13, 2011 Yeah my bad ( I'm french ) The rEvolution is coming ...
SnoopCat Posted April 17, 2011 Author Posted April 17, 2011 hey hello again i have problems whit the gui again, they dont open when i push F7 can someone help me plz here its client and server side client: enabled = true GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(150,185,457,363,"Gui De Sonidos",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(21,32,99,35,"Fail",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(19,79,102,34,"ayuwoki",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(20,130,100,33,"Hola",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(18,177,100,34,"Cuack",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(19,219,100,34,"Mario",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(21,261,100,34,"Disco",false,GUIEditor_Window[1]) GUIEditor_Button[7] = guiCreateButton(133,32,100,34,"Membrillo",false,GUIEditor_Window[1]) GUIEditor_Button[8] = guiCreateButton(134,79,100,34,"aweonao",false,GUIEditor_Window[1]) GUIEditor_Button[9] = guiCreateButton(133,128,100,34,"vacio",false,GUIEditor_Window[1]) GUIEditor_Button[10] = guiCreateButton(133,178,100,34,"vacio",false,GUIEditor_Window[1]) GUIEditor_Button[11] = guiCreateButton(131,226,100,34,"vacio",false,GUIEditor_Window[1]) GUIEditor_Button[12] = guiCreateButton(131,270,100,34,"vacio",false,GUIEditor_Window[1]) GUIEditor_Button[13] = guiCreateButton(9,309,435,45,"CERRAR",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(35,-668,5,600,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(271,37,165,257,"No agas Spam ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) guiSetFont(GUIEditor_Label[1],"sa-header") GUIEditor_Image[1] = guiCreateStaticImage(243,134,204,120,"images/mtalogo.png",false,GUIEditor_Window[1]) addEventHandler("onClientGUIClick",getRootElement(), function () if (source == GUIEditor_Button[13]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) elseif (source == GUIEditor_Button[1]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"fail.mp3") elseif (source == GUIEditor_Button[2]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"ayuwoki.mp3") elseif (source == GUIEditor_Button[3]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"hola.mp3") elseif (source == GUIEditor_Button[4]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"cuack.mp3") elseif (source == GUIEditor_Button[5]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"mario.mp3") elseif (source == GUIEditor_Button[6]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"disco_pogo.mp3") elseif (source == GUIEditor_Button[7]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"membrillo.mp3") elseif (source == GUIEditor_Button[8]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"aweonao.mp3") enabled = false setTimer(setState,60000,1) else outputChatBox("Solo Puedes Hacerlo cada 60 Segundos",255,0,0) end end end) function setState() enabled = true end addEvent("returnSound",true) addEventHandler("returnSound",getRootElement(), function (sound) playSound("files/".. tostring(sound),false) end) bindKey("F7","down",function () showCursor(not isCursorShowing()) guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) end) Server: addEvent("sendSound",true) addEventHandler("sendSound",getRootElement(), function (sound) triggerClientEvent("returnSound",getRootElement(),sound) outputChatBox("#FF0000".. getPlayerName(source) .."#FFFF00 Ha Usado un Sonido De la Gui [F7]",getRootElement(),255,255,0,true) end) VISIT TSW RACING SERVER http://tswracing.net/
proracer Posted April 17, 2011 Posted April 17, 2011 Try this: enabled = true GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(150,185,457,363,"Gui De Sonidos",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(21,32,99,35,"Fail",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(19,79,102,34,"ayuwoki",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(20,130,100,33,"Hola",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(18,177,100,34,"Cuack",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(19,219,100,34,"Mario",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(21,261,100,34,"Disco",false,GUIEditor_Window[1]) GUIEditor_Button[7] = guiCreateButton(133,32,100,34,"Membrillo",false,GUIEditor_Window[1]) GUIEditor_Button[8] = guiCreateButton(134,79,100,34,"aweonao",false,GUIEditor_Window[1]) GUIEditor_Button[9] = guiCreateButton(133,128,100,34,"vacio",false,GUIEditor_Window[1]) GUIEditor_Button[10] = guiCreateButton(133,178,100,34,"vacio",false,GUIEditor_Window[1]) GUIEditor_Button[11] = guiCreateButton(131,226,100,34,"vacio",false,GUIEditor_Window[1]) GUIEditor_Button[12] = guiCreateButton(131,270,100,34,"vacio",false,GUIEditor_Window[1]) GUIEditor_Button[13] = guiCreateButton(9,309,435,45,"CERRAR",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(35,-668,5,600,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(271,37,165,257,"No agas Spam ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) guiSetFont(GUIEditor_Label[1],"sa-header") GUIEditor_Image[1] = guiCreateStaticImage(243,134,204,120,"images/mtalogo.png",false,GUIEditor_Window[1]) addEventHandler("onClientGUIClick",getRootElement(), function () if (source == GUIEditor_Button[13]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) elseif (source == GUIEditor_Button[1]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"fail.mp3") elseif (source == GUIEditor_Button[2]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"ayuwoki.mp3") elseif (source == GUIEditor_Button[3]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"hola.mp3") elseif (source == GUIEditor_Button[4]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"cuack.mp3") elseif (source == GUIEditor_Button[5]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"mario.mp3") elseif (source == GUIEditor_Button[6]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"disco_pogo.mp3") elseif (source == GUIEditor_Button[7]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"membrillo.mp3") elseif (source == GUIEditor_Button[8]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"aweonao.mp3") enabled = false setTimer(setState,60000,1) else outputChatBox("Solo Puedes Hacerlo cada 60 Segundos",255,0,0) end end end) function setState() enabled = true end addEvent("returnSound",true) addEventHandler("returnSound",getRootElement(), function (sound) playSound("files/".. tostring(sound),false) end) function bindIt ( ) bindKey ( 'F7', 'down', showIt ) end addEventHandler ( 'onClientResourceStart', resourceRoot, bindIt ) function showIt ( ) isVisible = guiGetVisible ( GUIEditor_Window[1] ) if (isVisible) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) end if (not isVisible) then guiSetVisible ( GUIEditor_Window[1], true ) showCursor ( true ) end end
SnoopCat Posted April 17, 2011 Author Posted April 17, 2011 Still not working VISIT TSW RACING SERVER http://tswracing.net/
Castillo Posted April 18, 2011 Posted April 18, 2011 enabled = true GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(150,185,457,363,"Gui De Sonidos",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(21,32,99,35,"Fail",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(19,79,102,34,"ayuwoki",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(20,130,100,33,"Hola",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(18,177,100,34,"Cuack",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(19,219,100,34,"Mario",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(21,261,100,34,"Disco",false,GUIEditor_Window[1]) GUIEditor_Button[7] = guiCreateButton(133,32,100,34,"Membrillo",false,GUIEditor_Window[1]) GUIEditor_Button[8] = guiCreateButton(134,79,100,34,"aweonao",false,GUIEditor_Window[1]) GUIEditor_Button[9] = guiCreateButton(133,128,100,34,"vacio",false,GUIEditor_Window[1]) GUIEditor_Button[10] = guiCreateButton(133,178,100,34,"vacio",false,GUIEditor_Window[1]) GUIEditor_Button[11] = guiCreateButton(131,226,100,34,"vacio",false,GUIEditor_Window[1]) GUIEditor_Button[12] = guiCreateButton(131,270,100,34,"vacio",false,GUIEditor_Window[1]) GUIEditor_Button[13] = guiCreateButton(9,309,435,45,"CERRAR",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(35,-668,5,600,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(271,37,165,257,"No agas Spam ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) guiSetFont(GUIEditor_Label[1],"sa-header") GUIEditor_Image[1] = guiCreateStaticImage(243,134,204,120,"images/mtalogo.png",false,GUIEditor_Window[1]) addEventHandler("onClientGUIClick",getRootElement(), function () if (source == GUIEditor_Button[13]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) elseif (source == GUIEditor_Button[1]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"fail.mp3") setTimer(setState,60000,1) else outputChatBox("Solo Puedes Hacerlo cada 60 Segundos",255,0,0) end elseif (source == GUIEditor_Button[2]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"ayuwoki.mp3") setTimer(setState,60000,1) else outputChatBox("Solo Puedes Hacerlo cada 60 Segundos",255,0,0) end elseif (source == GUIEditor_Button[3]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"hola.mp3") setTimer(setState,60000,1) else outputChatBox("Solo Puedes Hacerlo cada 60 Segundos",255,0,0) end elseif (source == GUIEditor_Button[4]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"cuack.mp3") setTimer(setState,60000,1) else outputChatBox("Solo Puedes Hacerlo cada 60 Segundos",255,0,0) end elseif (source == GUIEditor_Button[5]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"mario.mp3") setTimer(setState,60000,1) else outputChatBox("Solo Puedes Hacerlo cada 60 Segundos",255,0,0) end elseif (source == GUIEditor_Button[6]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"disco_pogo.mp3") setTimer(setState,60000,1) else outputChatBox("Solo Puedes Hacerlo cada 60 Segundos",255,0,0) end elseif (source == GUIEditor_Button[7]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"membrillo.mp3") setTimer(setState,60000,1) else outputChatBox("Solo Puedes Hacerlo cada 60 Segundos",255,0,0) else outputChatBox("Solo Puedes Hacerlo cada 60 Segundos",255,0,0) end elseif (source == GUIEditor_Button[8]) then if enabled then enabled = false triggerServerEvent("sendSound",getLocalPlayer(),"aweonao.mp3") setTimer(setState,60000,1) else outputChatBox("Solo Puedes Hacerlo cada 60 Segundos",255,0,0) end end end) function setState() enabled = true end addEvent("returnSound",true) addEventHandler("returnSound",getRootElement(), function (sound) playSound("files/".. tostring(sound),false) end) function bindIt ( ) bindKey ( 'F7', 'down', showIt ) end addEventHandler ( 'onClientResourceStart', resourceRoot, bindIt ) function showIt ( ) isVisible = guiGetVisible ( GUIEditor_Window[1] ) if (isVisible) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) end if (not isVisible) then guiSetVisible ( GUIEditor_Window[1], true ) showCursor ( true ) end end San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
SnoopCat Posted April 18, 2011 Author Posted April 18, 2011 working now thx solid VISIT TSW RACING SERVER http://tswracing.net/
Castillo Posted April 18, 2011 Posted April 18, 2011 No problem. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now