Jump to content

DarkNeSsOak

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by DarkNeSsOak

  1. no me funciona no aparece el blip ni el nemesis.
  2. Trate con eso y me tira error, en la consola me coloca SCRIPT ERROR: respawnveh\server.lua:22: unexpected symbol near ). alguna solucion? y no respawnea los autos...
  3. Hola alguien que me pueda ayudar en un script?, el problema es que encontre un resource llamado rav en mta resources y originalmente el script venia con AddComandHandler, yo trate de borrarselo y colocarle el AddEventHandler y me tira error alguna solucion el server.lua es este
  4. Hola, este script es el conocido Boss que lo busque en el mta resources, bueno mi problema es que spawnea todo bien pero no le ajusta el extra health y le da muy poca vida y el icono del mapa no se elimina al matar al boss espero que me puedan ayudar aca esta el client local function nemesi ( ) nemesi = exports [ "slothBot" ]:spawnBot ( 1124.9117431641, -2036.8974609375, 69.882827758789, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) setElementModel ( nemesi, 308 ) outputChatBox ("#880000[EVENTO] #555555MIRA EL PUNTO ROJO Y MATA AL BOSS!!!!",getRootElement(), 255, 255, 255, true ) local myBlip = (createBlipAttachedTo ( nemesi, 23 )) triggerClientEvent ( "nsound", root ) triggerClientEvent ( "nemesismissel", root ) setTimer( function() exports.extra_health:setElementExtraHealth(nemesi, 10000) end, 1100, 0) end addEventHandler("onResourceStart", resourceRoot, Nemesisbymanawydan) addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement) function money (theKiller) if (source == nemesi) then givePlayerMoney(theKiller,math.random(15000)) outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFHa matado al BOSS!Se le ha dado #550000$15.000 #081DBFcomo recompensa",getRootElement(), 255, 255, 255, true ) setTimer(Nemesisbymanawydan, 60000, 1) end end addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement(), money) function destroy () if ( not isElement ( nemesi ) ) then destroyElement(myBlip) end end addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement(), destroy)
  5. Gracias pd Platin me encantan tus videos! Ya agrege el setTimer(respawnVehicle,15000,1,source) pero no me funciono? que tengo que hacer? sera el eventstart resource?
  6. Hola soy nuevo en esta comunidad, espero que me puedan ayudar, bueno lo que quiero hacer es un auto respawn de autos que diga en el chat vehiculos restaurados en 10 segundos y todos los vehiculos han sido restaurados algo haci pues. Hi I am new to this community, I hope you can help me, well I want to do is a car auto respawn read in the car chat restored in 10 seconds and all vehicles have been restored as something. primero este script no es mio lo encontre en mta resources y queria modificarlo y eso pero no me funciona local rElement = getRootElement() function respawnVehicles(player, cmd, seconds) if tonumber(seconds) then if not hasObjectPermissionTo(player, "function.banPlayer") then outputChatBox("This command is only executeable for administrators", player, 255, 0, 0, false) return end outputChatBox("** All unoccupied vehicles will be respawned in " .. seconds .. " seconds **", rElement, 220, 220, 0, false) setTimer(function (player) local vehicles = getElementsByType ( "vehicle" ) outputChatBox("** All unoccupied vehicles respawned **", rElement, 220, 220, 0, false) outputDebugString(getPlayerName(player) .. " respawned vehicles.") for k, vehicle in ipairs ( vehicles ) do if isEmpty( vehicle ) then respawnVehicle ( vehicle ) end end end, seconds * 1000, 1, player) else outputChatBox("Syntax: /respawn ", player, 220, 220, 0, false) end end addCommandHandler("respawn",respawnVehicles) function isEmpty( vehicle ) local passengers = getVehicleMaxPassengers( vehicle ) if type( passengers ) == 'number' then for seat = 0, passengers do if getVehicleOccupant( vehicle, seat ) then return false end end end return true end
×
×
  • Create New...