Jump to content

qaisjp

Retired Staff
  • Posts

    2,344
  • Joined

  • Days Won

    9

Everything posted by qaisjp

  1. should be " local root = getResourceConfig("/folder1/folder2/locations.xml") " I think. Just replace the folder1 and folder2 (and so on) with your folders and subfolders.
  2. qaisjp

    Help me plis!

    ..and that's why only a lady would point that out omg man...that script i sent you should work, it works perfectly on my server. the client: addEventHandler("onClientRender", getRootElement(), function() local screenWidth, screenHeight = guiGetScreenSize() local sx,sy = getScreenFromWorldPosition (pointX,pointY,pointZ) local cameraX,cameraY,cameraZ = getCameraMatrix() if sx then if getDistanceBetweenPoints3D(cameraX,cameraY,cameraZ,3313.59765625, -2451.5554199219, 47.380950927734) <= 10 then dxDrawRectangle ( sx - 100, sy + 14.5, screenWidth/7.5 + 200, screenHeight/30 + 20 ,tocolor ( 0,0,0,255 ) ) dxDrawText("Pro", sx - 100, sy, screenWidth, screenHeight,tocolor ( 255,255,255,255 ), 2 ,"bankgothic") end end end ) and the xml <meta> <info gamemodes="race" type="map" version="1.0.0" /> <!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--> <script src="clientMain.lua" type="client" /> <map src="PROBANDO LETRAS.map" dimension="0" /> </meta> if that doesnt work try : type="script" Works everytime for me
  3. Oh my g..I don't know if this is worth the bump, but I will look out at this in the future...
  4. Instead of "attching" it you should create the blip instead, doesnt look like there is any need since It doesnt look like you want the "maker" to move.
  5. "How to give a player a ramp that is handled by a bind and command? How to make it when you press that key it will spawn a client/server in front of the person and thus making the person jump (unless that person swerves around it)" is the correct way of asking your question, I think.
  6. Kayl, is it possible to convert (non compiled) LUA script's back to UI? That way we can edit any GUI even if we dont have the UI File. If so, can you make it
  7. I don't know, make it yourself? Search for it on the forums? Look on the community? If you cant type "www.forum.multitheftauto.com" or "www.wiki.multitheftauto.com" then TYPE forum.multitheftauto.com AND wiki.multitheftauto.com! IF YOU WANT TO make A GOOD server, LEARN Lua!
  8. I'm not exactly sure what you want your script to do, but I think you want it to do this...fill in your settings, tweak the color's etc and execute it on your server. -- *************************** -- * Set your options below * -- *************************** local message "Type your message here " local pointX, pointY, pointZ = 3313.59765625, -2451.5554199219, 47.380950927734 local font = "bankgothic" -- font to show local fontSize = 2 --font size to show local maxViewRange= 10 --Max view range for the display local rectangleRed = 0 local rectangleBlue = 0 local rectangleGreen = 0 local rectangleAlpha = 200 local textRed = 255 local textBlue = 255 local textGreen = 255 local textAlpha = 255 -- Code below local screenWidth, screenHeight = guiGetScreenSize() addEventHandler("onClientRender", getRootElement(), function() local sx,sy = getScreenFromWorldPosition (pointX,pointY,pointZ) local cameraX,cameraY,cameraZ = getCameraMatrix() if sx then if getDistanceBetweenPoints3D(cameraX,cameraY,cameraZ,pointX,pointY,pointZ) <= maxViewRange then dxDrawRectangle ( sx - 100, sy + 14.5, screenWidth/7.5 + 200, screenHeight/30 + 20 ,tocolor ( rectangleRed, rectangleGreen, rectangleBlue, rectangleAlpha ) ) dxDrawText(message, sx - 100, sy, screenWidth, screenHeight,tocolor ( textRed, textGreen, textBlue, textAlpha ), fontSize ,font) end end end ) Tell me if it works ;D The next time you need help please specify what you want your script to do and tell us what the debug says.
  9. This won't work, as our server handles with Stunt, Freeroam, Race, Worlds and RP (well soon ) and it is really important to have a FPS view in our roleplay gamemode... We handle our dimensions like this: 0 - Freeroam 1 - The dimension to choose your gamemode/default spawn 3 - Stunt 6 - Race (soon) 50 to 99 - Worlds (We havent use all of them ) The massive numbered dimensions == Houses for our house system etc.. I really need the FPS feature to work in dimensions and the setElementDimension( getLocalPlayer(), dimID) won't fix it
  10. It's client side. I'm 100% sure the you have to use setCameraInterior (that bug is fixed now) however we need a setCameraDimension....
  11. Hey I am currently scripting and modifying this resource and it work's as I intended it to work. I just have a few bug's and I have no idea how to fix it. Please can someone help me? It's a first person shooter camera that uses the command /fps to toggle. The only bugs are: 1) When I activate First Person Shooter Camera in an interior the camera matrix is not set. (Would setCameraInterior work?) 2) When I activate First Person Shooter Camera in a dimension the camera matrix is not set. (How to fix this? There is no setCameraDimension) 3) When I deactivate First Person Shooter Camera my camera goes back to normal but the camera matrix does not change in spite of doing setCameraTarget(getLocalPlayer()) (What is the default camera matrix?) I can PM the script to whoever want's to help me in fixing it
  12. qaisjp

    Season Greetings

    I'm pretty sure Kayl did it himself. DeViLer, it's better to have native function's instead.
  13. I was playing nicely on a MTA Server, and I suddenly time out, when I try to connect back to the server (and any other server) I get this= when I press ignore= and when I press abort= Version = 1.0.4-release-2106.0.000 Time = Fri Dec 17 21:57:00 2010 Module = C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a\MSVCR90.dll Code = 0x80000003 Offset = 0x000730E9 EAX=00000004 EBX=00000037 ECX=16776A07 EDX=01920180 ESI=0000021C EDI=00000000 EBP=0022F258 ESP=0022EBF4 EIP=751B30E9 FLG=00000246 CS=001B DS=0023 SS=0023 ES=0023 FS=003B GS=0000 Reinstalled Visual C++ and MTA 5 times, still not working. Same happens to Map editor and Host game (ingame) I moved GTA and reinstalled MTA to my root of the drive and I get this (below) instead of the first image. Please help me, it's urgent! Details: OS= Windows 7 Ultimate 32bit. Craphics card (Graphics Card) = ATI Radeon xPress 1100 Reproducibility = Always This has never happened before...
  14. qaisjp

    Server start

    How can I add it to game-monitor.com if my IP changes everyday? The next day I will have to re-register my server lol I was going to say that MTNL DNA-A213 is not even on port forwarding website... Will it still be accessible by the public (Trigger Ports = my public ip) if I give my IP (not my local on ) I hope so :3 http://www.ip-adress.com/ Find out your own IP in a matter of seconds lol
  15. qaisjp

    Server start

    My local IP is 192.168.1.2 (I checked it) Router Manufactarer: MTNL Model:DNA-A213 I have a dynamic ip, so it changes everyday D:
  16. qaisjp

    Server start

    Yeah I set 22004, I am the only one who use the internet in the house so no doubt it is 192.168.1.2 ( i think ) It asks me for Trigger Port (start/end) and Open Port (start/end) (port range) Do I put the ones UDP 22004 >22004 TCP 22005>22005 UDP 22127>22127 ( the arrow seperating start/end) and the Trigger Ports as my local IP So the trigger part would be: 192.168.1.2 (UDP) 192.168.1.2 (TCP) 192.168.1.2 (UDP) I will upload a picture soon Here is a pic: That was what I wrote initially. Any idea where I put the local IP and what are the range values? When you said it has to be online for 24 hours, do you mean consecutively, or a total? I have a dynamic IP and I turn my router off nightly... will it still work? Thnks in advance
  17. qaisjp

    Server start

    I have gone through the documentation and read the server manual and did what it said (on a private home computer) but my test server will not appear in Public tab and only the LAN tab, I am aware I have to open ports... this is what I found: NAT -- Port Triggering Setup Some applications require that specific ports in the Router's firewall be opened for access by the remote parties. Port Trigger dynamically opens up the 'Open Ports' in the firewall when an application on the LAN initiates a TCP/UDP connection to a remote party using the 'Triggering Ports'. The Router allows the remote party from the WAN side to establish new connections back to the application on the LAN side using the 'Open Ports'. A maximum 32 entries can be configured. This is what i put in: Application Trigger Open Name Protocol Port Range Protocol Port Range Start End Start End mtasa UDP 22004 22004 UDP 22004 >22004 mtasa TCP 22005 22005 TCP 22005>22005 mtasa UDP 22127 22127 UDP 22127>22127 Help
  18. I would like to help, I am fairly new, but I could be useful
  19. Slothman, I have an idea for your script. I think that if you get killed by zombies enough times, you get infected. Then zombies dont attack you, but you attack others... (then you are a zombie )
×
×
  • Create New...