-
Posts
1,027 -
Joined
-
Last visited
Everything posted by BorderLine
-
cuando yo cambie de host me dijeron que reespaldara todas las extenciones db. por lo tanto deberias tambien. Y si funciona
-
tendras que entrar a crear un infernus o editarlo con un modelador para poder aplicarle otras imagenes desde el txd
-
ponete 2 ejemplos. la pistola de dimenciones esta hecha en cleo y en lua, pero si miras ambos codigos es mucha la diferencia.
-
that script is serverside, you put in meta.xml like server side?
-
what is the proble here? and please, post with lua tags [ lua ] code [ / lua ]
-
no, you must edit modes/destuctionderby.lua. check this lines function DestructionDerby:onPlayerWasted(player) if isActivePlayer(player) then self:handleFinishActivePlayer(player) if getActivePlayerCount() <= 1 then -- change that 1 to 0 RaceMode.endMap() else TimerManager.createTimerFor("map",player):setTimer(clientCall, 2000, 1, player, 'Spectate.start', 'auto') end end RaceMode.setPlayerIsFinished(player) showBlipsAttachedTo(player, false) end function DestructionDerby:onPlayerQuit(player) if isActivePlayer(player) then self:handleFinishActivePlayer(player) if getActivePlayerCount() <= 1 then --- change 1 to 0 RaceMode.endMap() end end end and its done
-
me parece que el freze siges moviendote. Debes deshabilitar las bindkeys para moverse, w,a,s,d, salto, correr y nose cuales mas eran. En fin suerte
-
dont work, but no problem man.. im gonna make another way thanks for youur time and cya
-
nothing with debug
-
Me parece que debes darle derechos de admin o simplemente usa este https://community.multitheftauto.com/index.php?p= ... ls&id=1995
-
Thanks man. And im not try to copy boss sistem, Just i want the best to my players and they can get toptimes without problems. edit: the code isnt work. Dont errors in debugscript
-
sorry for double post but now i have this problem function planeEnter (thePlayer) local vehicle = getPedOccupiedVehicle(thePlayer) local id = getElementModel ( vehicle ) local alivePlayers = getAlivePlayers() if (vehicle) then if id == 425 then if (#alivePlayers == 1) then triggerServerEvent ( "StartMap", getLocalPlayer()) end end end end addEventHandler("onPostFinish", rootElement, planeEnter ) i want check if there are 2 hunters fightin and when one die then can go to nextmap
-
exelent..!! i didnt know about that trigger thanks Hunterix and Solidskane14 for your time
-
yes that was my problem, any way forgoting the first code im edited destructionderby.lua im try to explain better In the race gamemode, when all die less one player, that player win then the map is finished and start a new map. But i dont wanna end the map. I want that last player still playing to get hunter and make toptime. And i edited the destructionderby.lua in this way function DestructionDerby:onPlayerWasted(player) if isActivePlayer(player) then self:handleFinishActivePlayer(player) if getActivePlayerCount() <= 0 then -- all players are dead, include the winer RaceMode.endMap() else TimerManager.createTimerFor("map",player):setTimer(clientCall, 2000, 1, player, 'Spectate.start', 'auto') end end RaceMode.setPlayerIsFinished(player) showBlipsAttachedTo(player, false) end and this another function DestructionDerby:onPlayerQuit(player) if isActivePlayer(player) then self:handleFinishActivePlayer(player) if getActivePlayerCount() <= 0 then -- default is 1 RaceMode.endMap() end end end well , back to problem, the last player still playing, but i what i want is, when he get the hunter go to nextmap function DestructionDerby:handleFinishActivePlayer(player) -- Update ranking board for player being removed if not self.rankingBoard then self.rankingBoard = RankingBoard:create() self.rankingBoard:setDirection( 'up', getActivePlayerCount() ) end local timePassed = self:getTimePassed() self.rankingBoard:add(player, timePassed) -- Do remove finishActivePlayer(player) -- Update ranking board if one player left local activePlayers = getActivePlayers() if #activePlayers == 1 then self.rankingBoard:add(activePlayers[1], timePassed) showMessage(getPlayerName(activePlayers[1]) .. ' ha sobrevivido!', 151, 151, 151) givePlayerMoney(activePlayers[1],2000) end end function testsource(number, sort, model) local activePlayers = getActivePlayers() if #activePlayers == 1 then if sort == "vehiclechange" and model == 425 then RaceMode.endMap() end end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",getRootElement(),testsource) addEventHandler("onPostFinish", rootElement, testsource ) i dont know if you can understandme
-
Hi everyone. Well i was editing my race server By default the race script when are the last player alive the map change or start the votemanager But i want when all are deads and the last player still playing to make toptime I dont know if im explaain First im edited the destructionderby.lua and i make the change of rank. Now all is good but i want, when the last player get hunter change map and i did this and i dont have errors. if someone can helmpe function testsource(number, sort, model) local alivePlayers = getAlivePlayers() if (#alivePlayers == 1) then if sort == "vehiclechange" and model == 425 then executeCommandHandler ( "random", #activePlayers ) -- i think here is the problem, executecommand arguments end end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",getRootElement(),testsource) addEventHandler("onPostFinish", rootElement, testsource ) the script have admins rights to executeCommandHandler thanks for your time
-
intenta con un getElementModel y el evento de zombies onZombieSpawn nose si funcionara, pero hay muichos post con respecto a zombies con extrahealth o bots
-
bueno, como ya resolviste tu problema. el race ya tiene funciones de settings para poner algun color especifico a sus autos, pero no funcionaria en rgb, solo en las ID que contiene el gta
-
this script is from comunity. as i know he can edit if he dont remove author rights
-
you are welcome
-
use my script https://community.multitheftauto.com/ind ... ls&id=4969
-
there are 2 sames functions with that arguments "if getActivePlayerCount() <= 1 then" change both to 0 And work, the problem is, all player dies, less one, and last player still playing alone. the object must be, when he get hunter, go to nextmap. how can be possible this? i try something with getAlivePlayers and race events to check 425 pick up model but dont work
