Jump to content

Wes

Members
  • Posts

    76
  • Joined

  • Last visited

Everything posted by Wes

  1. Uhm, so how could I make to move the camera between some positions? Cause I don't really understand this part
  2. Oh my god dude, you helped a lot, thank you very much! Another question: Could you tell me if it is possible to like put the camera into a position, then after 15 seconds it would fly over to another camera position. So not just change the screen but like slowly fly away. Thank you for your help
  3. The script itself GUIEditor = { tabpanel = {}, window = {} } function showLoginPanel() GUIEditor.window[1] = guiCreateWindow(457, 348, 603, 277, "MTAProject Bejelentkezés & Regisztráció", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.tabpanel[1] = guiCreateTabPanel(27, 27, 544, 229, false, GUIEditor.window[1]) tabLogin = guiCreateTab("Bejelentkezés", GUIEditor.tabpanel[1]) username = guiCreateEdit(144, 25, 242, 30, "Felhasználónév", false, tabLogin) password = guiCreateEdit(144, 99, 242, 30, "Jelszó", false, tabLogin) bejelentkezes = guiCreateButton(144, 146, 236, 44, "Bejelentkezés", false, tabLogin) tabRegister = guiCreateTab("Regisztráció", GUIEditor.tabpanel[1]) regusername = guiCreateEdit(147, 23, 252, 30, "Felhasználónév", false, tabRegister) regpassword = guiCreateEdit(147, 77, 252, 30, "Jelszó", false, tabRegister) register = guiCreateButton(150, 126, 249, 49, "Regisztráció", false, tabRegister) end addEventHandler("onPlayerJoin", getRootElement(), showLoginPanel) the meta.xml "Teo" description="Login Panel" name="Login Panel" version =" 1.0.0" /> The debugscript shows nothing interesting.
  4. So I made a GUI that should appear when you log in. It has no functions yet, it'll be a login panel But whenever I start the server, it is just a black screen, and nothing else, can someone help me?
  5. Alright I got it now, thank you very much Why is that when I start the server it just a black screen, the login screen doesnt appear... How can I do that so when a player joins the login screen appears, and the camera is pointing in a way?
  6. Alright, okey And in condition flow, do I have to add the word "end" after every statement? Like this function regisztracio(player, email, passReg, passAReg) registered = getElementData(player, "registered") if email and passReg and passAReg then if not (registered) then accountAdded = addAccount(email, pass) if (accountAdded) then outputChatBox("Sikeresen regisztráltál a szerverre! Most jelentkezz be!") else outputChatBox("Nem sikerült a regisztráció!") end else outputChatBox("A megadott E-mail cím már regisztrálva van!") end else outputChatBox("Add meg az E-mail címet és a jelszót") end end end addEvent("regisztracioFunction", true) addEventHandler("regisztracioGomb", root, regisztracio) I dont know if this code works, I havent tested it yet, but where do I need to use the word "end"?
  7. Uh alright And in the loop, for like in the example, can I use anything like data? or is it something like a data type? OR can I write anything there? I found a nice gui editor, so I wont have problems with the GUI-s anymore. I meant about the client / serverside that for example I have to trigger something? And if yes, how? Could you make a simple example, like a function in clientside and then a serverside? I'd appreciate that, and thank you for these informations, it clarifies my brain a lot
  8. Hey! I just recently started working with LUA in a deeper view. I have a few questions, if you could answer them that 'd be great. 1. When do you need to use getRootElement(), or getThisResource() ? 2. How can I use the for loop? I understand what it does, but its "build" is not understandable for me. 3. Is there a way to easily create GUI-s without messing with the Width, Height? 4. Why do I need to add that "command" argument in a function? like function giveMoney(thePlayer, command, amount) 5. How can I use functions in other files? So like I have a loginPlayer() function in login.lua, and I want to use it like in xy.lua? 6. nil means that something is empty? So if theres an argument that you have to add, this is how you can check if it is empty? 7. What operator is ~ this one? Cause I've never seen it anywhere else. 8. I don't really understand the sync between a Client and a Server side script. For example the triggerClientEvent and the triggerServerEvent. 9. I've seen something like that in the first part of the script, the guy used local to set his variables. But later on, he left the local stuff and he just set the variables without that. And it was not for the same stuff, so I think he wasnt changing the local variables value. Thanks for the answers, and sorry for all these noob questions
  9. Hey! I have a problem. I'm playing on DayZ mod server. So I have a gps ( it is needed to see the radar) but it doesnt appears to me But when I am aiming, it is suddenly there. Is there any solution, so I can fix this bug? Screens: So here it is invincible Here is when I am aiming Thanks for the help.
  10. Nah, it doesn't work at all. Can anybody help me with this? The thing is that I want to add +1 hour after every 3600000 miliseconds...
  11. yeah, that might be the problem, im gonna check it out, thanks for this hint. Working, thanks for the help again.
  12. Hey. I have a script, which is supposed to set the server time to real time. So e.g if it's 22:00 in the real life (according to the server computer's time settings) then it supposed to set the ingame time to 21:00, to have the nighttime.. Unfortunatelly, it doesn't do that. I've added it to Admin ACL, but that doesn't work aswell... Any solution for this? I'm sorry that I'm opening so much topic, but this is the only place where the people are willing to help in these stuff. So here is the XML: "Benxamix2" version="1.5" type="script" name="New Real Time Script" /> "*initialHour" value="19" friendlyname="Initial Hour" accept="0-23" desc="The hour that the game inits with when starting this resource." /> "*initialMinute" value="30" friendlyname="Initial Minute" accept="0-60" desc="The minute that the game inits with when starting this resource." /> "*minuteDelay" value="60000" friendlyname="Minute Delay" accept="0-9999000" desc="How much time does minutes delay its advance in miliseconds." /> local minuteDelay = get ("realtime.minuteDelay") setMinuteDuration (minuteDelay) local hour = get ("realtime.initialHour") local minute = get ("realtime.initialMinute") setTime (hour,minute) Thanks for your support anyway, I hope there are some genius out there who has some spare time and willing to help the noob people
  13. Wes

    global chat problem

    Thank you Mr.Pres[T]ege, you are da best!
  14. Wes

    global chat problem

    Nah, doesn't work.
  15. Hy! I have a global chat resource, but I think it has wrong handler. You can only press B when the resource is restarted. So IF I'm online, and I restart it, it works fine. But when I log in, or someone logs in to the server, it doesnt work.. Here is the code: function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ); local name = getPlayerName(thePlayer); for _,v in ipairs(getElementsByType("player")) do outputChatBox("#FF0000[GLOBAL]#00FF00"..name..": #FFFFFF"..message,v, 255, 255, 255, true) end end addCommandHandler("global", globalMessage); addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() for index,player in pairs(getElementsByType("player")) do bindKey(player,"b", "down", "chatbox", "global"); end end ) I think it has something to do with the handlers, but I'm not really into these kind of stuff.
  16. Now I have issues with the bus. I installed this mod: http://www.gtagaming.com/downloads/gta- ... -mods/5695 But it doesn't change the bus The file name is bus.txd, bus.dff It downloads the file, but it doesnt apply it on the bus.
  17. Thank you it works now!
  18. I've converted it to .wav from mp4, it still doesn't work...
  19. then what format should I convert it to? .waw or what?
  20. Hey! I want some ambient sound on my zombie server. I made the sound cutting, so every ambient is in other .mp4 file Here is the code. local sounds = {" sounds/ambient0.mp4, sounds/ambient1.mp4, sounds/ambient2.mp4, sounds/ambient3.mp4, sounds/ambient4.mp4, sounds/ambient5.mp4, sounds/ambient6.mp4, sounds/ambient7.mp4, sounds/ambient8.mp4, sounds/ambient9.mp4, sounds/ambient10.mp4, sounds/ambient11.mp4, sounds/ambient12.mp4, sounds/ambient13.mp4, sounds/ambient14.mp4, sounds/ambient15.mp4, sounds/ambient16.mp4, sounds/ambient17.mp4, sounds/ambient18.mp4, sounds/ambient19.mp4, sounds/ambient20.mp4, sounds/ambient21.mp4, sounds/ambient22.mp4, sounds/ambient23.mp4, sounds/ambient24.mp4, sounds/ambient25.mp4, sounds/ambient26.mp4, sounds/ambient27.mp4, sounds/ambient28.mp4, sounds/ambient29.mp4, sounds/ambient30.mp4, sounds/ambient31.mp4, sounds/ambient32.mp4, sounds/ambient33.mp4, sounds/ambient34.mp4 "} function playsound() playSound(sounds[math.random(1, #sounds)]) setSoundVolume(sound, 300.0) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),playsound) setTimer(playsound, 60000,0) Here is the XML: <meta> <info author="Yakuza" type="script" description="Ambient Sounds" version="1.0.1"/> <script src="ambience.lua" type="client" /> <file src="sounds/ambient0.mp4" /> <file src="sounds/ambient1.mp4" /> <file src="sounds/ambient2.mp4" /> <file src="sounds/ambient3.mp4" /> <file src="sounds/ambient4.mp4" /> <file src="sounds/ambient5.mp4" /> <file src="sounds/ambient6.mp4" /> <file src="sounds/ambient7.mp4" /> <file src="sounds/ambient8.mp4" /> <file src="sounds/ambient9.mp4" /> <file src="sounds/ambient10.mp4" /> <file src="sounds/ambient11.mp4" /> <file src="sounds/ambient12.mp4" /> <file src="sounds/ambient13.mp4" /> <file src="sounds/ambient14.mp4" /> <file src="sounds/ambient15.mp4" /> <file src="sounds/ambient16.mp4" /> <file src="sounds/ambient17.mp4" /> <file src="sounds/ambient18.mp4" /> <file src="sounds/ambient19.mp4" /> <file src="sounds/ambient20.mp4" /> <file src="sounds/ambient21.mp4" /> <file src="sounds/ambient22.mp4" /> <file src="sounds/ambient23.mp4" /> <file src="sounds/ambient24.mp4" /> <file src="sounds/ambient25.mp4" /> <file src="sounds/ambient26.mp4" /> <file src="sounds/ambient27.mp4" /> <file src="sounds/ambient28.mp4" /> <file src="sounds/ambient29.mp4" /> <file src="sounds/ambient30.mp4" /> <file src="sounds/ambient31.mp4" /> <file src="sounds/ambient32.mp4" /> <file src="sounds/ambient33.mp4" /> <file src="sounds/ambient34.mp4" /> </meta> And here is the error message I get when I start the resource: BASS ERROR 2 in LoadMedia path:C:\Program Files (x86)\MTA San Andreas 1.3\mods\deathmatch\resources\ambient\ sounds\ambient0.mp4, sounds\ambient1.mp4, sounds\ambient2.mp4, sounds\ambient3.mp4, sounds\ambient4.mp4, sounds\ambient5.mp4, sounds\ambient6.mp4, sounds\ambient7.mp4, sounds\ambient8.mp4, sounds\ambient9.mp4, sounds\ambient10.mp4, sounds\ambient11.mp4, sounds\ambient12.mp4, sounds\ambient13.mp4, sounds\ambient14.mp4, sounds\ambient15.mp4, sounds\ambient16.mp4, sounds\ambient17.mp4, sounds\ambient18.mp4, sounds\ambient19.mp4, sounds\ambient20.mp4, sounds\ambient21.mp4, sounds\ambient22.mp4, sounds\ambient23.mp4, sounds\ambient24.mp4, sounds\ambient25.mp4, sounds\ambient26.mp4, sounds\ambient27.mp4, sounds\ambient28.mp4, sounds\ambient29.mp4, sounds\ambient30.mp4, sounds\ambient31.mp4, sounds\ambient32.mp4, sounds\ambient33.mp4, sounds\ambient34.mp4 3d:0 loop:0
  21. Wes

    draw distance

    Alright It's good now. I've installed a resource skybox when I started the server, and that reduced the distance...
  22. Noope. Doesn't even loads... I've made everything just the way you said... I've installed like 20 mods already, but sanchez doesnt work... no error message, everything works fine but it doesnt download the file and doesnt apply the model on the bike.
  23. Hey! Somehow the sanchez mod doesn't work... How to fix this?
×
×
  • Create New...