Jump to content

Plate

Members
  • Posts

    938
  • Joined

  • Last visited

Everything posted by Plate

  1. Plate

    Vida 2

    mas o menos pero no quiero que diga zombie y tampoco quiero que se le va a los zombies solamente al slothbot y a nada mas en ese script se le ve la vida a los autos a los zombies y dice zombies arriba eso es lo que no me gusta
  2. Plate

    Vida 2

    pero si use al addEvent y tambien cambie el thePlayer por source
  3. Plate

    Vida 2

    function wep ( source ) local weplvl = exports [ "exp_system" ]:getPlayerLevel ( source ) if weplvl>= 1 then giveWeapon ( source, 22, 30000 ) end end addEvent("onPlayerChangeLevel",true) addEventHandler("onPlayerChangeLevel",getRootElement(),wep) attempt to compare number whit bolean @server.lua.bak:179: Bad argument @ "getPlayerLevel" [expected player element at argument 1, got 3]
  4. Plate

    Vida 2

    no me functiono solid function wep ( thePlayer ) local weplvl = exports [ "exp_system" ]:getPlayerLevel ( thePlayer ) if weplvl>= 3 then giveWeapon ( thePlayer, 24, 30000 ) end end addEventHandler("onPlayerChangeLevel",getRootElement(),wep)
  5. Plate

    Vida 2

    que esta mal? (que no tiene sentido)
  6. Plate

    Vida 2

    solid esto esta bien? function wep ( thePlayer ) local weplvl = exports [ "exp_system" ]:getPlayerLevel ( thePlayer ) if weplvl>= 20 then giveWeapon ( thePlayer, 31, 99999 ) end end addEventHandler("onResourceStart",getRootElement(),wep) es para qe le de un arma a el player cuando el sea level 20
  7. Plate

    Vida 2

    que es eso solid?
  8. Plate

    Vida 2

    hola como se podria hacer para que arriba de la cabeza de un slothbot le aparesca la vida que tiene en una barrita se puede hacer eso?
  9. Plate

    Bots

    como puedo hacer tambien para crear una zona donde si matas mucho se spawnee el bot se puede?
  10. Hola como se podria hacer para que en una gridlist aparescan los miembros de un grupo ACL se puede?
  11. Plate

    Bots

    me dirias que tengo que usar solid
  12. Plate

    Bots

    seria con sql ?
  13. Plate

    Bots

    Hola como podria hacer yo para que si un player le pega al bot de mi server y le saca un suponer la mitad de la vida y despues biene otro y lo mata el bot le de 2500 de exp al player que le saco la mitad de la vida
  14. Plate

    donde esta?

    Yo lo tengo haci lo unico que hago es inciarlo y listo el gamemod se cambia
  15. Plate

    rockets

    y como puedo darle rockets a un bot que script tendria que hacer o no se puede?
  16. Plate

    donde esta?

    function mod() setGameType("AQUI EL GAMEMOD") end addEventHandler("onResourceStart",getRootElement(),mod)
  17. Plate

    rockets

    hola como podria hacer que con el rocket launcher enves de que te targetee lo auto lo aga con los players y que no tengas que apretar click derecho y luego clik izquierdo sino directamente click izquierdo y listo se puede hacer eso?
  18. Plate

    Vida

    puse el comando (/Res) y ademas al script del level con dx le agrege los reset pongo /Res y no me aparece Reset : 5
  19. Plate

    Vida

    pero por que el script no funciona todabia function getPlayerReset ( jugador ) if ( jugador ) then local account = getPlayerAccount ( jugador ) if ( account and not isGuestAccount ( account ) ) then return tonumber ( getAccountData ( account, "Reset") ) or 0 else return false end else return false end end function setPlayerReset ( jugador, Reset ) if ( jugador ) then local account = getPlayerAccount ( jugador ) if ( account and not isGuestAccount ( account ) ) then return setAccountData ( account, "Reset", Reset ) else return false end else return false end end el test function test (player,commandName) exports.EX:setPlayerReset(player, 5) end addCommandHandler("Res",test)
  20. Plate

    Vida

    exelente pero el script sigue sin funcionar eso esta bien?
  21. Plate

    Vida

    de la nada empeso a andar gracias solid Alex que no entiendo como exportarlas por ejemplo lo quise testiar y puse function test (player) exports [ "EX" ]:setPlayerReset (player, 5) end addCommandHandler("Res",test) y no sirvio
  22. Plate

    Vida

    para el bot que esta en una posicion estable iene esa vida pero los random no
  23. Plate

    Vida

    local randomSpawnTable = { { 1086.6645507813, 1076.1888427734, 10.838157653809,}, { -2086.9196777344, 173.74137878418, 35.0546875 }, { -2667.5134277344, 734.33197021484, 27.953125 }, { -2497.6953125, -697.30908203125, 139.3203125 }, { -2333.6032714844, -1621.1364746094, 483.71069335938 }, { 1862.423828125, 2624.6528320313, 13.8719085693 } } function Bot ( ) local random = math.random ( #randomSpawnTable ) local x, y, z = unpack ( randomSpawnTable [ random ] ) slothbot = exports [ "slothbot" ]:spawnBot ( x, y, z, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, hunting, true ) exports.extra_health:setElementExtraHealth ( slothbot, 5000 ) end addEventHandler ( "onResourceStart", resourceRoot, Bot ) setTimer(Bot,300000,0)
  24. Plate

    Vida

    Por que lo hize con los bot random y murio de muy pocos tiros
  25. Plate

    Vida

    si los tengo con account data pero nose como crear las funciones para exportar PD: solid el extra_health tuyo lo puedo utilizar con el bot que se spawnea en la posiciones random?
×
×
  • Create New...