Jump to content

BorderLine

Members
  • Posts

    1,027
  • Joined

  • Last visited

Everything posted by BorderLine

  1. https://community.multitheftauto.com/index.php?p= ... ls&id=5375
  2. great..! i didnt see that.. thanks man is working
  3. Hi everyone, well i have a question. i was searching in forum bot i didnt find about this. I need a example I have a combobox and i added items something like this infernus_choose = guiCreateComboBox(13,65,295,75,"choose",false,tabs[6]) guiComboBoxAddItem ( palette_choose, "Disabled" ) guiComboBoxAddItem ( palette_choose, "Model 1" ) guiComboBoxAddItem ( palette_choose, "Model 2" ) and the event should be "onClientGUIComboBoxAccepted" right? well im want make and combobox to select diferents models of infernus. how i can do this? if someone can explainme how detect when i select model 1 or model 2 or disabled Thanks for your time
  4. This video has been created by one user on my server. Nickname:Rojas Thanks to him for the time to make this.. Enjoi
  5. first img arent aviable Maybe you should edit the txd or use my shader to replace vehicle.txd and all vehicles can have leds lights https://community.multitheftauto.com/index.php?p= ... ls&id=4969 pd: can you sendme a pm the url where you get that suburban or tahoe?
  6. BorderLine

    IMG

    intenta esto local country = getElementData(getLocalPlayer(),"Country") local flag = ":admin/client/images/flags/"..country..".png" dxDrawImage(520.0,58.0,20.0,20.0,flag)
  7. sorry for double post, but hunterix. the version of scoreboard can be the problem? i have the last scoreboarsd and your vcode dont wrong, still same high
  8. still with same high and i did all what you say.. edit-delete and refresh
  9. Hi, i have a quiestion. Anyone know how make the rows more high?? this rows If someone know the line or where i can make this. I have the last scoreboard.
  10. https://community.multitheftauto.com/index.php?p= ... ils&id=861 and add admin rights
  11. me parece ke no puedes usar getElementsByType para esa "faction" segundo te falta un end uno para el for, uno para el if y otro para el final de la funcion
  12. local spawnpoint addEventHandler("onPlayerWasted",getRootElement(),function() cuSkin = getElementModel(source) end ) addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player, uSkin) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end function getRandomSpawnPoint () local spawnpoints = getElementsByType("spawnpoint") return spawnpoints[math.random(1,#spawnpoints)] end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerQuit",root, function () if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then spawnpoint = getRandomSpawnPoint() end end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source.) end )
  13. seguramente deben existir comandos algo como /newmap /nextmap /votemap o nose deberias chekar el resource
  14. race/modes/destructionderby.lua en la funcion function DestructionDerby:onPlayerWasted(player) if isActivePlayer(player) then self:handleFinishActivePlayer(player) if getActivePlayerCount() <= 1 then RaceMode.endMap() else TimerManager.createTimerFor("map",player):setTimer(clientCall, 2000, 1, player, 'Spectate.start', 'auto') end end RaceMode.setPlayerIsFinished(player) showBlipsAttachedTo(player, false) end
  15. Car mod https://community.multitheftauto.com/index.php?p= ... ls&id=5763 DONE
  16. con respecto a lo que Renkon dice. Intenta esto function inicio () local hour, minutes = getTime() if ( hour >= 23 ) then startResource( getResourceFromName( 'slothBot' ) ) end end addEventHandler("onResourceStart",getRootElement(), inicio) -----top--- function alto () local hour, minutes = getTime() if ( hour >= 03 ) then restartResource( getResourceFromName( 'slothBot' ) ) end end addEventHandler("onResourceStart", getRootElement(),alto)
  17. usa /debugscript para ver los errores del script que has posteado. Mas a fondo, en la consola muestra algunos solamente.
  18. https://community.multitheftauto.com/index.php?p= ... ls&id=5752 Original https://community.multitheftauto.com/index.php?p= ... ls&id=5042 DONE
  19. Reported. This is allready exist https://community.multitheftauto.com/index.php?p= ... ls&id=5042
  20. primero me parece que para que se ejecute una funcion como esa de restartResource deben tener agregada a la linea de Admin en la ACL segundo tu creas un evento y el segundo argumento no es el nombre de la funcion, es el elemento al cual le envias la funcion function inicio () local hours = getTime() if ( hours >= 23 ) then startResource( getResourceFromName( 'slothbot' ) ) end end addEventHandler("onResourceStart",getRootElement(), inicio) -----top--- function alto () if ( hours >= 03 ) then restartResource( getResourceFromName( 'slothbot' ) ) end end addEventHandler("onResourceStart", getRootElement(),alto)
  21. la verdad no man, nunca e mirado ese gamemode. Deberias buscar dentro de serverside las funciones de camara y quisas la encuentres
  22. deberias crear un sistema propio. Sino me equivoco el de solid esta compilado
  23. Ejemplo de la Wiki: g_Players = getElementsByType("player") -- get a list of all players in the server for i,aPlayer in ipairs(g_Players) do -- find out what index the local player has in the list if aPlayer == getLocalPlayer() then g_CurrentSpectated = i break end end function spectatePrevious() -- decrement the spectate index and spectate the corresponding player if g_CurrentSpectated == 1 then g_CurrentSpectated = #g_Players else g_CurrentSpectated = g_CurrentSpectated - 1 end setCameraTarget(g_Players[g_CurrentSpectated]) end function spectateNext() -- increment the spectate index and spectate the corresponding player if g_CurrentSpectated == #g_Players then g_CurrentSpectated = 1 else g_CurrentSpectated = g_CurrentSpectated + 1 end setCameraTarget(g_Players[g_CurrentSpectated]) end -- Bind above functions to arrow keys bindKey("arrow_l", "down", spectatePrevious) bindKey("arrow_r", "down", spectateNext) Y para lo que quieres, nose si funcione en la primera linea en vez de g_Players = getElementsByType("player") usa g_Players = getAlivePlayers () y deberas editarlo con el evento onPlayerWasted
×
×
  • Create New...