Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. Jaysds1

    Problems

    Hi all, I was having a problem with this isInsideRadarArea function, Every time a person goes in the Col Shape, it's suppose to check if the player is inside a Radar Area, but it says that there's a nil for argument 1 which is the radar area: createRadarArea(2428.345703125,-1628.1298828125,200,-110,0,255,0,100) createColRectangle(2444.5830078125,-1719.29296875, 190,105) addEventHandler("onClientColShapeHit",getRootElement(), function(theElement,theArea,matchingDimension) if (theElement == getLocalPlayer()) and (matchingDimension == 0) then if (getPlayerTeam(theElement) == getTeamFromName("Grove Street Famillies") or getTeamFromName("Ballas") or getTeamFromName("Varous Los Aztecas") or getTeamFromName("Los Santos Vagos")) then x,y = getElementPosition(theElement) if (isInsideRadarArea(theArea,x,y) == true) then r,g,b = getTeamColor(getPlayerTeam(theElement)) rr,gg,bb = getRadarAreaColor(theArea) if (r == rr and g == gg and b == bb) then outputChatBox("*TURF*: You entered your gangs territory.",r,g,b) else outputChatBox("*TURF*: YOU HAVE ENTERED ANOTHER GANGS TERRITORY, STAY IN THIS TERITORY FOR 22 SECONDS OR KILL A GANG MEMBER TO TRIGGER A WAR!",255,0,0) triggerEvent("war",getLocalPlayer()) end end elseif (getPlayerTeam(theElement) == getTeamFromName("Los Santos Police Department")) then outputChatBox("*TURF*: YOU HAVE ENTERED A GANGS TERRITORY, IT MIGHT BE UNDER WAR",100,0,0) end end end)
  2. Well, it does use to much bandwidth but still doesn't explain why your modem/router restarts
  3. Jaysds1

    VSync always on..

    Is your PC a Window 7?
  4. ok, the only thing I could say is to go back to the older version of MTA 1.1 or MTA 1.0.5 Sorry, it doesn't really make sense why your modem will restart while connecting to a server. We had lots of problems with Window 7 PC's
  5. This is suppose to be in Scripting, plus you forgot to add the false at the end of the eventhandler for the buttons" addEventHandler("onClientGUIClick", GUIEditor_Button[1], kick,false) addEventHandler("onClientGUIClick", GUIEditor_Button[2], mute,false) addEventHandler("onClientGUIClick", GUIEditor_Button[3], jail,false) addEventHandler("onClientGUIClick", GUIEditor_Button[4], unjail,false) addEventHandler("onClientGUIClick", GUIEditor_Button[5], mandat,false) addEventHandler("onClientGUIClick", GUIEditor_Button[6], kontrola,false) addEventHandler("onClientGUIClick", GUIEditor_Window[1], nico,false)
  6. Try downloading the latest Data Files.
  7. Jaysds1

    Hmm

    It's possible but you need to disable most or all of the player hud components and use dx draw.
  8. Jaysds1

    Problems

    How do I make a map editor server?
  9. Jaysds1

    Problems

    never mind, I got it now, but thanks Solid
  10. Jaysds1

    Problems

    ok, I'll try random numbers, BTW, I can't see the radar area on the radar, only on map
  11. Jaysds1

    Problems

    No, I meant How do I get the size for radar x, and y?
  12. Jaysds1

    admin help

    First, add your account by typing "addAccount [Nickname] [Password]".
  13. Jaysds1

    Problems

    thanks all, I have another problem, for the createRadarArea, How do I get the size?
  14. Jaysds1

    Problems

    Hi everyone, I just want to know what's the best FPS Limit for GTA?
  15. PhatLooser, Can u host my Freeroam server next week please?
  16. Jaysds1

    Problems

    thanks u guyz, is this a new function?
  17. Jaysds1

    Problems

    Hi all, I want to know how to disable a button., If I use the same GUI I want to disable the button for the other time it comes up Example: When I use the button for houses, if it's the players house enable the button else disable and tell player buy this house or get lost.
  18. Jaysds1

    Problems

    @JR10 I've edit it, and it worked Hi everyone again (saying this is starting to get boring), Today, I have a problem with this DX Draw Text, When a player joins, it's suppose to create a DX Text with the player name and after another player join it goes on and on, after when 3 player joins it's suppose to destroy the first text and resets all the timers here: addEventHandler("onClientPlayerJoin",getLocalPlayer(), function() myName = getPlayerName(getLocalPlayer()) triggerEvent("create",getRootElement(),myName) end) addEvent("create",true) addEventHandler("create",getRootElement(),function() addEventHandler("onClientRender",getRootElement(),createDX) end) function createDX(myName) drawn = dxDrawText(myName,540.0,563.0,709.0,580.0,tocolor(255,0,0,255),1.0,"default","left","top",false,false,false) timer = setTimer(destroyElement,10000,1,drawn) if (drawn) then timer1 = setTimer(destroyElement,7000,1,drawn) drawn1 = dxDrawText(myName,363.0,564.0,532.0,581.0,tocolor(255,0,0,255),1.0,"default","left","top",false,false,false) elseif (drawn1) then timer2 = setTimer(destroyElement,7000,1,drawn1) drawn2 = dxDrawText(myName,196.0,565.0,365.0,582.0,tocolor(255,0,0,255),1.0,"default","left","top",false,false,false) elseif (drawn2) then timer3 = setTimer(destroyElement,7000,1,drawn2) drawn3 = dxDrawText(myName,25.0,564.0,194.0,581.0,tocolor(255,0,0,255),1.0,"default","left","top",false,false,false) elseif (drawn3) then killTimer(timer) destroyElement(drawn1) end end
  19. Jaysds1

    Problems

    thanks for helping, I'll edited the url
  20. Jaysds1

    Problems

    Hi again everyone, Today I'm having problem with a button, When the person selects the radio channel and press play, it's suppose to (OF COURSE) Play here's my script: -- CLIENT-SIDE ONLY function radioSt() guiSetVisible(radio, not guiGetVisible(radio)) showCursor(not isCursorShowing()) addEventHandler("onClientGUIClick",background,function() guiMoveToBack(background) end,false) addEventHandler("onClientGUIClick",play, function() if (guiGridListGetSelectedItem(stations) == guiGridListGetItemText(stations,1,1)) then playSound("http://www.flow935.com/live/") end end,false) end
×
×
  • Create New...