Jump to content

Search the Community

Showing results for tags 'script help'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 4 results

  1. Hola les agradecería la ayuda, no logro solucionar este warning. WARNING: [Nz]-CokData/puerta1.lua:31: Bad argument @ 'GetPlayerTeam [Expected player at argument 1, got vehicle] Tambien me pasa con la linea 7 ------- Creado por STORMALIXSCRIPTER' ---------- objeto = createObject ( 3115, 1447.6999511719, 664.70001220703, 5.3000001907349, 0, 90, 270 ) x,y,z = getElementPosition (objeto) Zona = createColCircle ( x,y, 5, 5 ) function Funcion (source) playerTeam = getPlayerTeam ( source ) Clann = getTeamFromName ( "*C.O.K*" ) if ( playerTeam ) == Clann then moveObject ( objeto, 2000, 1447.6999511719, 664.70001220703, -0.89999997615814, 0, 0, 0 ) outputChatBox ( "Bienvenido a C.O.K", source, 0, 255, 0, true ) else outputChatBox ( "Tu no eres del clan!", source, 255, 0, 0, true ) end end addEventHandler ( "onColShapeHit", Zona, Funcion ) function Funcion2 () moveObject ( objeto, 3000, 1447.6999511719, 664.70001220703, 5.3000001907349, 0, 0, 0 ) outputChatBox ( "Puerta Cerrandose", source, 0, 255, 0, true ) end addEventHandler ( "onColShapeLeave", Zona, Funcion2 ) -------Puerta2------------Puerta2----------------Puerta2------------------- objeto1 = createObject ( 3115, 1398.1999511719, 730.40002441406, 6.5, 0, 270, 0 ) x,y,z = getElementPosition (objeto1) Zona = createColCircle ( x,y, 5, 5 ) function Funcion (source) playerTeam = getPlayerTeam ( source ) Clann = getTeamFromName ( "*C.O.K*" ) if ( playerTeam ) == Clann then moveObject ( objeto1, 2000, 1398.1999511719, 730.40002441406, 1.2000000476837, 0, 0, 0 ) outputChatBox ( "Bienvenido a C.O.K", source, 0, 255, 0, true ) else outputChatBox ( "Tu no eres del clan!", source, 255, 0, 0, true ) end end addEventHandler ( "onColShapeHit", Zona, Funcion ) function Funcion2 () moveObject ( objeto1, 3000, 1398.1999511719, 730.40002441406, 6.5, 0, 0, 0 ) outputChatBox ( "Puerta Cerrandose", source, 0, 255, 0, true ) end addEventHandler ( "onColShapeLeave", Zona, Funcion2 )
  2. Ayuda por favor, al matar al "hades" salga por un cierto tiempo el segundo "crazy" sin que respawnee de nuevo al boss "hades" hasta matar al boss "crazy", no logro hacerlo sin que me salga bien solo cuando mato al primero sale los 2 al mismo tiempo que le puse (60 segundos). Server side: function boss0 ( ) hades = exports [ "slothBot" ]:spawnBot ( 1184.654, -2038.601, 69.008, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) exports.extra_health:setElementExtraHealth(hades, 1000) setElementModel ( hades, 38 ) setElementData (hades, "boss", true) outputChatBox ("#9E0000Boss Hades!!",getRootElement(), 255, 255, 255, true ) end addEventHandler("onResourceStart", resourceRoot, boss0) --Boss1 function Boss1 ( ) crazy = exports [ "slothBot" ]:spawnBot ( 1262.77, -2029.756, 59.341, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) exports.extra_health:setElementExtraHealth(crazy, 1000) setElementModel ( crazy, 312 ) setElementData (crazy, "boss", true) end function money (theKiller) if getElementData(source,"boss")==true then local premio = math.random(1000,5000) givePlayerMoney(theKiller,premio) outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFMato al Boss!, Ha Ganado $".. premio .." platica :v",getRootElement(), 255, 255, 255, true ) if source == hades then setTimer(boss0, 60000, 1) end if (not isElement(crazy)) then setTimer(Boss1, 60000, 1) end end end addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement(), money)
  3. I select one dimension, even if I go in another one, it keeps pushing me out of the inside, can someone help me? Sorry my bad English local Exitdoorrob1 = createMarker(-27.39, -57.99, 1004.5, "arrow", 1.5, 255, 255, 0, 255) setElementInterior(Exitdoorrob1, 6) setElementDimension(Exitdoorrob1, 1) local Doorentryrob1 = createMarker(1315.5, -897.8, 40.5, "arrow", 1.5, 255, 255, 0, 255) createBlipAttachedTo(Doorentryrob1, 17, 2, 0, 255, 0, 0, 0, 7000) local robmarker1 = createMarker(-23.32, -55.44, 1002.6, "cylinder", 1.2, 255, 10, 10, 255) setElementInterior(robmarker1, 6) setElementDimension(robmarker1, 1) duty1 = function(l_2_0, l_2_1) if isElementWithinMarker(l_2_0, robmarker1) then setPlayerWantedLevel(l_2_0, 6) triggerClientEvent(root, "playTheSound", root, l_2_0) outputChatBox("*Você vai roubar o Mercadinho! aguarde alguns segundos por favor...", l_2_0, 0, 255, 0) outputChatBox("#DF0101[ALARME]: #FFFFFFO Jogador " .. getPlayerName(l_2_0) .. "#FFFFFF Esta roubando o Mercadinho!", root, 255, 255, 255, true) setElementPosition(robmarker1, 3099.97, -3281.69, -0.5) setMarkerSize(Exitdoorrob1, 0) local blip1 = createBlipAttachedTo(Doorentryrob1, 20, 2, 0, 255, 0, 0, 0, 7000) setTimer(triggerClientEvent, 21000, 1, root, "playTheSound", root, l_2_0) setTimer(triggerClientEvent, 42000, 1, root, "playTheSound", root, l_2_0) setTimer(triggerClientEvent, 63000, 1, root, "playTheSound", root, l_2_0) setTimer(setElementPosition, 200000, 1, robmarker1, -23.32, -55.44, 1002.6) setTimer(setMarkerSize, 40000, 1, Exitdoorrob1, 1.5) setTimer(givePlayerMoney, 40000, 1, l_2_0, 3000) setTimer(destroyElement, 200000, 1, blip1) else outputChatBox("", source, 255, 0, 0) end end addCommandHandler("roubar", duty1) Exitdrob1 = function(l_3_0) if source == Exitdoorrob1 and getElementType(l_3_0) == "player" then fadeCamera(l_3_0, false, 1, 0, 0, 0) setTimer(fadeCamera, 1000, 1, l_3_0, true, 1) setTimer(setElementPosition, 1000, 1, l_3_0, 1315.42, -899.38, 39.5) setTimer(setElementInterior, 1000, 1, l_3_0, 0, 1315.42, -899.38, 39.5) setTimer(setElementDimension, 1000, 1, l_3_0, 0) end end addEventHandler("onMarkerHit", getRootElement(), Exitdrob1) Doorerob1 = function(l_4_0) if source == Doorentryrob1 and getElementType(l_4_0) == "player" then fadeCamera(l_4_0, false, 1, 0, 0, 0) setTimer(fadeCamera, 1000, 1, l_4_0, true, 1) setTimer(setElementPosition, 1000, 1, l_4_0, -27.32, -56.87, 1003.7) setTimer(setElementInterior, 1000, 1, l_4_0, 6, -27.32, -56.87, 1003.7) setTimer(setElementDimension, 1000, 1, l_4_0, 1) setTimer(outputChatBox, 2000, 1, "*Digite /roubar Para roubar o Mercadinho.", l_4_0, 0, 255, 255) end end addEventHandler("onMarkerHit", getRootElement(), Doorerob1)
  4. So guys is there anyway to change the camera view in a map in client side? If so can someone provide me a script which can change the camera view but still follow and target the player so I can change coordinates and use as I want. Or can someone tell me how to script it.
×
×
  • Create New...