Jump to content

Tomas

Members
  • Posts

    2,530
  • Joined

  • Last visited

Everything posted by Tomas

  1. Tomas

    Tablas

    local kills = {} function Kills(ammo,killer,weapon) if killer then if killer ~= source then if not kills[killer] then kills[killer] = 1 else kills[killer] = kills[killer] + 1 end end end end addEventHandler("onPlayerWasted",getRootElement(),Kills)
  2. Cambia el setElementPosition,Dimension por spawnPlayer.
  3. function removePlayerFromTable( player ) if player and nametags[ player ] then for i,v in ipairs(nametags) do if v == player then table.remove( nametags, i ) return end end end end addEventHandler( "nmtgs:onPlayerQuit", getRootElement( ), removePlayerFromTable )
  4. Pero solo estarás tú en la tabla ya que está en client side, tendrías que tener una global en el server side y sincronizarla con cada cliente.
  5. Tienen una version del cliente inferior a la que tu pides en las configuraciones.
  6. Tomas

    isInsideRadarArea

    local _isElementWithinColShape = isElementWithinColShape function isElementWithinColShape(element, colshapes) if type(colshapes) == "table" then for i = 1, #colshapes do if _isElementWithinColShape(element, colshapes[i] then return true end end return false else return _isElementWithinColShape(element, colshapes) end end
  7. Tomas

    isInsideRadarArea

    Nunca creaste radar areas, tienes que usar isElementWithinColShape.
  8. Pues, usar tablas me parece un poco innecesario, lo puedes hacer con variables asi: local isGod addCommandHandler("godmode", function () isGod = not isGod end ) addEventHandler("onClientPlayerDamage", root, function () if isGod then cancelEvent() end end )
  9. addEvent ( "onPlayerWasted", true ) addEventHandler ( "onPlayerWasted", root, function (_, theKiller ) if theKiller and not theKiller == source then exports.exp_system:addPlayerEXP ( theKiller, 10) end end )
  10. Publica el archivo "acl.xml" que está en mods/deathmatch
  11. Tomas

    Duda!

    No es necesario definir la variable, y ahí arriba no la estás "definiendo" la estás borrando. if onetime then
  12. Lo que hace ese script es buscar un asiento libre, comenzando por los delanteros, no warpea a algún asiento ya ocupado.
  13. De la forma normal, no. Aunque podrías moverlo hacia ahí, pero no creo que pueda disparar.
  14. Tomas

    contar Kills

    local duelKills = {} local duelDim = 69 local duelInt = 72 addEventHandler("onPlayerWasted", root, function (attacker) if attacker and attacker ~= source then if getElementType(attacker) == "player" then if getElementDimension(attacker) == duelDim and getElementDimension(source) == duelDim then if getElementInterior(attacker) == duelInt and getElementInterior(source) == delInt then duelKills[attacker] = ( duelKills[attacker] or 0 ) + 1 end end end end end )
  15. Puedes estar viendo al ped y taparlo con el draw.
  16. setElementSyncer, de todas formas es mejor usar client side.
  17. Tomas

    contar Kills

    ¿Qué quieres hacer?
  18. Los desarrolladores de Valhalla no permiten que se distribuya su código, no lo pueden usar sin su permiso.
  19. Puedes crear el ped en algún lugar del mundo y con el cam2rt dibujarlo en la pantalla.
  20. Tomas

    contar Kills

    return kills[ player ] or 0
  21. En ese caso podrias utilizar: for i = 1, #gui.botones do guiSetVisible(gui.botones[i], false) end
×
×
  • Create New...