Jump to content

Plate

Members
  • Posts

    938
  • Joined

  • Last visited

Everything posted by Plate

  1. Client: function checkAttacker(attacker, weapon, bodypart) if isElement(attacker) then if (getElementType("attacker") == "player") then triggerServerEvent("attackerChecked", localPlayer, attacker) end end end addEventHandler("onClientPedDamage", root, checkAttacker) server: function attacked(attacker) setTimer(triggerClientEvent, 9000, 0, root, "onBossFire", root, boss, attacker) end addEvent("attackerChecked", true) addEventHandler("attackerChecked", root, attacked)
  2. Uh lol no sabia gracias PD:Que evento uso
  3. Muestra ejecutas la función 'checkAttacker'. la ejecuto con onPedDamage pero no funciona tampoco PD:El triggerClientEvent esta bien
  4. Hola tengo un problema con este script es que no funciona y ni idea por que tampoco da error function checkAttacker(attacker, weapon, bodypart) if isElement(attacker) then if (getElementType("attacker") == "player") then setTimer(triggerClientEvent, 9000, 0, root, "onBossFire", root, boss, attacker) outputChatBox("estas asdasd", attacker, 0, 255, 255) end end end
  5. Por que te falta parte del script
  6. Leistes lo que cambie en el element data me referia en el client :facepalm:
  7. if slothbot1 then triggerClientEvent("spawneo", getRootElement()) myBlip = createBlipAttachedTo ( slothbot1, 23 ) setElementData(slothbot1, "Witch", true) setElementData(localPed, "currenthealth", exports.extra_health:getElementExtraHealth(slothbot1)) local id = getElementModel ( slothbot1 ) en el Server. intente en el client cambiando local currentHealth = exports.extra_health:getElementExtraHealth(slothbot1) y aparece la barra llena pero no disminuye.. eo Slot muere y la barra sigue igual. No Lees lo que digo te dije que pongas el code sin modificar setElementData(slothbot1, "currenthealth", exports.extra_health:getElementExtraHealth(slothbot1)) local currentHealth = getElementData(theWitch, "currenthealth") creo que tendrias que empesar a scriptear
  8. function zona (attacker, weapon, bodypart) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = ( zombiesMatados + 1 ) if ( zombiesMatados == 5 ) then --Numero de Zombis por Matar if ( not isElement ( slothbot1 ) ) then local x, y, z = getElementPosition(attacker) local skin = math.random ( 33, 36 ) if slothbot1 = exports [ "slothbot" ]:spawnBot ( x+10, y, z+3, 90, skin, 0, 0, false, weapons [ skin ] or 0, "hunting" ) then triggerClientEvent("spawneo". getRootElement()) myBlip = createBlipAttachedTo ( slothbot1, 23 ) setElementData(slothbot1, "Witch", true) setElementData(slothbot1, "currenthealth", exports.extra_health:getElementExtraHealth(slothbot1)) local id = getElementModel ( slothbot1 ) if id == 33 then exports.extra_health:setElementExtraHealth(slothbot1, 30000) outputChatBox ( "#ff0000Nemesis: #eeff00S.T.A.R.S!!!", getRootElement(), 255, 255, 255, true) elseif id == 34 then exports.extra_health:setElementExtraHealth(slothbot1, 100000) setElementData(slothbot1, "Witch", true) outputChatBox ( "#ff0000Tyrant a Spawneado, Corre!", getRootElement(), 255, 255, 255, true) elseif id == 35 then exports.extra_health:setElementExtraHealth(slothbot1, 15000) outputChatBox("[bOSS]:Boss low spawned", getRootElement(), 155, 155, 155, false) elseif id == 36 then exports.extra_health:setElementExtraHealth(slothbot1, 400000) outputChatBox("Lincker a Spawneado...", getRootElement(), 155, 155, 155, false) end end end end end end addEventHandler ( "onZombieWasted", getRootElement(), zona ) local maxDist = 60 function witchNameTag() local witchs = getElementsByType ( "ped",getRootElement(),true ) local Px,Py,Pz = getCameraMatrix( ) for theKey,theWitch in ipairs(witchs) do if (isElement(theWitch)) then local Zx,Zy,Zz = getElementPosition( theWitch ) local zhx,zhy,zhz = getPedBonePosition(theWitch,6) if (getDistanceBetweenPoints3D(Px, Py, Pz, Zx, Zy, Zz) < maxDist ) then if (getElementData (theWitch, "Witch") == true) then local sxx,syy = getScreenFromWorldPosition(zhx,zhy,zhz+0.3) local currentDistance = getDistanceBetweenPoints3D(Px, Py, Pz, Zx, Zy, Zz) local maxHP = exports.extra_health:getElementExtraHealth(theWitch) local currentHealth = getElementData(theWitch, "currenthealth") if sxx and getElementHealth(theWitch) > 0 then sx,sy = sxx-60,syy-10 dxDrawRectangle(sx+5,sy+25,131.0/maxHP*currentHealth,12.0,tocolor(255,0,0,200),false) dxDrawRectangle(sx,sy,146.0,46.0,tocolor(0,0,0,0),false) dxDrawRectangle(sx+5,sy+25,131.0,12.0,tocolor(0,0,0,100),false) dxDrawText("Witch",sx+26,sy,596.0,236.0,tocolor(255,0,0,255),1.0,"default","left","top",false,false,false) end end end end end end addEvent("spawneo", true) addeventHandler("spawneo", getRootElement(), witchNameTag) addEventHandler( "onClientRender", root, witchNameTag ) setTimer( function () removeEventHandler("spawneo", root, witchNameTag) end , 1000, 1 ) creo que esta mal pero probalo jaja
  9. Skin: https://community.multitheftauto.com/index.php?p=resources&s=details&id=7303 DONE
  10. Ah me abia olvidado de eso pone un triggerClientEvent y tambien removeEventHandler
  11. No hagas doble post simplemente editalo Usa el codigo sin modificar y ponele a tu slothbot setElementData(tu variable del slothbot, "Witch, "true) y te va a funcionar EDIT: Tambien tenes que ponerle esto setElementData(tu variable del slothbot, "currenthealth", exports.extra_health:getElementExtraHealth(tu variable del slothbot))
  12. Ese es mi code y no te recomiendoe editarlo asi simplemente hace esto agregale a tu boss esto setElementData(slothbot1, "Witch", true)
  13. Por que decis tanto spaw si es spawn?
  14. Nice job alex good script
  15. FIFA 2013 antes de cristo jajajajajjajajajjajajajjajajaja
  16. La verdad me das asco. NO. Tambien te pensas que nacimos ayer que no nos damos cuenta de que multi killer eras vos? y que el Sniper Wolf sos vos con otra cuenta tambien jmmm pensa seria medio raro que tigre loco tenga un primo "que scriptea" y que habla bien de el? aparte ese tal "ElNegroPelado" tiene nombre mas falso que Roberto Quinteros(a quien conoci en un server) A solid lo rajastes a puteadas y le pedistes disculpas 2 veces lo que hace el vos lo haces en sueños solamente te disculpas cuando necesitas ayuda
  17. Plate

    BMX

    Jajaja que imbecil
  18. Sos del server Juramento no?
  19. Yo no te ayude pero bueh espero que te valla bien con tu gamemode y tambien espero que hagas scripts vos y descargues menos de la comunidad
  20. Wow esta genial me gusto mucho el video y quedo genial
  21. Plate

    BMX

    Jjajajaja
  22. guiGridListGetSelectedItem Esto esta mal local arma = guiGridListSetItemText ( thePlayer, row, 1 ) if ( arma == "M4" ) then
  23. Plate

    BMX

    Yo recien ando hace unos dias y ya tiro 180 jaja pero bue ya tambien rompi la masa trasera y no puedo andar
  24. "slots" es un numero y lo estas usando como elemento, supongo que ya tendras una label o algo llamado "slots", pero si definis otra variable con el mismo nombre, no servira. Ah no me di cuenta :facepalm: muchas gracias solid por tu ayuda
  25. Me duvuelve un numero usando esto function check() local slots = getElementData(localPlayer, "maxSlots") outputChatBox(slots) end addCommandHandler("2", check) pero si uso el otro no sirve
×
×
  • Create New...