Jump to content

Plate

Members
  • Posts

    938
  • Joined

  • Last visited

Everything posted by Plate

  1. Hola estube tratando de instalar el inventar_full hize todo lo del video cuando le doy a start al resource me dice esto attempt to call global mysql_connect(a nil valvue) attempt to call global mysql_querry ( a nil valvue) que tengo que usar para hacerlo andar ._.
  2. I found an other bug: If you play quick click before the item is removed from inventory gives you many times the item
  3. Plate

    Ayudita

    Algun error en el debug?
  4. Plate

    Ayudita

    ¿Prueva? Prueba* addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function ( killer ) if ( killer and getElementType ( killer ) == "player" ) then local zombieSkin = getElementModel(source) if (zombieSkin == 22) then createExplosion(x, y, z, 10) end end end )
  5. Plate

    BMX

    Jajajajajajajaj yo quiero una de esas Para Nod: re copado andar en mb esa es mi bici pero le cambie el manubrio y le saque los frenos jaja
  6. te pase el script para hacer que los zombies den exp
  7. addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function ( theKiller ) exports.exp_system:addPlayerEXP ( theKiller, 5 ) end )
  8. Plate

    BMX

    Hola quien anda en bmx del foro emmmm y y ...... pongan fotos de su bike!
  9. Plate

    Nombres de mta.

    [COD]Plate, TimY esos 2 nicks nada mas uso
  10. https://community.multitheftauto.com/index.php?p=resources&s=details&id=6114 el boss https://community.multitheftauto.com/index.php?p=resources&s=details&id=5195 para la vida https://community.multitheftauto.com/index.php?p=resources&s=details&id=672 el slothbot lo unico que tenes que hacer es iniciar el extra_health despues el slothbot y despues el boss PD:Lee la descripcion del boss
  11. Hi i have a problem whit this script for example if i have 30 zombies in one spot i kill one and respawn 30 zombies can anyone help me? function Zomb_respawn (ped) if isElement(ped) then if (getElementData (ped, "zombie") == true) then for theKey,thePed in ipairs(zombiesInSpot) do if ped == thePed then table.remove( zombiesInSpot, theKey ) break end end local zombieSkin = getElementModel(ped) local zombieLevel = getElementData(ped,"level") local maxHP = getElementData(ped,"maxhealth") local zombieSpot = getElementData(ped,"zombieSpot") local spotRadius = getElementData(zombieSpot,"radius") local sortZombies = spotRadius/1.2 local sx,sy,sz = getElementPosition(zombieSpot) local zom = createZombie (sx+math.random(-sortZombies,sortZombies),sy+math.random(-sortZombies,sortZombies),sz+1.5,math.random(1,360),zombieSkin,0,0,zombieLevel,maxHP) table.insert(zombiesInSpot,zom) setElementData(zom,"zombieSpot",zombieSpot) end end end function respawnZombieWhenDead(dataName) if getElementType ( source ) == "ped" and dataName == "status" then if (getElementData (source, "zombie") == true) then if (getElementData ( source, "status" ) == "dead" ) then setTimer ( Zomb_respawn, 9000, 1, source) end end end end addEventHandler ( "onElementDataChange", getRootElement(),respawnZombieWhenDead )
  12. El tema con este scirpt es que un suponer hay 10 zombies en 1 spot mato a 1 y respawnean 10 function Zomb_respawn (ped) if isElement(ped) then if (getElementData (ped, "zombie") == true) then for theKey,thePed in ipairs(zombiesInSpot) do if ped == thePed then table.remove( zombiesInSpot, theKey ) break end end local zombieSkin = getElementModel(ped) local zombieLevel = getElementData(ped,"level") local maxHP = getElementData(ped,"maxhealth") local zombieSpot = getElementData(ped,"zombieSpot") local spotRadius = getElementData(zombieSpot,"radius") local sortZombies = spotRadius/1.2 local sx,sy,sz = getElementPosition(zombieSpot) local zom = createZombie (sx+math.random(-sortZombies,sortZombies),sy+math.random(-sortZombies,sortZombies),sz+1.5,math.random(1,360),zombieSkin,0,0,zombieLevel,maxHP) table.insert(zombiesInSpot,zom) setElementData(zom,"zombieSpot",zombieSpot) end end end function respawnZombieWhenDead(dataName) if getElementType ( source ) == "ped" and dataName == "status" then if (getElementData (source, "zombie") == true) then if (getElementData ( source, "status" ) == "dead" ) then setTimer ( Zomb_respawn, 9000, 1, source) end end end end addEventHandler ( "onElementDataChange", getRootElement(),respawnZombieWhenDead )
  13. Lo unico es que tengo un problema con esto mira yo creo los zombies en el spot y si alguien los mata no respawnea ese respawnean la cantidad que aya en el spot llega un momento que da un lagg terrible! function Zomb_respawn (ped) if isElement(ped) then if (getElementData (ped, "zombie") == true) then for theKey,thePed in ipairs(zombiesInSpot) do if ped == thePed then table.remove( zombiesInSpot, theKey ) break end end local zombieSkin = getElementModel(ped) local zombieLevel = getElementData(ped,"level") local maxHP = getElementData(ped,"maxhealth") local zombieSpot = getElementData(ped,"zombieSpot") local spotRadius = getElementData(zombieSpot,"radius") local sortZombies = spotRadius/1.2 local sx,sy,sz = getElementPosition(zombieSpot) local zom = createZombie (sx+math.random(-sortZombies,sortZombies),sy+math.random(-sortZombies,sortZombies),sz+1.5,math.random(1,360),zombieSkin,0,0,zombieLevel,maxHP) table.insert(zombiesInSpot,zom) setElementData(zom,"zombieSpot",zombieSpot) end end end function respawnZombieWhenDead(dataName) if getElementType ( source ) == "ped" and dataName == "status" then if (getElementData (source, "zombie") == true) then if (getElementData ( source, "status" ) == "dead" ) then setTimer ( Zomb_respawn, 9000, 1, source) end end end end addEventHandler ( "onElementDataChange", getRootElement(),respawnZombieWhenDead )
  14. Muchas a los 2 ya me ayudo alex_steel PD:Vuery tank llu alex_stealth
  15. Hola necesito ayuda con este resource es que me da error en el "removeEventHandler" function rdx(message) setTimer(removeEventHandler, 9000, 1, "onClientRender", getRootElement(), dx ) function dx() dxDrawText(getPlayerName(localPlayer)..":",12.0,176.0,141.0,214.0,tocolor(255,0,0,255),1.0,"bankgothic","left","top",false,false,false) dxDrawText(message,129.0,176.0,796.0,207.0,tocolor(255,255,255,255),2.0,"arial","left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), dx) end addEvent("onAdminMessage", true ) addEventHandler("onAdminMessage", getRootElement(), rdx)
  16. Plate

    ayuda(facil)

    Ni idea si el jugador tiene experiencia 0 me da error pero si tiene + de 0 hay si ya funciona
  17. Plate

    ayuda(facil)

    Nop no falta 1 end 1 por la funcion otro por el primer if y otro por el segundo EDIT: Ya lo solucione muchas gracias nod y solid
  18. Plate

    ayuda(facil)

    ahora me dice attempt to comparate a number whit boolean
  19. Plate

    ayuda(facil)

    attempt to compare a number whit nil
  20. Plate

    ayuda(facil)

    Hola me podrian decir por que esto no anda addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function ( killer ) if ( killer and getElementType ( killer ) == "player" ) then local zombiesLevel = getElementData ( source, "level" ) or 0 if (zombieLevel > 0) and (zombieLevel < 40) then setElementData(killer, "EXP", getElementData(killer, "EXP") + 300) elseif (zombieLevel > 41) and (zombieLevel < 50) then setElementData(killer, "EXP", getElementData(killer, "EXP") + 400) end end end )
  21. Ok gracias yakuza en que parte edito
  22. No no creo por que usaba otro y tambien pasaba
  23. Si funciona de 10 pero pierden las armas igual deves en cuando
×
×
  • Create New...