Jump to content

Steven23

Members
  • Posts

    25
  • Joined

  • Last visited

Everything posted by Steven23

  1. el problema es que el script boss nemesis , el cual postie el contenido de los lua antes el problema se centra en que el boss tiene poca vida. como puedo hacer para que tenga vida mas elvedada , en otros sv e visto un nemesis ( boos.lua ) que tiene mas hp . en mi caso modifique esta linea de los lua bossc y bosss function() exports.extra_health:setElementExtraHealth(nemesi, 99999999) end, 999999999, 0) probe con varias cifras y nada sigue teniendo 100 hp el nemesis entonces no se como hacer que el nemesis tenga mas hp
  2. hola castillo , tienes una figura muy respetada en lo que es MTA y tu talento de script biene de tu habilidad y tu dedicacion he tratado de seguir tus pasos , al menos logre algo de princicpiante , en cambiar pocisiones de bosses o de otras cosas, editar huds , poner canciones a un determinado lugar , etc pero tengo un problema , el cual es el sieguiente tengo a un boss nemesis que funciona con slothbot el cual muere muy rapido,( tiene vida 100) en el lua le cambie la vida a 9999999 por ejemplo y sigue con 100 me doy cuenta de eso por lo rapido q lo matan, ademas se queda quieto , cuando ve a un player, osea para que te ataque tienes que golpearlo o dispararle la verdad esto me trae mala fama al sv ,, el nemesis mas lol , quiero que me ayudes a como subirle la vida en otros server he visto que el nemesis es duradero , supongo qe tendra mas de 100 de vida aki te posteo el contenido lua en la carpeta del boss , hay 3 archivos lua ( boss.lua, bosss.lua, bossc.lua ) contenido del bosss lua --------------------------------------------------------------------------------------- local hillRadar = createRadarArea ( 280.75512695313, 1869.296875, 200, 200, 181, 0, 0, 255 ) function Nemesisbymanawydan ( ) baz = createObject ( 360, 280.75512695313, 1869.296875, 8.7578125, 0, 0, 0 ) nemesi = exports [ "slothBot" ]:spawnBot ( 280.75512695313, 1869.296875, 8.7578125, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) setElementModel ( nemesi, 107 ) outputChatBox ("#9E0000Nemesis: #9E0000 moriran STARS!",getRootElement(), 255, 255, 255, true ) local myBlip = (createBlipAttachedTo ( nemesi, 0 )) attachElements ( baz, nemesi, 0.2, 0.1, 0.5, 0, 90, 0 ) triggerClientEvent ( "nsound", root ) triggerClientEvent ( "nemesismissel", root ) setTimer( function() exports.extra_health:setElementExtraHealth(nemesi, 99999999) end, 999999999, 0) end addEventHandler("onResourceStart", resourceRoot, Nemesisbymanawydan) addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement) function money (theKiller) if (source == nemesi) then givePlayerMoney(theKiller,math.random(5000)) outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFMato al Boss!, Ha Ganado $5.000 como recompensa",getRootElement(), 255, 255, 255, true ) setTimer(Nemesisbymanawydan, 16000, 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) ------------------------------------------------------------------------------------- contenido del boss.lua ------------------- local hillRadar = createRadarArea ( 280.75512695313, 1869.296875, 200, 200, 181, 0, 0, 255 ) function Nemesisbymanawydan ( ) baz = createObject ( 360, 280.75512695313, 1869.296875, 8.7578125, 0, 0, 0 ) nemesi = exports [ "slothBot" ]:spawnBot ( 280.75512695313, 1869.296875, 8.7578125, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) setElementModel ( nemesi, 107 ) outputChatBox ("#9E0000Nemesis: #9E0000 Ijos de puta Moriran, STARS!",getRootElement(), 255, 255, 255, true ) local myBlip = (createBlipAttachedTo ( nemesi, 0 )) attachElements ( baz, nemesi, 0.2, 0.1, 0.5, 0, 90, 0 ) triggerClientEvent ( "nsound", root ) triggerClientEvent ( "nemesismissel", root ) setTimer( function() exports.extra_health:setElementExtraHealth(nemesi, 99999999) end, 999999999, 0) end addEventHandler("onResourceStart", resourceRoot, Nemesisbymanawydan) addEvent("onBotWasted", true) addEventHandler("onBotWasted", getRootElement) function money (theKiller) if (source == nemesi) then givePlayerMoney(theKiller,math.random(5000)) outputChatBox ( getPlayerName ( theKiller ) .. " #081DBFMato al Boss!, Ha Ganado $5.000 como recompensa",getRootElement(), 255, 255, 255, true ) setTimer(Nemesisbymanawydan, 16000, 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) -------------------------------------------------------------------------------------------- contenido del bossc.lua ---------------------------------------------- function Skinemesis1() txd = engineLoadTXD("data/107.txd", 107 ) engineImportTXD(txd, 107) dff = engineLoadDFF("data/107.dff", 107 ) engineReplaceModel(dff, 107) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), Skinemesis1) addEvent ( "nsound", true ) addEventHandler ( "nsound", root, function ( ) playSound ( "data/nemesis.mp3" ) end ) addEvent ( "nemesismissel", true ) addEventHandler ( "nemesismissel", root, function ( ) x, y, z = getElementPosition("nemesi") createProjectile(getLocalPlayer(), 19, x, y, z) setPedAnimation ( nemesi, "ROCKET", "RocketFire") end ) ------------------------------------ eso es todo lo que contiene la carpeta boss nemesis ,espero tu comprension y que porfavor me ayudes te lo ruego castillo a resolver este problema gracias
  3. si se resolvio gracias sensacion y castilllo por aclarar mis dudas !!!
  4. Contenido 1 LUA CLIENT -------------------------- -- waterFunc Client -- Variables root = getRootElement() localPlayer = getLocalPlayer() local zx,zy = guiGetScreenSize() local zx2,zy2 = zx/2,zy/2 local leading = 25 local crow = 30 local currLevel = 0 local WguiVisible = false --local buttonState = nil --local checkBox = nil local runFlag = false local gFnt = "default-bold-small" addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),function() wdwWgui = guiCreateWindow(zx-410,zy-250,400,225,"waterFunc 1.0.1",false) guiSetFont(wdwWgui,gFnt) guiSetAlpha(wdwWgui,. wgui_flood_label = guiCreateLabel(10,crow,100,15,"Flood Level",false,wdwWgui) guiSetFont(wgui_flood_label,gFnt) guiLabelSetColor(wgui_flood_label,128,128,0) wgui_flood_edit = guiCreateEdit(95,crow-3,45,20,"10",false,wdwWgui) guiSetFont(wgui_flood_edit,gFnt) wgui_fld_set_btn = guiCreateButton(150,crow+1,35,15,"OK",false,wdwWgui) guiSetFont(wgui_fld_set_btn,gFnt) wgui_wvehgt_label = guiCreateLabel(210,crow,100,15,"Wave Height",false,wdwWgui) guiSetFont(wgui_wvehgt_label,gFnt) guiLabelSetColor(wgui_wvehgt_label,128,128,0) wgui_wvehgt_edit = guiCreateEdit(300,crow-3,45,20,"2",false,wdwWgui) guiSetFont(wgui_wvehgt_edit,gFnt) wgui_wvehgt_set_btn = guiCreateButton(355,crow+1,35,15,"OK",false,wdwWgui) guiSetFont(wgui_wvehgt_set_btn,gFnt) crow = crow+leading wgui_srge_label = guiCreateLabel(10,crow,100,15,"Surge Level",false,wdwWgui) guiSetFont(wgui_srge_label,gFnt) guiLabelSetColor(wgui_srge_label,128,128,0) wgui_srge_edit = guiCreateEdit(95,crow-3,45,20,"25",false,wdwWgui) guiSetFont(wgui_srge_edit,gFnt) wgui_srge_set_btn = guiCreateButton(150,crow+1,35,15,"OK",false,wdwWgui) guiSetFont(wgui_srge_set_btn,gFnt) crow = crow+leading wgui_ebb_label = guiCreateLabel(10,crow,100,15,"Ebb Level",false,wdwWgui) guiSetFont(wgui_ebb_label,gFnt) guiLabelSetColor(wgui_ebb_label,128,128,0) wgui_ebb_edit = guiCreateEdit(95,crow-3,45,20,"25",false,wdwWgui) guiSetFont(wgui_ebb_edit,gFnt) wgui_ebb_set_btn = guiCreateButton(150,crow+1,35,15,"OK",false,wdwWgui) guiSetFont(wgui_ebb_set_btn,gFnt) crow = crow+leading wgui_tide_label = guiCreateLabel(10,crow,100,15,"Tide Level",false,wdwWgui) guiSetFont(wgui_tide_label,gFnt) guiLabelSetColor(wgui_tide_label,128,128,0) wgui_tide_edit = guiCreateEdit(95,crow-3,45,20,"25",false,wdwWgui) guiSetFont(wgui_tide_edit,gFnt) wgui_tde_set_btn = guiCreateButton(150,crow+1,35,15,"OK",false,wdwWgui) guiSetFont(wgui_tde_set_btn,gFnt) crow = crow+leading+5 wgui_waterlevel_label = guiCreateLabel(10,crow,150,15,"Current Water Level",false,wdwWgui) guiSetFont(wgui_waterlevel_label,gFnt) guiLabelSetColor(wgui_waterlevel_label,128,128,0) wgui_spd_label = guiCreateLabel(210,crow,100,15,"Speed",false,wdwWgui) guiSetFont(wgui_spd_label,gFnt) guiLabelSetColor(wgui_spd_label,128,128,0) crow = crow+10 wgui_waterlevel_status = guiCreateLabel(15,crow,350,50,"0.00",false,wdwWgui) guiSetFont(wgui_waterlevel_status,"sa-header") guiLabelSetColor(wgui_waterlevel_status,0,255,0) crow = crow+20 wgui_waterspeed_scrn_label1 = guiCreateLabel(215,crow,150,15,"1",false,wdwWgui) guiSetFont(wgui_waterspeed_scrn_label1,gFnt) guiLabelSetColor(wgui_waterspeed_scrn_label1,128,128,0) wgui_waterspeed_rbtn1 = guiCreateRadioButton(225,crow,40,20,"",false,wdwWgui) wgui_waterspeed_scrn_label2 = guiCreateLabel(250,crow,150,15,"2",false,wdwWgui) guiSetFont(wgui_waterspeed_scrn_label2,gFnt) guiLabelSetColor(wgui_waterspeed_scrn_label2,128,128,0) wgui_waterspeed_rbtn2 = guiCreateRadioButton(260,crow,405,20,"",false,wdwWgui) wgui_waterspeed_scrn_label3 = guiCreateLabel(285,crow,150,15,"3",false,wdwWgui) guiSetFont(wgui_waterspeed_scrn_label3,gFnt) guiLabelSetColor(wgui_waterspeed_scrn_label3,128,128,0) wgui_waterspeed_rbtn3 = guiCreateRadioButton(295,crow,40,20,"",false,wdwWgui) wgui_waterspeed_scrn_label4 = guiCreateLabel(320,crow,150,15,"4",false,wdwWgui) guiSetFont(wgui_waterspeed_scrn_label4,gFnt) guiLabelSetColor(wgui_waterspeed_scrn_label4,128,128,0) wgui_waterspeed_rbtn4 = guiCreateRadioButton(330,crow,40,20,"",false,wdwWgui) wgui_waterspeed_scrn_label5 = guiCreateLabel(355,crow,150,15,"5",false,wdwWgui) guiSetFont(wgui_waterspeed_scrn_label5,gFnt) guiLabelSetColor(wgui_waterspeed_scrn_label5,128,128,0) wgui_waterspeed_rbtn5 = guiCreateRadioButton(365,crow,45,20,"",false,wdwWgui) guiRadioButtonSetSelected(wgui_waterspeed_rbtn3,true) crow = crow+leading+10 wgui_waterlevel_checkBox = guiCreateCheckBox(10,crow,15,15,"",false,false,wdwWgui) wgui_waterlevel_scrn_label = guiCreateLabel(35,crow,150,15,"Echo On Screen",false,wdwWgui) guiSetFont(wgui_waterlevel_scrn_label,gFnt) guiLabelSetColor(wgui_waterlevel_scrn_label,128,128,0) wgui_reset_wtr_label = guiCreateLabel(275,crow,100,15,"Reset Water",false,wdwWgui) guiSetFont(wgui_reset_wtr_label,gFnt) guiLabelSetColor(wgui_reset_wtr_label,128,128,0) wgui_wtr_reset_btn = guiCreateButton(355,crow+1,35,15,"OK",false,wdwWgui) guiSetFont(wgui_wtr_reset_btn,gFnt) crow = crow+leading wtrScrnStatus = guiCreateWindow(180,1000,75,30,"Water Level",false) guiSetFont(wtrScrnStatus, gFnt) guiSetAlpha(wtrScrnStatus,. wgui_waterlevel_scrn_status = guiCreateLabel(.25,.5,.5,1,"",true,wtrScrnStatus) guiSetFont(wgui_waterlevel_scrn_status,"sa-normal") guiLabelSetColor(wgui_waterlevel_scrn_status,0,255,0) guiWindowSetMovable(wdwWgui,true) guiWindowSetSizable(wdwWgui,false) guiSetVisible(wdwWgui,false) guiWindowSetMovable(wtrScrnStatus,true) guiWindowSetSizable(wtrScrnStatus,false) guiSetVisible(wtrScrnStatus,false) showCursor(false) addEventHandler("onClientGUIClick",wgui_fld_set_btn,function(button,state) if button == "left" and state == "up" then local editVal = tonumber(guiGetText(wgui_flood_edit)) if editVal then triggerServerEvent("onFloodMap",root,localPlayer,editVal) end end end, false) addEventHandler("onClientGUIClick",wgui_tde_set_btn,function(button,state) if button == "left" and state == "up" then local editVal = tonumber(guiGetText(wgui_tide_edit)) if (editVal > 0) then runFlag = true setWaterSpeedVal() triggerServerEvent("onRunTides",root,localPlayer,runFlag,wSpeed,editVal) elseif (editVal == 0) then runFlag = false triggerServerEvent("onRunTides",root,localPlayer,runFlag) end end end, false) addEventHandler("onClientGUIClick",wgui_srge_set_btn,function(button,state) if button == "left" and state == "up" then local editVal = tonumber(guiGetText(wgui_srge_edit)) if editVal then setWaterSpeedVal() triggerServerEvent("onWaterSurge",root,localPlayer,wSpeed,editVal) end end end, false) addEventHandler("onClientGUIClick",wgui_ebb_set_btn,function(button,state) if button == "left" and state == "up" then local editVal = tonumber(guiGetText(wgui_ebb_edit)) if editVal then setWaterSpeedVal() triggerServerEvent("onWaterEbb",root,localPlayer,wSpeed,editVal) end end end, false) addEventHandler("onClientGUIClick",wgui_wvehgt_set_btn,function(button,state) if button == "left" and state == "up" then local editVal = tonumber(guiGetText(wgui_wvehgt_edit)) if editVal then triggerServerEvent("onSetWveHeight",root,localPlayer,editVal) end end end, false) addEventHandler("onClientGUIClick",wgui_wtr_reset_btn,function(button,state) if button == "left" and state == "up" then guiSetText(wgui_flood_edit,"10") guiSetText(wgui_srge_edit,"25") guiSetText(wgui_ebb_edit,"25") guiSetText(wgui_tide_edit,"25") guiSetText(wgui_wvehgt_edit,"2") guiRadioButtonSetSelected(wgui_waterspeed_rbtn3,true) guiCheckBoxSetSelected(wgui_waterlevel_checkBox,false) triggerServerEvent("onWtrFuncReset",root,localPlayer) end end, false) bindKey("F6","down",callWgui) end) function callWgui() triggerServerEvent("onTriggerWgui",root,localPlayer) end function displayWgui(thePlayer) --,key,keyState) if WguiVisible == false then guiSetVisible(wdwWgui,true) showCursor(true) WguiVisible = true else guiSetVisible(wdwWgui,false) showCursor(false) WguiVisible = false end end addEvent("ondisplayWgui",true) addEventHandler("ondisplayWgui",root,displayWgui) function setWaterSpeedVal() if guiRadioButtonGetSelected(wgui_waterspeed_rbtn1) == true then wSpeed = 1 elseif guiRadioButtonGetSelected(wgui_waterspeed_rbtn2) == true then wSpeed = 2 elseif guiRadioButtonGetSelected(wgui_waterspeed_rbtn3) == true then wSpeed = 3 elseif guiRadioButtonGetSelected(wgui_waterspeed_rbtn4) == true then wSpeed = 4 elseif guiRadioButtonGetSelected(wgui_waterspeed_rbtn5) == true then wSpeed = 5 end end function waterStatus(waterlevel) waterlevel = tostring(waterlevel) waterlevel = string.format("%.2f",waterlevel) guiSetText(wgui_waterlevel_status,waterlevel) guiSetText(wgui_waterlevel_scrn_status,waterlevel) if guiCheckBoxGetSelected(wgui_waterlevel_checkBox) == true then guiSetVisible(wtrScrnStatus,true) else guiSetVisible(wtrScrnStatus,false) end end addEvent("onWaterStatus",true) addEventHandler("onWaterStatus",root,waterStatus) function upDateCurrentWaterLevel(levelChange) currLevel = levelChange thePlayer = localPlayer triggerEvent("onWaterStatus",root,currLevel) --triggerServerEvent("onCurrentWaterLevel",root,thePlayer,currLevel) end addEvent("onupDateCurrentWaterLevel",true) addEventHandler("onupDateCurrentWaterLevel",root,upDateCurrentWaterLevel) Contenido 2 LUA SERVER ------------------------------------------- -- waterFunc Server --[[ floodMap set map water level waterSurge gradual water level increase waterEbb gradual water level decrease waterLevel set river/lake water level runTides set water level increase/decrease cycle ]] local root = getRootElement() local origLevel = 0 local startLevel = 0 local wtrLevel = 0 local currLevel = 0 local setLevel = 0 local waterSpeed = 2 local wtrTimerInt = 0 local wtrTimerCnt = 0 local wtrChgRate = 0.02 local wtrSizeVal = 2998 local wtr_x = 0 local wtr_y = 0 local wtr_z = 0 local tidesRun = false local waterRun = false local isWater = false local wtrTimer = nil local cycleTimer = nil local wChkTimer = nil --[[ function dbugmsg(flabel) if isElement(water) then isWater = true end outputDebugString("---------- "..flabel) outputDebugString("VARS: orig="..tostring(startLevel) ..", wlvl="..tostring(wtrLevel) .." set: "..tostring(setLevel) .." curr: "..tostring(currLevel) .." wtrspd: "..tostring(waterSpeed) .." wtrTimerInt: "..tostring(wtrTimerInt) .." wtrTimerCnt: "..tostring(wtrTimerCnt)) --" targ: "..tostring(targetLevel).. outputDebugString("water: "..tostring(isWater) .." trun: "..tostring(tidesRun) .." wrun: "..tostring(waterRun) .." wtmr: "..tostring(wtrTimer) .." cyctmr: "..tostring(cycleTimer) .." chktmr: "..tostring(wChkTimer)) if wtrCo ~= nil then outputDebugString(tostring(wtrCo)..": "..coroutine.status(wtrCo)) end end ]] function triggerWgui(thePlayer) if hasObjectPermissionTo(thePlayer,"function.displayWgui",false) then triggerClientEvent(thePlayer,"ondisplayWgui",getResourceRootElement()) end end addEvent("onTriggerWgui",true) addEventHandler("onTriggerWgui",root,triggerWgui) -------------------------------------------- -- Water Functions -------------------------------------------- function makeWater(thePlayer) if not isWater then local sW_X = -wtrSizeVal local sW_Y = -wtrSizeVal local sE_X = wtrSizeVal local sE_Y = -wtrSizeVal local nW_X = -wtrSizeVal local nW_Y = wtrSizeVal local nE_X = wtrSizeVal local nE_Y = wtrSizeVal theWater = createWater(sW_X,sW_Y,wtrLevel,sE_X,sE_Y,wtrLevel,nW_X,nW_Y,wtrLevel,nE_X,nE_Y,wtrLevel) isWater = isElement(theWater) end end addEvent("onMakeWater",true) addEventHandler("onMakeWater",root,makeWater) function destroyWater() if isWater then destroyElement(theWater) isWater = false end end function wtrFuncReset(thePlayer) wtrCo = nil if isTimer(wtrTimer) then killTimer(wtrTimer) end if isTimer(cycleTimer) then killTimer(cycleTimer) end if isTimer(wChkTimer) then killTimer(wChkTimer) end if isWater then destroyWater() end origLevel = 0 startLevel = 0 wtrLevel = 0 currLevel = 0 setLevel = 0 waterSpeed = 3 wtrTimerInt = 0 wtrTimerCnt = 0 wtrChgRate = 0.02 wtrSizeVal = 2998 tidesRun = false waterRun = false setWaveHeight(0) setWaterLevel(0) triggerClientEvent("onupDateCurrentWaterLevel",root,wtrLevel) end addEvent("onWtrFuncReset",true) addEventHandler("onWtrFuncReset",root,wtrFuncReset) function waterTimerChk() if not isTimer(wtrTimer) then waterRun = false killTimer(wtrTimerChk) end end function setWaterSpeed() if waterSpeed == 1 then wtrChgRate = 0.01 wtrTimerCnt = setLevel * 100 wtrTimerInt = 100 elseif waterSpeed == 2 then wtrChgRate = 0.02 wtrTimerCnt = setLevel * 50 wtrTimerInt = 100 elseif waterSpeed == 3 then wtrChgRate = 0.02 wtrTimerCnt = setLevel * 50 wtrTimerInt = 50 elseif waterSpeed == 4 then wtrTimerInt = 50 wtrChgRate = 0.04 wtrTimerCnt = setLevel * 25 elseif waterSpeed == 5 then wtrTimerInt = 50 wtrChgRate = 0.1 wtrTimerCnt = setLevel * 10 end end function setWveHeight(thePlayer,waveHeight) if waveHeight then local waveHeight = waveHeight setWaveHeight(waveHeight) end end addEvent("onSetWveHeight",true) addEventHandler("onSetWveHeight",root,setWveHeight) function currentWaterLevel(thePlayer,levelChange) currLevel = levelChange end addEvent("onCurrentWaterLevel",true) addEventHandler("onCurrentWaterLevel",root,currentWaterLevel) -- Set map water level function floodMap(thePlayer,newLevel) --if hasObjectPermissionTo(thePlayer,"function.floodMap",false) then if waterRun then outputDebugString("A Water Function Is Already Running",0,255,0,0) else if newLevel > 0 then makeWater(thePlayer) end setLevel = newLevel if isWater then setWaterLevel(theWater,setLevel) else setWaterLevel(setLevel) end triggerClientEvent("onupDateCurrentWaterLevel",root,setLevel) end --end end addEvent("onFloodMap",true) addEventHandler("onFloodMap",root,floodMap) -- Raise water level function waterSurge(thePlayer,wSpeed,newLevel) --if hasObjectPermissionTo(thePlayer,"function.waterSurge",false) then if waterRun then outputDebugString("A Water Function Is Already Running",0,255,0,0) else waterRun = true wtrLevel = currLevel setLevel = newLevel waterSpeed = wSpeed setWaterSpeed() local flabel = " Surge:" wtrTimer = setTimer(waterRise,wtrTimerInt,wtrTimerCnt,wtrLevel) wtrTimerChk = setTimer(waterTimerChk,500,0) --dbugmsg(flabel) end --end end addEvent("onWaterSurge",true) addEventHandler("onWaterSurge",root,waterSurge) function waterRise(setLevel) if currLevel == 0 and wtrTimerCnt > 0 then makeWater(thePlayer) end wtrLevel = (wtrLevel + wtrChgRate) if isWater then setWaterLevel(theWater,wtrLevel) else setWaterLevel(wtrLevel) end triggerClientEvent("onupDateCurrentWaterLevel",root,wtrLevel) end -- Lower water level function waterEbb(thePlayer,wSpeed,newLevel) --if hasObjectPermissionTo(thePlayer,"function.waterEbb",false) then if waterRun then outputDebugString("A Water Function Is Already Running",0,255,0,0) else waterRun = true wtrLevel = currLevel setLevel = newLevel waterSpeed = wSpeed setWaterSpeed() local flabel = " Ebb:" wtrTimer = setTimer(waterFall,wtrTimerInt,wtrTimerCnt,wtrLevel) wtrTimerChk = setTimer(waterTimerChk,1000,0) --dbugmsg(flabel) end --end end addEvent("onWaterEbb",true) addEventHandler("onWaterEbb",root,waterEbb) function waterFall(setLevel) if currLevel == 0 and wtrTimerCnt > 0 then destroyWater(thePlayer) end wtrLevel = (wtrLevel - wtrChgRate) if isWater then setWaterLevel(theWater,wtrLevel) else setWaterLevel(wtrLevel) end triggerClientEvent("onupDateCurrentWaterLevel",root,wtrLevel) end -- Run Tide Cycle function runTides(thePlayer,runFlag,wSpeed,newLevel) --if hasObjectPermissionTo(thePlayer,"function.runTides",false) then tidesRun = runFlag if tidesRun then if waterRun then outputDebugString("A Water Function Is Already Running",0,255,0,0) else if newLevel > 0 then waterSpeed = wSpeed waterRun = true --makeWater(thePlayer) setLevel = newLevel wtrCo = coroutine.create(wtrCorout) coroutine.resume(wtrCo) cycleTimer = setTimer(tidesTimerRun,500,0,setLevel) end end else waterRun = false end --end end addEvent("onRunTides",true) addEventHandler("onRunTides",root,runTides) function wtrCorout() local flabel = " Tides:" setWaterSpeed() wtrLevel = currLevel wtrTimer = setTimer(waterRise,wtrTimerInt,wtrTimerCnt,wtrLevel) coroutine.yield() wtrLevel = currLevel wtrTimer = setTimer(waterFall,wtrTimerInt,wtrTimerCnt,wtrLevel) --dbugmsg(flabel) end function tidesTimerRun() local timerChk = isTimer(wtrTimer) if timerChk == false then if wtrCo ~= nil then if coroutine.status(wtrCo) == "dead" then if not tidesRun then killTimer(cycleTimer) wtrTimerChk = setTimer(waterTimerChk,wtrTimerInt,0) return else wtrCo = coroutine.create(wtrCorout) end elseif coroutine.status(wtrCo) == "suspended" then coroutine.resume(wtrCo) end end end end porfavor ayudame castillo..
  5. NO TE OFENDAS ALEXMERCERED , PERO CONFIO MAS EN CASTILLO ES EL MEJO DE TODOS LOS SCRIPTERS CASTILLO QUE POSTEO ,, LOS ARCHIVOS DEL BLOC DE NOTAS DEL WATERFUNCK O LO QUE ESTA EN EL ACL ?
  6. CASTILLO AYUDAME PORFAVOR .... TU SABES MAS DE ESTOS TEMAS PLEASE
  7. El problema es el siguiente, me descarge el script water func de la pagina de la comunidad , todo okay segui todos los pasos copiar cierto texto en el acl de admin y el de las funciones .... y ayer entro un user que cuando entro al server le salio el panel de waterfunc como ? como puede salir a los user normales el panel , yo segui los pasos para ponerlo a uso de los admins y sin embargo entra un user y puede utilizarlo , me malogra la hora de tsuamis , porfavor hay alguna solucion se los pido ayudenme lo malogra reiniciando todo el tsunami , manipulan los botenes , la pregunta es porque los players que no son mods y admins pueden manejarlo ?
  8. no ..... un amigo me dijo que puede ser ataques de msDOS . otro me dice que el internet que tengo es pirata pero no.. es MOVISTAR. DE COMPAÑIA
  9. si. pero como antes no pasaba esto ?? antes no desconectaba a todos por time out
  10. Hola a todos , tengo un problema , si fui algo insultante la otra vez les pido profundas disculpas es que tube un arranque desesperacion muy complicado pero en fin ahora tengo un problema , veran un dia me cortaron la luz cuando volvio , no entre a mi server , lo abri dos dias despues y cuando estaba todo online empezaron a entrar usuarios de costumbre , cuando pasaron 10 min de aver entrado los usurios todos se desconectaron con el ( TIME OUT ) ENTONCES borre algunos resources , hubo un amigo que me dijo que muchos resources daban lag ... removi 50 resources , el problema del ( TIME OUT) SE MANTIENE ,, realmente este tema me saca de quisio si alguien tiene alguna solucion , o el motivo pq pasa esto del t( TIME OUT ) Q DESCONECTA A TODOS MIS PLAYERS ,, SE LO AGRADECERIA ENORMEMENTE PORFAVOR PLEASE GRACIAS
  11. disculpas si ofendi alguien es la deseperacion , no se preocupen ... ANDRIX ME AYUDO ....
  12. QUE ES ESO , NO HE VISTO NUNCA ESOS ESCRITOS NO SE QUE SIGNIFICAN Y QUE SE HACE CON ELLOS PORFAVOR INSTRUYANME , no he nacido sabiendo el idioma Script
  13. spaw , spawm lo que sea porque crres que pido ayuda, si supiera como hacer uno no pediria ayuda no lo crees ? insisto , alguie puede ayudarme almenos darme un ejemplo de como crear spawm clanes sin el spawm menu
  14. NO ES EL SPAWM MENU ... ES UNO DONDE AL ENTRAR DEFRENTE SALEN EN SU TEAM .. COMO EN EL SERVIDOR |VS| biohazard, el spawn que tiene alguien jugo en el |Vs| ese spaw , no utilizaba el spawmenu .. lo que quiero saber es si hay algun resource que haga eso , que spawnee a los teams , sin que salga el spawmenu , que lagea y tira error
  15. 1) TENGO OTRO PROBLEMA , VERAN , TENGO UNA BASE MAPEADA Y QUIERO PONERLE TORRETAS LANZAMISILES AUTOMATICAS QUE CUANDO OTRO USER DE OTRO CLAN INGRESE CON ELICOPTERO O AVION , ESTA LE LANZE MISILES , AHORA , ME DESCARGE UN MAPA DE ADMIN_BASE QUE TIENE UNA BASE EN AREA51 , Y QUE SOLO SE ENTRA CON EL SKIN DEL ARMY 287 , ADEMAS ESTA CUENTA CON TORRETAS MISILERAS QUE LANZAN COETES A LOS INTRUSOS EL PROBLEMA ES QUE QUIZE CAMBIAR LA POCISION DE ESAS TORRETAS A LA REFINERIA ¨LA MINA ¨ DONDE ESTA MI BASE Y TENERLAS ALLI , NO SE LA VERDAD COMO HACERLO , QUIZE CAMBIAR LA POCION DE ESAS TORRETAS , PERO NO DISPARAN , ? NO SE SI SE PODRA CREAR UN SCRIP SIMILAR O TAL VES TU TENGAS ALGUN EJEMPPLO PARA INSTRUIRME CASTILLO SOS MI IDOLO DAME UNA AYUDA PORFAVOR 2) la otra vez vi un server que tenia LOS SPAW PARA LOS CLANES , SIN ESE SPAW SISTEM DONDE SALE UNA VENTANA Y TIENES QUE ELEGIR LA CLASE ETC ( ESO NO ) , LO QUE VI FUE QUE CUANDO ENTRABAN A ESE SERVER DEFRENTE SE WARPEABAN A SU CLAN , ENTONCE HE BUSCADO ESE SCRIPT ,RESOURCE , NO LO ENCUENTRO , DIGANME PORFAVOR COMO SE PUEDE CREAR UNO SIMILAR O DONDE ENCUENTRO ESE SPAWCLANES directos :>>> (que no sea el de spawclases) PORFAVOR CASTILLO O ALGUIEN QUE SEPA DE ESTOS TEMAS AYUDENME.
  16. CASTILLO ERES UN DIOS SOLIDSNAKE LIVE ya esta , aunque no veo mi server en la lista la gente entra , eso es lo importante .. bueno gracias esta bien como esta .. GRACIAS ESPECIALES A CASTILLOO , QUE SIN EL NO HUBIERA LOGRADO QUE LA GENTE ENTRARA A MI SERVIDOR CASTILLO TENGO OTRO PROBLEMA , VERAS , TENGO UNA BASE MAPEADA Y QUIERO PONERLE TORRETAS LANZAMISILES AUTOMATICAS QUE CUANDO OTRO USER DE OTRO CLAN INGRESE CON ELICOPTERO O AVION , ESTA LE LANZE MISILES , AHORA , ME DESCARGE UN MAPA DE ADMIN_BASE QUE TIENE UNA BASE EN AREA51 , Y QUE SOLO SE ENTRA CON EL SKIN DEL ARMY 287 , ADEMAS ESTA CUENTA CON TORRETAS MISILERAS QUE LANZAN COETES A LOS INTRUSOS EL PROBLEMA ES QUE QUIZE CAMBIAR LA POCISION DE ESAS TORRETAS A LA REFINERIA ¨LA MINA ¨ DONDE ESTA MI BASE Y TENERLAS ALLI , NO SE LA VERDAD COMO HACERLO , QUIZE CAMBIAR LA POCION DE ESAS TORRETAS , PERO NO DISPARAN , ? NO SE SI SE PODRA CREAR UN SCRIP SIMILAR O TAL VES TU TENGAS ALGUN EJEMPPLO PARA INSTRUIRME CASTILLO SOS MI IDOLO DAME UNA AYUDA PORFAVOR
  17. castillo , mira lo deje 15 horas , unos cuantos entraban pero , luego nadie mas , pude observar que el server salia por plazos cortos de tiempo en la lista de internet , luego se ponia color trasparente y desaparecia ?, no se veia el ping ,ni el gametype mientras que a los otros si ? mientras algunos entraban , lo revisaba otra vez y me salia con loading al costado .. luego de las 15 horas , veo que no esta en la lista .... solo veo a los que ya estaban , me refiero a otros servidores ?
  18. CASTILLO QUEDO ASI ResidentEvil|BIO||MODS,CLANES,BASES,SECRETOS] 22003 32 1 22005 DE AKI TODO IGUAL PARA ABAJO he hecho lo que indicas , pero , no se ve el server en la lista de internet , sin embargo los puertos ya estan abiertos !!! help me please
  19. ResidentEvil|BIO||MODS,CLANES,BASES,SECRETOS] 192.168.1.15 22003 32 1 22005 1 5 20 https://wiki.multitheftauto.com/wiki/Anti-cheat_guide e.g. To disable anti-cheat #2 and #3, use: 2,3 --> https://wiki.multitheftauto.com/wiki/Anti-cheat_guide e.g. To enable special detection #12 use: 12 --> 1 https://wiki.multitheftauto.com/wiki/GetPlayerVersion and look like this: 1.1.0-9.03100.0 Note that this setting only determines if the client should be prompted to update. The actual build number they receive will be the highest available. See: https://nightly.multitheftauto.com/ver --> https://nightly.multitheftauto.com/ver --> 1 0 medium https://wiki.multitheftauto.com/wiki/Ser ... erver.conf --> 100 1500 500 500 1000 100 100 0 0 150 0 https://wiki.multitheftauto.com/wiki/Filepath Keep a backup of this file in a safe place. Default value: server-id.keys--> server-id.keys logs/server.log logs/server_auth.log logs/db.log acl.xml logs/scripts.log 0 0 36 0 0 1 4 backups 3 5 OK AKI ESTA
  20. SI , ESTAN ABIERTOS , POR EL ROUTER 22003 UDP /TCP 22005 UDP(TCP 22126 UDP/TCP --------------------------------------------------------------- ESTAN ABIERTOS EN LA WEB DEL MODEN , MI IP ES ESTATICA CUANDO ABRO LA CONSOLA DEL SERVER , PONGO OPENPORTS , Y ME SALEN QUE ESTAN ABIERTOS ENTRO YO ..... PERO ME SALE EN LOCAL , MAS NOOO , MAS NOO , EN LA LISTA DE INTERNET , CUANDO PIDO AYUDA A UNOS AMIGOS DE OTROS PAISES PARA QUE BUSQUEN MI SERVER , NO LO ENCUENTRAN , NI CON LA IP..... ENTONCES QUE HAGO
  21. CASTILLO TE AMO , ERES MI GRAN IDOLO HE SEGUIDO TODAS TUS AYUDAS, ME HE BAJADO DE LA PAGINA DE LA COMUNIDAD TODOS TUS APORTES, LOS CONSIDERO LOS MEJORES, PORFAVOR CASTILLO PAPI , PORFAVOR , DIOS SUPREMO AYUDAME , SINCERMENTE ESTE PROBLEMA ME DA GANAS DE LLORAR COMO UN CRIO , PORFAVOR AYUDAME AUNQUE SEA DAME LA SOLUCION POSIBLE , BIEN EXPLICADA DE COMO puedo Yo , resolver esto.
  22. YA DESACTIVE EL FIREBALL , ? A QUE TE REFIERES CON MTA CON PERMISOS ??? NO TE COMPRENDO EXPLICATE PORFAVOR :::: TE REFIERES A QUE ALGO TENGO QUE DESACTIVAR A APARTE DEL FIREWAL
  23. DONDE ESTAN LOS EXPERTOS EN ESTOS TEMAS , COMO SE HACEN DE ROGAR, NECESITO AYUDA , MIREN MI POST ANTERIOR PORFAVOR
  24. Hola a todos , tengo un problema , despues de preguntar a otros admins de otros server , me di con la sorpresa que nadie sabia nada de mi problema , entonces decidi acudir a este foro , se que son buenas personas , porfavor ayudenme estoy al borde del suicidio.. ............ EL PROBLEMA ES EL SIGUIENTE, CREE UN SERVIDOR DERBY , LOS PRIMEROS MESES ESTABA RE BIEN , PERO LUEGO NO SE QUE PASO QUE CUANDO INTENTE ABRIR LOS PUERTOS , ME SALIA UN MENSAJE DE QUE ESTABAN CERRADOS , PERO EN REALIDAD ESTABAN ABIERTOS, PUES LO REVISE EN LA WEB DEL RAUTER, ENTONCES , ME CAMBIE LA DIRECCION IP, ESTUBO BIEN POR UN TIEMPO , pero luego paso esto, un dia apage mi lap y cuando la encendi mi direccio ip cambio cuando intente entrar a mi server y abrir los puertos , openports ::::::: me salian que estaban abiertos , sin nisikiera hacer yo en el rauter? cuando entre al servidor , pasaron 3 , 4 , 5 horas y nadie entraba , luego cuando vi ,la lista de internet no estaba el servidor , solo estaba en el LOCAL , lo deje por un tiempo , ahora me compre otro rauter , desintale el mta , el gta , no deje rastro de el , cuando los intale denuevo entre al MTA SERVER SIN ABRIR LOS PUERTOS DEL RAUTER , Y ME DI CON LA SORPRESA DE QUE SEGUIAN IGUALES , ESTABAN ABIERTOS , PERO LOS DEL RAUTER ESTABAN CERRADOS , ENTONCES MI PROBLEMA QUE ES , ALGUN BUG , O UN FANTASMA , PQ EL MTA SERVER LO MUESTRA COMO ABIERTOS LOS PUERTOS SIN QUE LO ESTEN REALMENTE , NO PUEDO APARECER EN LA LISTA DE INTERNET ....YA HE HECHO TODO , Y NADA , PORFAVOR PIDO AYUDA A LOS QUE DOMINAN ESTOS TEMAS a CASTILLO u otros USUARIOS QUE PORFAVOR ME AYUDEN http://s2.subirimagenes.com/otros/previ ... 361083.jpg http://s2.subirimagenes.com/otros/previ ... 361021.jpg http://s2.subirimagenes.com/otros/previ ... 361062.jpg ( EN ESTA MUESTRA LOS PROTOCOLOS UDP Y TCP) ( EN OTRAS OCASIONES PARA PROBAR SI SE MOSTRABA ONLINE , CAMBIE LOS PROTOCOLOES A TCP/UDP , sin ningun resultado ) tambien active el Usdph o algo asi me lo recomendaron pero no hizo efecto.. AUNQUE DIGAN ALGUNAS IMGANES QUE LOS PUERTOS ESTAN ABIERTOS NO LO ESTAN , PQ primero , la gente no se conecta , segundo no lo ven en la lista de internet , estara bugeado , o no se SOLO SE QUE NECESITO AYUDA PORFAVOR
×
×
  • Create New...