-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Well, make two events then...?
-
You can't, maybe you could do some trick to trigger it from server to client anyway
-
Well, if you only have the Map part, you need the scripting part which is the hardest
-
kieren, how can he be sure that you won't steal his scripts or whatever he puts on it?
-
Creating an RPG would take alot of time, i think you should at least pay him, admin rights aren't enough. P.S: What kind of RPG? Realistic?
-
--client side GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(3,178,261,208,"Uebungs Menu",false) GUIEditor_Button[1] = guiCreateButton(12,29,119,45,"Zur Zentrale",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(12,84,119,48,"Zu einem Ort",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(133,156,102,28,"Wohin ?",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) GUIEditor_Edit[1] = guiCreateEdit(11,140,121,43,"",false,GUIEditor_Window[1]) addEventHandler("onClientGUIClick",getRootElement(), function () if (source == GUIEditor_Button[1]) then local text = guiGetText(GUIEditor_Edit[1]) triggerServerEvent("sendText",getLocalPlayer(),text) elseif (source == GUIEditor_Button[2]) then local text = guiGetText(GUIEditor_Edit[1]) triggerServerEvent("sendText",getLocalPlayer(),text) end end) --server side addEvent("sendText",true) addEventHandler("sendText",getRootElement(), function (text) outputChatBox(tostring(text),getRootElement(),255,0,0) end)
-
Well, firstly you need to add it to meta.xml, and then you use this: playSound("alarm.mp3",false)
-
I see, well, you should post some screenshots of the incoming server maybe
-
What is this? a server or what? since this section is done to advertise servers. If it is a server you should provide the server IP & Port.
-
No problem, i'am bored, so you can keep asking
-
Well, you must add another button or a command, command example of how to do it: addCommandHandler("close", function () guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end)
-
GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(782,176,240,493,"Alarm Menu",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(108,210,5,5,"",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(22,56,196,55,"Stufe 5",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(22,128,198,56,"Stufe 4",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(23,201,197,55,"Stufe 3",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(22,274,198,56,"Stufe 2",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(22,344,199,57,"Stufe 1",false,GUIEditor_Window[1]) GUIEditor_Button[7] = guiCreateButton(131,425,87,38,"Abbruch",false,GUIEditor_Window[1]) GUIEditor_Button[8] = guiCreateButton(24,425,86,38,"Info (Chatbox)",false,GUIEditor_Window[1]) function buttonClicks() if (source == GUIEditor_Button[1]) then outputChatBox("You have pressed the button 1") elseif (source == GUIEditor_Button[2]) then outputChatBox("You have pressed the button 2") end end addEventHandler("onClientGUIClick",getRootElement(),buttonClicks)
-
Well, the client can edit XML files, i've done it before, and this is how my sound player works, you must add your songs to the "songs" folder then add to .xml file and then it will load them.
-
Uhm, i think you didn't understand me, i said "i do know what he said" no "i don't know what he said"
-
Oh, cool, sounds great. Good luck with it & keep the good work
-
createMarker setElementInterior setElementDimension You must set the interior & dimension of the exit marker also.
-
I'am not sure of understand this so well, do you mean like a Admin panel but without being in-game?
-
Ah, i found my error, i didn't put the folder, so the sounds can't be played because they doesn't exist at root directory, here's the fixed code. --client side 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,"Boton1",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(19,219,100,34,"Boton2",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(21,261,100,34,"Boton3",false,GUIEditor_Window[1]) GUIEditor_Button[7] = guiCreateButton(133,32,100,34,"Boton4",false,GUIEditor_Window[1]) GUIEditor_Button[8] = guiCreateButton(134,79,100,34,"Boton5",false,GUIEditor_Window[1]) GUIEditor_Button[9] = guiCreateButton(133,128,100,34,"Boton6",false,GUIEditor_Window[1]) GUIEditor_Button[10] = guiCreateButton(133,178,100,34,"Boton7",false,GUIEditor_Window[1]) GUIEditor_Button[11] = guiCreateButton(131,226,100,34,"Boton8",false,GUIEditor_Window[1]) GUIEditor_Button[12] = guiCreateButton(131,270,100,34,"Boton9",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 triggerServerEvent("sendSound",getLocalPlayer(),"Fail.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 side 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)
-
Well, maybe, they made it then.
-
There are many in the community center, just search for them. https://community.multitheftauto.com/
-
Of course it is possible, i've made a Sound player using 1.1 functions with this feature.
-
Citizen, i do know what he said, since i'am Argentinian. Back on topic: I will be testing the code when i have some free time.
-
Ok, i've found the resource name into one of my backups, here's the link to the resource into the community center: https://community.multitheftauto.com/index.php?p= ... ils&id=299
-
Yup, it is possible. You must give them different PORTS, and also don't put the IP address on mtaserver.conf.
