Jump to content

koeno100

Members
  • Content Count

    53
  • Joined

  • Last visited

Community Reputation

1 Neutral

About koeno100

  • Rank
    Snitch

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. koeno100

    speaker

    Use getPedBonePosition attachElements First get the position of the spine, spawn the speaker on that position and then attach the box to your player using attachElements
  2. koeno100

    onMarkerHit

    Hi guys! So I think I've read about this problem a year ago but haven't scripted in a while so I'm just asking it again: When I creating either a cylinder or a checkpoint marker with a radius of roughly 100 and use onMarkerHit, the event already gets triggered when I'm getting closer than around 5 - 10 meters from the marker away. How can I make the event work that it only triggers when I'm actually inside the marker, and not when I'm just outside of it?
  3. local imageX = (dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont )-s(4))*1.4 dxDrawText( countryName, topX+theX+s(6)+imageX, y+s(1), topX+x+s(1+column.width), y+s(11)+dxGetFontHeight( fontscale(contentFont, scoreboardScale), contentFont ), tocolor( 0, 0, 0, a or 255 ), fontscale(contentFont, s(1)), contentFont, "left", "top", true, false, drawOverGUI ) dxDrawText( countryName, topX+theX+s(5)+imageX, y, topX+x+s(column.width), y+dxGetFontHeight( fontscale(cont
  4. Hey guys! I have a problem with the open source MTA:DayZ script created by Marwin W. I've disabled the DX chatbox that was included into the script and enabled the original MTA chatbox, yet the commands don't work. I've searched through the file for onPlayerChat events and stuff like that but didn't find anything like that. I've made a custom command that should output a message, which didn't, so for some reason the script cancels the output. Anyone with experience with the script know where to disable this? (Since there are like 800 files in the script)
  5. I did "isBrowserDomainBlocked("http://google.com")" and it returnd true, so Google is not supported
  6. I've tried it out, and it does work on other URLs, I just think Google isn't supported or something...
  7. Oh sorry If you do /debugscript 3, does it show any errors? ANd maybe silly, but are you sure you're using 1.5? It worked for me EDIT: Try using http://www.google.com instead of http://google.com
  8. local screenW, screenH = guiGetScreenSize() local window = guiCreateWindow((screenW - 1024) / 2, (screenH - 768) / 2, 1024, 768, "Web browser", false) local browser = guiCreateBrowser(9, 50, 987, 645, false, false, false, window) local theBrowser = guiGetBrowser(browser) addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, "http://google.com") end )
  9. function cancelColShapeHit() cancelEvent() end addEventHandler("onColShapeHit", getRootElement(), cancelColShapeHit) And you mean you want to prevent him using weapons in the colshape?
  10. Okay that works now, I'm using "onClientCharacter" but how do I script the backspace? Like, I can use "onClientKey" but then you have to press backspace every time you want to remove a character. How can I instead make it that if you hold the backspace button, it'll keep removing characters till you release it?
  11. Hi guys, I own a server and I've recently switched hosts because the old host was crap. Now, and I've seen this in other server, what function do I use so people get automatically forwarded to the new server IP once they join the old server?
  12. Hey guys! I'm creating a custom DX login panel, using onClientKey to check if a player is typing in a textbox etc. Everything is working, except for that I want to override all binds, just like guiSetInputMode does... But I can't use that function now of course... Does anyone have an idea how I could do this?
  13. Can't I make the server respawn all vehicles at once, like some RPG servers do? (They have even more vehicles)
  14. Hi guys! I've made this vehicle system, and every 5 minutes, it respawns all the vehicles in the server. Every vehicle is assigned with an ID, and if they're not in use, they will be respawned using a loop. For some reason, at a certain moment (Usually overnight) the server gives a "Long Execution" warning and causes the server to crash. Here is the log: [2015-06-02 10:42:35] INFO: Respawned vehicle with ID 1 [2015-06-02 10:42:35] INFO: Respawned vehicle with ID 2 [2015-06-02 10:42:35] INFO: Respawned vehicle with ID 3 [2015-06-02 10:42:35] INFO: Respawned vehicle with ID 4 [2015-06-0
×
×
  • Create New...