Jump to content

Alexs

Members
  • Posts

    2,869
  • Joined

  • Last visited

Everything posted by Alexs

  1. Hola a Todos, acababa el spawn de Paintball y queria saber si esto deberia funcionar: function getDefinitions( startedMap ) local mapRoot = getResourceRootElement( startedMap ) local spawnred = getElementsByType ( "spawnred" , mapRoot ) local spawnblue = getElementsByType ( "spawnblue" , mapRoot ) for key, rojo in pairs( spawnred ) do posr = getElementData ( rojo, "position" ) rotred = getElementData ( rojo, "rotation" ) insert.table(posred, posr) end for key, azul in pairs( spawnblue ) do posb = getElementData ( azul, "position" ) rotblue = getElementData ( azul, "rotation" ) insert.table(posblue, posb) end for teamr, rojos in pairs ( getPlayersInTeam ( Rojos )) do spawnPlayer(rojos,math.random(#posred),rotred,170) end for teamb, azules in pairs ( getPlayersInTeam ( Blue )) do spawnPlayer(azules,math.random(#posblue),rotblue,188) end end addEventHandler("onGamemodeMapStart", getRootElement(), getDefinitions) El caso es que hay muchos elementos de "spawnred" y "spawnblue" y quiero que al comenzar el mapa spawneen aleatoriamente entre ellos ya que si no quedarian congelados uno en el otro, esto serviria para eso?
  2. Tambien podes bindear todas las keys o algunas para que cuando las pulse se le retire el AFK
  3. Alexs

    Contar Tiempo

    Hola a Todos, queria saber que funcion existe para contar el tiempo pasado entre el toque de un marcador y el toque de otro?
  4. How many slots can this handle? mmm... you can use the domKVM 256, is faster and stable, and you can use 50+ slots
  5. Alexs

    Crosshair

    Son cobardes o es un bug del script?
  6. Like a Rapper say: "El avance no es quitar avance es ofrecer opciones" i think the Subforum is a good idea
  7. Alexs

    Esta bien?

    function hunter() local hunter = createVehicle ( 425, 337.258790625, 1953.8022460938, 17.066425) moveObject(hunter, 1, 337.258790625, 1953.8022460938, 17.066428) -- no se nada del move object haci que si lo pueden acomodar end addEventHandler("onPlayerSpawn",getRootElement(),hunter) function destroy() if isElement ( hunter ) then destroyElement ( hunter ) end end addEventHandler("onResourceStart",getRootElement(),destroy) -- creo que hay funcionaria con el evento por que sin evento no creo que funke mucho setTimer(destroy, 1500, 1) Con lo del evento, si pusiste un temporizador no necesitas el evento, explicame que buscas y te ayudo mejor
  8. Is true, the important is not the Max Players, is the Players Connected
  9. getElementType y revisar si el tipo es "player" y tambien ponerlo en client evitara trolleos
  10. Listo, usare getResourceInfo Problema terminado
  11. KVM is good with MTA and the best OS is Windows Server, but this Host dont provide Windows License Source: [bOSS]-Samt2497
  12. Alexs

    Esta bien?

    Quieres que el hunter se mueva al spawnear el jugador y que cuando el recurso se inicie (server) o el jugador se una (client) se congele y se destruya el hunter?
  13. Alexs

    addPlayerEXP

    con ID, getElementID y setElementID
  14. Alexs

    addPlayerEXP

    Ok, tus errores: el getElementdata esta de mas si no lo usas, la funcion esta mal usada, esto no tiene q ver con lo que quieres, Siga participando....
  15. Como es normal en ti, genial mapa
  16. No hay evento de cambio de dimension, aunq si toca un marcador o clickea un boton puedes agregar la funcion a eso
  17. Alexs

    addPlayerEXP

    en la key del element data estas poniendo una function y no tienes nada q guardar ahi, no comprendo q deseas hacer
  18. Alexs

    Gates

    Agregame al Skype, si estoy en el PC estoy conectado y perdon era "bestial" no bestila
  19. Alexs

    Gates

    Perfecto, me encanta ver errores simples por que que vengan con un script de 200 lineas y me dicen "tengo error en un array" sin nada mas los mandare a la verga de manera bestila De Nada por lo del .map, igual me pasaba
  20. Alexs

    Zona de BOT

    local colshape = createColCuboid ( 103.88594818115, 1302.0729980469, 10.5859375, 220, 200, 60 ) zombiesMatados = 0 function zona ( ) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = ( zombiesMatados + 1 ) if ( zombiesMatados == 50 ) then if ( not isElement ( slothbot ) ) then slothbot = exports [ "slothbot" ]:spawnBot ( 111.79273223877, 1336.3046875, 10.5859375, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) outputChatBox("Testing") onZomieWasted = 30 local myBlip = createBlipAttachedTo ( slothbot, 23 ) end end end end addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", getRootElement(), zona ) si el PD es un error eso lo resuelve
  21. Alexs

    Zona de BOT

    Ok, dejemos el Off Topic, si no aceptas nuestra recomendacion de volver a comenzar para retomar conocimientos olvidados, no te ayudare con cosas mas complejas
  22. Alexs

    Zona de BOT

    Esto es bastante simple, Solid tiene razon, si no podes con algo tan basico vuelve al comienzo
  23. Alexs

    Gates

    Borrala del .map con el Map Editor
  24. No, llegue y dije hare un post para joder a los users sin investigar antes si esto es posible o no, obvio q ya revise todo
×
×
  • Create New...