Jump to content

Death

Members
  • Posts

    151
  • Joined

  • Last visited

Everything posted by Death

  1. colocar uma mensagem "aguarde baixando recursos...."
  2. Death

    [Help] area name

    plis not work my script local areas = { ['Last Dime Motel'] = { x = '1876.0206298828', y = '639.92822265625', z = '0', width = '110', height = '120', size= '155' }; ['Come-A-Lot'] = { x = '2088.8642578125', y = '983.38934326172', z = '0', width = '250', height = '195', size= '155' }; ['Redsands West'] = { x = '1297.0888671875', y = '2101.5236816406', z = '0', width = '100', height = '100', size= '155' }; ['Roca Escalante'] = { x = '2294.7055664063', y = '2242.7463378906', z = '0', width = '320', height = '200', size= '155' }; ['Pilgrim'] = { x = '2439.5773925781', y = '1484.2821044922', z = '0', width = '170', height = '120', size= '155' }; ['LVA Freight Depot'] = { x = '1576.5826416016', y = '883.79443359375', z = '0', width = '180', height = '250', size= '155' }; ['Las Venturas Airport'] = { x = '1256.7247314453', y = '1211.0180664063', z = '0', width = '360', height = '450', size= '155' }; ['t'] = { x = '1121.9184570313', y = '2723.6286621094', z = '0', width = '410', height = '130', size= '155' }; ['El Quebrados'] = { x = '-1624.2315673828', y = '2546.4689941406', z = '0', width = '200', height = '160', size= '155' }; ['Ocean Flats'] = { x = '-2800.4970703125', y = '-203.62327575684', z = '0', width = '200', height = '460', size= '155' }; ['Hashbury'] = { x = '-2586.9035644531', y = '-207.01741027832', z = '0', width = '160', height = '250', size= '155' }; ['Garcia'] = { x = '-2410.7312011719', y = '-201.14291381836', z = '0', width = '200', height = '460', size= '155' }; ['Doherty'] = { x = '-2166.2292480469', y = '-63.644058227539', z = '0', width = '160', height = '310', size= '155' }; ["King's"] = { x = '-2155.6318359375', y = '329.27984619141', z = '0', width = '160', height = '240', size= '155' }; ['Calton Heights'] = { x = '-2248.1584472656', y = '748.20239257813', z = '0', width = '238', height = '530', size= '155' }; ['City Hall'] = { x = '-2812.9992675781', y = '296.84313964844', z = '0', width = '200', height = '160', size= '155' }; ['Santa flora'] = { x = '-2738.5361328125', y = '478.66021728516', z = '0', width = '200', height = '320', size= '155' }; ['Financial'] = { x = '-1870.4908447266', y = '848.87469482422', z = '0', width = '152', height = '320', size= '155' }; ['Ganton'] = { x = '2226.7885742188', y = '-1835.9097900391', z = '0', width = '320', height = '200', size= '155' }; ['Willowfield'] = { x = '1977.2436523438', y = '-2145.0498046875', z = '0', width = '560', height = '280', size= '155' }; ['Idlewood'] = { x = '1824.6007080078', y = '-1837.0328369141', z = '0', width = '400', height = '280', size= '155' }; ['Los Flores'] = { x = '2583.2983398438', y = '-1389.1251220703', z = '0', width = '140', height = '250', size= '155' }; ['Glen Park'] = { x = '1840.0902099609', y = '-1447.9831542969', z = '0', width = '140', height = '120', size= '155' }; ['East Los Santos'] = { x = '2274.6704101563', y = '-1549.1168212891', z = '0', width = '300', height = '390', size= '155' }; ['Marina'] = { x = '668.58984375', y = '-1734.75390625', z = '0', width = '90', height = '270', size = '155' }; ['Los Santos International'] = { x = '2056.7900390625', y = '-2412.576171875', z = '0', width = '100', height = '100', size = '155' }; ['The High Roller'] = { x = '1837.7880859375', y = '1283.57421875', z = '0', width = '200', height = '150', size = '155' }; } function disableGTAZones() setPlayerHudComponentVisible(source, "area_name", false) end addEventHandler("onPlayerJoin", root, disableGTAZones) theArea={} function createNewZones() for _, area in pairs ( areas ) do theArea = createColCuboid ( area.x, area.y, area.z, area.width, area.height, area.size ); setElementData(theArea, "zone_name","".._.."") addEventHandler ( 'onColShapeHit', theArea, printNewZoneName ); end end addEventHandler("onResourceStart", root, createNewZones) function printNewZoneName(thePlayer,theZone) if getElementType(thePlayer) == "player" then outputChatBox(""..getElementData(theArea, "zone_name").." Entrou na zona!", thePlayer, 255, 0, 0) end end
  3. Death

    [Help] area name

    not work bad argument in event
  4. Death

    [Help] area name

    I enter every zone and zone-name displays only the result Garcia My current script local areas = { ['Last Dime Motel'] = { x = '1876.0206298828', y = '639.92822265625', z = '0', width = '110', height = '120', size= '155' }; ['Come-A-Lot'] = { x = '2088.8642578125', y = '983.38934326172', z = '0', width = '250', height = '195', size= '155' }; ['Redsands West'] = { x = '1297.0888671875', y = '2101.5236816406', z = '0', width = '100', height = '100', size= '155' }; ['Roca Escalante'] = { x = '2294.7055664063', y = '2242.7463378906', z = '0', width = '320', height = '200', size= '155' }; ['Pilgrim'] = { x = '2439.5773925781', y = '1484.2821044922', z = '0', width = '170', height = '120', size= '155' }; ['LVA Freight Depot'] = { x = '1576.5826416016', y = '883.79443359375', z = '0', width = '180', height = '250', size= '155' }; ['Las Venturas Airport'] = { x = '1256.7247314453', y = '1211.0180664063', z = '0', width = '360', height = '450', size= '155' }; ['t'] = { x = '1121.9184570313', y = '2723.6286621094', z = '0', width = '410', height = '130', size= '155' }; ['El Quebrados'] = { x = '-1624.2315673828', y = '2546.4689941406', z = '0', width = '200', height = '160', size= '155' }; ['Ocean Flats'] = { x = '-2800.4970703125', y = '-203.62327575684', z = '0', width = '200', height = '460', size= '155' }; ['Hashbury'] = { x = '-2586.9035644531', y = '-207.01741027832', z = '0', width = '160', height = '250', size= '155' }; ['Garcia'] = { x = '-2410.7312011719', y = '-201.14291381836', z = '0', width = '200', height = '460', size= '155' }; ['Doherty'] = { x = '-2166.2292480469', y = '-63.644058227539', z = '0', width = '160', height = '310', size= '155' }; ["King's"] = { x = '-2155.6318359375', y = '329.27984619141', z = '0', width = '160', height = '240', size= '155' }; ['Calton Heights'] = { x = '-2248.1584472656', y = '748.20239257813', z = '0', width = '238', height = '530', size= '155' }; ['City Hall'] = { x = '-2812.9992675781', y = '296.84313964844', z = '0', width = '200', height = '160', size= '155' }; ['Santa flora'] = { x = '-2738.5361328125', y = '478.66021728516', z = '0', width = '200', height = '320', size= '155' }; ['Financial'] = { x = '-1870.4908447266', y = '848.87469482422', z = '0', width = '152', height = '320', size= '155' }; ['Ganton'] = { x = '2226.7885742188', y = '-1835.9097900391', z = '0', width = '320', height = '200', size= '155' }; ['Willowfield'] = { x = '1977.2436523438', y = '-2145.0498046875', z = '0', width = '560', height = '280', size= '155' }; ['Idlewood'] = { x = '1824.6007080078', y = '-1837.0328369141', z = '0', width = '400', height = '280', size= '155' }; ['Los Flores'] = { x = '2583.2983398438', y = '-1389.1251220703', z = '0', width = '140', height = '250', size= '155' }; ['Glen Park'] = { x = '1840.0902099609', y = '-1447.9831542969', z = '0', width = '140', height = '120', size= '155' }; ['East Los Santos'] = { x = '2274.6704101563', y = '-1549.1168212891', z = '0', width = '300', height = '390', size= '155' }; ['Marina'] = { x = '668.58984375', y = '-1734.75390625', z = '0', width = '90', height = '270', size = '155' }; ['Los Santos International'] = { x = '2056.7900390625', y = '-2412.576171875', z = '0', width = '100', height = '100', size = '155' }; ['The High Roller'] = { x = '1837.7880859375', y = '1283.57421875', z = '0', width = '200', height = '150', size = '155' }; } function disableGTAZones() setPlayerHudComponentVisible(source, "area_name", false) end addEventHandler("onPlayerJoin", root, disableGTAZones) theArea={} function createNewZones() for _, area in pairs ( areas ) do theArea = createColCuboid ( area.x, area.y, area.z, area.width, area.height, area.size ); setElementData(theArea, "zone_name","".._.."") addEventHandler ( 'onColShapeHit', theArea, printNewZoneName ); end end addEventHandler("onResourceStart", root, createNewZones) function printNewZoneName(thePlayer,theZone) if getElementType(thePlayer) == "player" then outputChatBox(""..getElementData(theArea, "zone_name").." Entrou na zona!", thePlayer, 255, 0, 0) end end
  5. Death

    [Help] area name

    this is my code but does not work local areas = { ['Last Dime Motel'] = { x = '1876.0206298828', y = '639.92822265625', z = '0', width = '110', height = '120', size= '155' }; ['Come-A-Lot'] = { x = '2088.8642578125', y = '983.38934326172', z = '0', width = '250', height = '195', size= '155' }; ['Redsands West'] = { x = '1297.0888671875', y = '2101.5236816406', z = '0', width = '100', height = '100', size= '155' }; ['Roca Escalante'] = { x = '2294.7055664063', y = '2242.7463378906', z = '0', width = '320', height = '200', size= '155' }; ['Pilgrim'] = { x = '2439.5773925781', y = '1484.2821044922', z = '0', width = '170', height = '120', size= '155' }; ['LVA Freight Depot'] = { x = '1576.5826416016', y = '883.79443359375', z = '0', width = '180', height = '250', size= '155' }; ['Las Venturas Airport'] = { x = '1256.7247314453', y = '1211.0180664063', z = '0', width = '360', height = '450', size= '155' }; ['t'] = { x = '1121.9184570313', y = '2723.6286621094', z = '0', width = '410', height = '130', size= '155' }; ['El Quebrados'] = { x = '-1624.2315673828', y = '2546.4689941406', z = '0', width = '200', height = '160', size= '155' }; ['Ocean Flats'] = { x = '-2800.4970703125', y = '-203.62327575684', z = '0', width = '200', height = '460', size= '155' }; ['Hashbury'] = { x = '-2586.9035644531', y = '-207.01741027832', z = '0', width = '160', height = '250', size= '155' }; ['Garcia'] = { x = '-2410.7312011719', y = '-201.14291381836', z = '0', width = '200', height = '460', size= '155' }; ['Doherty'] = { x = '-2166.2292480469', y = '-63.644058227539', z = '0', width = '160', height = '310', size= '155' }; ["King's"] = { x = '-2155.6318359375', y = '329.27984619141', z = '0', width = '160', height = '240', size= '155' }; ['Calton Heights'] = { x = '-2248.1584472656', y = '748.20239257813', z = '0', width = '238', height = '530', size= '155' }; ['City Hall'] = { x = '-2812.9992675781', y = '296.84313964844', z = '0', width = '200', height = '160', size= '155' }; ['Santa flora'] = { x = '-2738.5361328125', y = '478.66021728516', z = '0', width = '200', height = '320', size= '155' }; ['Financial'] = { x = '-1870.4908447266', y = '848.87469482422', z = '0', width = '152', height = '320', size= '155' }; ['Ganton'] = { x = '2226.7885742188', y = '-1835.9097900391', z = '0', width = '320', height = '200', size= '155' }; ['Willowfield'] = { x = '1977.2436523438', y = '-2145.0498046875', z = '0', width = '560', height = '280', size= '155' }; ['Idlewood'] = { x = '1824.6007080078', y = '-1837.0328369141', z = '0', width = '400', height = '280', size= '155' }; ['Los Flores'] = { x = '2583.2983398438', y = '-1389.1251220703', z = '0', width = '140', height = '250', size= '155' }; ['Glen Park'] = { x = '1840.0902099609', y = '-1447.9831542969', z = '0', width = '140', height = '120', size= '155' }; ['East Los Santos'] = { x = '2274.6704101563', y = '-1549.1168212891', z = '0', width = '300', height = '390', size= '155' }; ['Marina'] = { x = '668.58984375', y = '-1734.75390625', z = '0', width = '90', height = '270', size = '155' }; ['Los Santos International'] = { x = '2056.7900390625', y = '-2412.576171875', z = '0', width = '100', height = '100', size = '155' }; ['The High Roller'] = { x = '1837.7880859375', y = '1283.57421875', z = '0', width = '200', height = '150', size = '155' }; } local theArea = { } function disableGTAZones() setPlayerHudComponentVisible(source, "area_name", false) end addEventHandler("onPlayerJoin", root, disableGTAZones) function createNewZones() for _, area in pairs ( areas ) do theArea[_] = createColCuboid ( area.x, area.y, area.z, area.width, area.height, area.size ); outputChatBox("".._.."") setElementData(theArea[_], "zone_name", _) addEventHandler ( 'onColShapeHit', theArea[_], printNewZoneName ); end end addEventHandler("onResourceStart", root, createNewZones) function printNewZoneName(theZone) if getElementType(source) == "player" then outputChatBox("Puto", source) outputChatBox(getElementData(theZone, "zone_name").." zone entered!", source, 255, 0, 0) end end
  6. Hello! is possible to change the name of the áreas of the map?
  7. deu certo obrigado Abraço
  8. Death

    [help] trigger

    I think I did not explain right. I'm having problems when passing a value as a parameter in the trigger, and receive the value in the client file below this codes server-- function teste(thePlayer) local gang = getPlayerTeam(thePlayer) local team = getTeamName(gang) local x, y, z = getElementPosition ( thePlayer ); local zona = getZoneName ( x, y, z, false ); resultado = 0 setTimer(function() if resultado <= 25 then resultado = members_in_turf[team][zona] + resultado triggerClientEvent("onTimer", thePlayer, resultado) outputChatBox(""..tonumber(resultado).."") end end,5000,0) end ---client function testee(thePlayer,resultado) outputChatBox("Verme ="..tostring(resultado).."") removeEventHandler("onClientRender", root, tempo) addEventHandler("onClientRender", root, tempo) end addEvent("onTimer", true) addEventHandler("onTimer", getLocalPlayer(), testee)
  9. não, o erro esta ao passar o parametro pelo trigger no serverside ainda aparece o valor correto no chat no trigger fica nulo o valor estou errando em alguma coisa no trigger so não consigo identificar no que ._.
  10. Boa Tarde, Gostaria de uma ajuda não etou conseguindo passar um valor usando triggerClientEvent segue o codigo abaixo server-- function teste(thePlayer) local gang = getPlayerTeam(thePlayer) local team = getTeamName(gang) local x, y, z = getElementPosition ( thePlayer ); local zona = getZoneName ( x, y, z, false ); resultado = 0 setTimer(function() if resultado <= 25 then resultado = members_in_turf[team][zona] + resultado triggerClientEvent("onTimer", thePlayer, resultado) outputChatBox(""..tonumber(resultado).."") end end,5000,0) end ---client function testee(thePlayer,resultado) outputChatBox("Verme ="..tostring(resultado).."") removeEventHandler("onClientRender", root, tempo) addEventHandler("onClientRender", root, tempo) end addEvent("onTimer", true) addEventHandler("onTimer", getLocalPlayer(), testee) resultado esta apresenta o valor nulo
  11. Death

    [help] trigger

    it is called by another function
  12. Death

    [help] trigger

    well this is my full function however when passing the parameter and try recebelo the client file the result is null. help me function teste(thePlayer) local gang = getPlayerTeam(thePlayer) local team = getTeamName(gang) local x, y, z = getElementPosition ( thePlayer ); local zona = getZoneName ( x, y, z, false ); resultado = 0 setTimer(function() if resultado <= 25 then resultado = members_in_turf[team][zona] + resultado triggerClientEvent("onTimer", thePlayer, resultado) outputChatBox(""..tonumber(resultado).."") end end,5000,0) end
  13. Death

    [help] trigger

    hello I need help I am not able to pass the parameter result follows an excerpt below result = 0 setTimer (function () if result <= 25 then result = members_in_turf [team] [zone] + result triggerClientEvent ("OnTimer" theplayer, result) outputChatBox ("" .. tonumber (result) .. "") end
  14. function orgInvite(thePlayer, command, invitedPlayer) if getPlayerTeam(thePlayer) then local level = tonumber(getElementData(thePlayer, "org_rank")) if level >= 2 then local target = getPlayerFromName(invitedPlayer) setElementData( target, "org_invited", ""..getTeamName(getPlayerTeam(thePlayer)).."" ) outputChatBox("GJ, you have been invited to:"..getElementData( thePlayer, "org_invited" ).."", target, 0, 255, 0 ) end end end addCommandHandler("invite", orgInvite)
  15. I changed the code and still does not work help me local hillArea = createColRectangle ( -2171.0678710938, 678.17950439453, 100, 100 ) local hillRadar = createRadarArea ( -2183.5678710938, 705.67950439453, 100, -100, 0, 255, 0, 175 ) function entrou () setTimer(cbinds, 3333, 1) end addEventHandler ( "onColShapeHit", hillArea, entrou ) function hill_Exit ( thePlayer, matchingDimension ) end addEventHandler ( "onColShapeLeave", hillArea, hill_Exit ) cLP = getLocalPlayer() screenWidth, screenHeight = guiGetScreenSize() function cRStest() setTimer(resourcesCheck, 10000, 1) end addEventHandler("onClientResourceStart", getRootElement(), cRStest) function resourcesCheck() if check=="hillRadar" then return else setRadioChannel(0) setTimer(cbinds, 1000, 1) textToggle=0 check="hillRadar" end end function cRS() if check=="hillRadar" then return else setRadioChannel(0) setTimer(cbinds, 3333, 1) textToggle=0 check="hillRadar" end end addEventHandler("onColShapeHit", hillArea, cRS) function cbinds() local keys1 = getBoundKeys("vehicle_fire") local keys2 = getBoundKeys("vehicle_secondary_fire") if keys1 then for keyName, state in pairs(keys1) do bindKey(keyName, "down", cdoshoot) end bindKey("F", "down", cdoshoot) cbindsText = "- Press F or the button you use to fire to shoot rockets!\n- You can shoot once every 3 seconds.\n- good luck and have fun!." end if keys2 then for keyName, state in pairs(keys2) do bindKey(keyName, "down", cdoshoot) end end if (not keys1) and (not keys2) then bindKey("F", "down", cdoshoot) bindKey("lctrl", "down", cdoshoot) bindKey("rctrl", "down", cdoshoot) cbindsText = "- Press F or CTRL to shoot rockets!\n- You can shoot once every 3 seconds." end theVehicle = getPedOccupiedVehicle(cLP) allowShoots() bindKey("X", "down", toggleText) outputChatBox("Seu carro atira", 255, 255, 255, true) end function toggleText() if textToggle==0 then addEventHandler("onClientRender", getRootElement(), bindsText) textToggle=1 elseif textToggle==1 then removeEventHandler("onClientRender", getRootElement(), bindsText) textToggle=0 end end function allowShoots() bindTrigger = 1 end function cdoshoot() if bindTrigger == 1 then if not isPlayerDead(cLP) then bindTrigger = 0 local x,y,z = getElementPosition(theVehicle) local rX,rY,rZ = getVehicleRotation(theVehicle) local x = x+8*math.cos(math.rad(rZ+100)) local y = y+8*math.sin(math.rad(rZ+100)) createProjectile(theVehicle, 19, x, y, z, 1.0, nil) local x,y,z = getElementPosition(theVehicle) local rX,rY,rZ = getVehicleRotation(theVehicle) local x = x+8*math.cos(math.rad(rZ+80)) local y = y+8*math.sin(math.rad(rZ+80)) createProjectile(theVehicle, 19, x, y, z, 1.0, nil) setTimer(allowShoots, 3000, 1) end end end function bindsText() dxDrawText(cbindsText, screenWidth/15, screenHeight/2.5, screenWidth, screenHeight, tocolor(0, 255, 110, 255), 2, "^ReLoco#") end
  16. was the only way that worked
  17. hello I'm creating an arena shooter and the script makes the car shoot the first time he enters the arena. Problem is when the player leaves the arena and back to her car does not shoot more = / please help me client local hillArea = createColRectangle ( -2171.0678710938, 678.17950439453, 100, 100 ) local hillRadar = createRadarArea ( -2183.5678710938, 705.67950439453, 100, -100, 0, 255, 0, 175 ) function hill_Enter ( thePlayer, matchingDimension ) if (getElementType(thePlayer) == "vehicle") then outputChatBox( getPlayerName(thePlayer) .. " Entrou na Zona Fun Seu Carro Pode Atirar Agora!", thePlayer, 255, 255, 109 ) setRadarAreaFlashing ( hillRadar, true ) end end addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) function hill_Exit ( thePlayer, matchingDimension ) vehicles = getElementsByType("vehicle") bindTrigger = 0 end addEventHandler ( "onColShapeLeave", hillArea, hill_Exit ) cLP = getLocalPlayer() screenWidth, screenHeight = guiGetScreenSize() function cRStest() setTimer(resourcesCheck, 10000, 1) end addEventHandler("onClientResourceStart", getRootElement(), cRStest) function resourcesCheck() if check=="hillRadar" then return else setRadioChannel(0) setTimer(cbinds, 1000, 1) textToggle=0 check="hillRadar" end end function cRS() if check=="hillRadar" then return else setRadioChannel(0) setTimer(cbinds, 3333, 1) textToggle=0 check="hillRadar" end end addEventHandler("onColShapeHit", hillArea, cRS) function markers(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) fixVehicle(vehicle) end end addEventHandler("onClientMarkerHit", getResourceRootElement(getThisResource()), markers) function cbinds() local keys1 = getBoundKeys("vehicle_fire") local keys2 = getBoundKeys("vehicle_secondary_fire") if keys1 then for keyName, state in pairs(keys1) do bindKey(keyName, "down", cdoshoot) end bindKey("F", "down", cdoshoot) cbindsText = "- Press F or the button you use to fire to shoot rockets!\n- You can shoot once every 3 seconds.\n- good luck and have fun!." end if keys2 then for keyName, state in pairs(keys2) do bindKey(keyName, "down", cdoshoot) end end if (not keys1) and (not keys2) then bindKey("F", "down", cdoshoot) bindKey("lctrl", "down", cdoshoot) bindKey("rctrl", "down", cdoshoot) cbindsText = "- Press F or CTRL to shoot rockets!\n- You can shoot once every 3 seconds." end theVehicle = getPedOccupiedVehicle(cLP) allowShoots() bindKey("X", "down", toggleText) outputChatBox("Seu carro atira", 255, 255, 255, true) end function toggleText() if textToggle==0 then addEventHandler("onClientRender", getRootElement(), bindsText) textToggle=1 elseif textToggle==1 then removeEventHandler("onClientRender", getRootElement(), bindsText) textToggle=0 end end function allowShoots() bindTrigger = 1 end function cdoshoot() if bindTrigger == 1 then if not isPlayerDead(cLP) then bindTrigger = 0 local x,y,z = getElementPosition(theVehicle) local rX,rY,rZ = getVehicleRotation(theVehicle) local x = x+8*math.cos(math.rad(rZ+100)) local y = y+8*math.sin(math.rad(rZ+100)) createProjectile(theVehicle, 19, x, y, z, 1.0, nil) local x,y,z = getElementPosition(theVehicle) local rX,rY,rZ = getVehicleRotation(theVehicle) local x = x+8*math.cos(math.rad(rZ+80)) local y = y+8*math.sin(math.rad(rZ+80)) createProjectile(theVehicle, 19, x, y, z, 1.0, nil) setTimer(allowShoots, 3000, 1) end end end function bindsText() dxDrawText(cbindsText, screenWidth/15, screenHeight/2.5, screenWidth, screenHeight, tocolor(0, 255, 110, 255), 2, "^ReLoco#") end server local hillArea = createColRectangle ( -2171.0678710938, 678.17950439453, 100, 100 ) local hillRadar = createRadarArea ( -2183.5678710938, 705.67950439453, 100, -100, 0, 255, 0, 175 ) function hill_Exit ( thePlayer, matchingDimension ) vehicles = getElementsByType("vehicle") for i,v in ipairs(vehicles) do destroyElement(v) if (getElementType(thePlayer) == "vehicle") then if isPedDead ( thePlayer ) ~= true then outputChatBox ( getPlayerName(thePlayer) .. " Saiu da Zona Fun Seu Carro Não Pode Atirar Mais!", thePlayer, 255, 255, 109 ) setRadarAreaFlashing ( hillRadar, false ) end end end end addEventHandler ( "onColShapeLeave", hillArea, hill_Exit )
  18. Death

    help radar area

    not work plis help me
  19. Death

    help

    you can put the same map in other dimensions too?
  20. i am seeking scripter that covers a fair price in a multi game mode sorry my bad english
  21. Death

    Help me

    Not work function rejoinMe(source) redirectPlayer(source,"200.98.128.99",22002) end addEventHandler ( "onPlayerJoin", getRootElement(), rejoinMe )
  22. Death

    help radar area

    not work =/ Help me local hillArea = createColRectangle ( -2171.0678710938, 678.17950439453, 100, 100 ) local hillRadar = createRadarArea ( -2183.5678710938, 705.67950439453, 100, -100, 0, 255, 0, 175 ) function hill_Enter ( thePlayer, matchingDimension ) if (getElementType(getLocalPlayer()) == "vehicle") then outputChatBox( getPlayerName(getLocalPlayer ( )) .. " Entrou na Zona Fun Seu Carro Pode Atirar Agora!", thePlayer, 255, 255, 109 ) setRadarAreaFlashing ( hillRadar, true ) end end addEventHandler ( "onColShapeHit", hillArea, hill_Enter ) function hill_Exit ( thePlayer, matchingDimension ) unvehicles = getElementsByType("vehicle") for i,v in ipairs(vehicles) do destroyElement(v) if (getElementType(getLocalPlayer()) == "vehicle") then if isPlayerDead ( thePlayer ) ~= true then outputChatBox ( getPlayerName(thePlayer) .. " Saiu da Zona Fun Seu Carro Não Pode Atirar Mais!", thePlayer, 255, 255, 109 ) setRadarAreaFlashing ( hillRadar, false ) end end end end addEventHandler ( "onColShapeLeave", hillArea, hill_Exit ) cLP = getLocalPlayer() screenWidth, screenHeight = guiGetScreenSize() function cbinds() local keys1 = getBoundKeys("vehicle_fire") local keys2 = getBoundKeys("vehicle_secondary_fire") if keys1 then for keyName, state in pairs(keys1) do bindKey(keyName, "down", cdoshoot) end bindKey("F", "down", cdoshoot) cbindsText = "- Press F or the button you use to fire to shoot rockets!\n- You can shoot once every 3 seconds.\n- good luck and have fun!." end if keys2 then for keyName, state in pairs(keys2) do bindKey(keyName, "down", cdoshoot) end end if (not keys1) and (not keys2) then bindKey("F", "down", cdoshoot) bindKey("lctrl", "down", cdoshoot) bindKey("rctrl", "down", cdoshoot) cbindsText = "- Press F or CTRL to shoot rockets!\n- You can shoot once every 3 seconds." end theVehicle = getPedOccupiedVehicle(cLP) allowShoots() bindKey("X", "down", toggleText) outputChatBox("#FF0000Press #00FF95X #FF0000to show/hide instructions! \"{SMILIES_PATH}/icon_biggrin.gif\" alt=\"\" title=\"Very Happy\" />", 255, 255, 255, true) end addEventHandler ( "onColShapeHit", hillArea, cbinds ) function toggleText() if textToggle==0 then addEventHandler("onClientRender", getRootElement(), bindsText) textToggle=1 elseif textToggle==1 then removeEventHandler("onClientRender", getRootElement(), bindsText) textToggle=0 end end function allowShoots() bindTrigger = 1 end function cdoshoot() if bindTrigger == 1 then if not isPlayerDead(cLP) then bindTrigger = 0 local x,y,z = getElementPosition(theVehicle) local rX,rY,rZ = getVehicleRotation(theVehicle) local x = x+8*math.cos(math.rad(rZ+100)) local y = y+8*math.sin(math.rad(rZ+100)) createProjectile(theVehicle, 19, x, y, z, 1.0, nil) local x,y,z = getElementPosition(theVehicle) local rX,rY,rZ = getVehicleRotation(theVehicle) local x = x+8*math.cos(math.rad(rZ+80)) local y = y+8*math.sin(math.rad(rZ+80)) createProjectile(theVehicle, 19, x, y, z, 1.0, nil) setTimer(allowShoots, 3000, 1) end end end function bindsText() dxDrawText(cbindsText, screenWidth/15, screenHeight/2.5, screenWidth, screenHeight, tocolor(0, 255, 110, 255), 2, "^ReLoco#") end
×
×
  • Create New...