Jump to content

Mega9

Members
  • Posts

    216
  • Joined

  • Last visited

Everything posted by Mega9

  1. Mega9

    Neki biznis MTA SRV

    Još kasnije se javljam, hostati možeš. bez laga ne možeš, a ako si iole ozbiljan server owner nećeš hostati čitav server na shared VPS od 5€ :D
  2. Mega9

    Neki biznis MTA SRV

    Prijatelju s 30 (necega) jedva hosting normalan nabavis, a o gamemodeu da ne pricamo.
  3. You then use removePedFromVehicle before setting player's position.
  4. Make sure you are applying it to all 3 weapon skill levels "pro", "std" and "poor" Because if you have defaultstats running on your server, you probably have "pro" skill level set.
  5. addEventHandler("onResourceStart", getRootElement(), trig) Ovaj getRootElement() će ti executati ovu funkciju kada se bilo koja skripta upali, da bi to spriječio koristi resourceRoot. Također, kickPlayer ne možeš koristiti na klijentu, outputChatBox na klijentu ne treba player argument (uvijek je localPlayer). Brzinski sam preletio, probaj ovo, ako ne radi, mora bar error izbaciti GUIEditor = { label = {} } login = guiCreateWindow(0.34, 0.23, 0.40, 0.30, "Unesite vasu lozinku da biste nastavili", true) guiSetVisible(login, false) guiWindowSetSizable(login, false) pw1 = guiCreateEdit(111, 136, 176, 17, "", false, login) guiSetProperty(pw1, "MaskText", "True") guiEditSetMasked(pw1, true) pw = guiCreateButton(108, 195, 43, 15, "Nastavi", false, login) pw2 = guiCreateButton(244, 195, 43, 15, "Izlaz", false, login) GUIEditor.label[1] = guiCreateLabel(412, 245, 318, 39, "Unesite vasu lozinku da biste nastavili registraciju", false) guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true) addEvent("pJoin", true) addEventHandler("pJoin", root, function() guiSetVisible(login, true) guiSetVisible(pw1, true) guiSetVisible(pw2, true) guiSetVisible(pw, true) guiSetVisible(GUIEditor.label[1], true) otputConsole("Pjoin pozvan") end ) function ClickLeftBut(button, state) if(button == "left" and state == "up") then if(guiGetText(pw1) == nil or guiGetText(pw1) == '') then outputChatBox("Niste uneli pw", 231, 217, 176, false) else spawnPlayer(spawnX, spawnY, spawnZ) setCameraTarget(getLocalPlayer()) outputChatBox("Welcome to My Server", getLocalPlayer()) end end end addEventHandler("onPlayerGUIClick", ClickLeftBut) function ClickRightBut(button, state) if(button == "left" and state == "up") then guiSetVisible(login, false) guiSetVisible(pw1, false) guiSetVisible(pw2, false) guiSetVisible(pw, false) guiSetVisible(GUIEditor.label[1], false) kickPlayer(getRootElement(), "Iskljucili ste registraciju") end end addEventHandler("onPlayerGUIClick", ClickLeftBut)
  6. Javi se da dobiješ medalju. Freeroam trenutno nije u prvom planu, RPG se radi aktivno jer će upravo on biti najveći dio servera.
  7. Oće https://www.facebook.com/BalkanUnited-MTA-1716746125283619/
  8. Mega9

    Timer

    Then I suggest that you find a section that is designated for your region and ask there: https://forum.multitheftauto.com/forum/94-other-languages/
  9. Mega9

    Timer

    Because you are passing an invalid player element with setTimer(timer,2000,0,source) where is 'source' player element defined? And that's not the only thing wrong in your code.
  10. Radim ja Balkan community s jednim kolegom. srpija do dokya
  11. Može, režem se žiletima svakodnevno pa zašto ne i to.
  12. Napusti Larinu igraonicu.
  13. Mega9

    MTA lag on menu

    Happens to me as well on 2 different machines running Windows 10, especially when first opening Options. Can provide MTADiag if needed to help further inspect the cause.
  14. Your posts did make me wonder, was this really the case, so I run a little test of my own to prove or disprove the theory. I have no idea how it's done in MTA's source code, nor did I bother to look, but I took it upon myself to find out through real example. Testing environment setup as follows: Latest editor definitions from nightly.mtasa, no edits or tweaks whatsoever Client&Server build: v1.5.3-release-11225 Running resource during the time of testing: none, apart the resource being tested A map with random 12k objects No world movement, no camera movement, MTA minimized Lua map converted with OP's website, without blips attribute (I also highly suggest removing the said feature as it may cause significant changes in performance & loading times) & ran client side Server FPS Limit: 60 Results: .map: .lua Conclusion: .map is just fine as it is, but .lua allows better manipulation, the very important one being able to load a .lua map with async based on priority, and minimizing client side creation lag or prioritizing other server objects over other less important things Hope this clears up some of the confusion. Keep in mind this was a very basic test without much fiddling around, if someone could confirm it by doing their own please do.
  15. Mega9

    Need a Job?

    I do my own management, thank you @xeon17
×
×
  • Create New...