
Plate
Members-
Posts
938 -
Joined
-
Last visited
Everything posted by Plate
-
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 ._.
-
[REL] HeroInventory - Inventory System [Groups + More]
Plate replied to Malicious Hero.'s topic in Resources
I found an other bug: If you play quick click before the item is removed from inventory gives you many times the item -
¿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 )
-
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
-
te pase el script para hacer que los zombies den exp
-
addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function ( theKiller ) exports.exp_system:addPlayerEXP ( theKiller, 5 ) end )
-
Hola quien anda en bmx del foro emmmm y y ...... pongan fotos de su bike!
-
[COD]Plate, TimY esos 2 nicks nada mas uso
-
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
-
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 )
-
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 )
-
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 )
-
Muchas a los 2 ya me ayudo alex_steel PD:Vuery tank llu alex_stealth
-
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)
-
Ni idea si el jugador tiene experiencia 0 me da error pero si tiene + de 0 hay si ya funciona
-
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
-
ahora me dice attempt to comparate a number whit boolean
-
attempt to compare a number whit nil
-
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 )
-
Ok gracias yakuza en que parte edito
-
No no creo por que usaba otro y tambien pasaba
-
Si funciona de 10 pero pierden las armas igual deves en cuando