Narutimmy Posted November 29, 2012 Posted November 29, 2012 Hola bueno, me pasaron este scrip y lo fucione con el mio, y lo que pasa es que al matar x cantidad que yo ponga de zombis spawnea un boss, se crea un blip y ok todo bien, pero cuando muere el blip no desaparece, y ademas aonque vuelvas a matar zombis... ya no no respawnea local colshape = createColRectangle ( 93, 1789, 300, 300 ) zombiesMatados = 50 function zona ( ) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = ( zombiesMatados + 1 ) if ( zombiesMatados == 1 ) then -- ACA DONDE DICE =1 pone la cantidad de zombies que tienen que matar para que aparesca if ( not isElement ( slothbot1 ) ) then slothbot1 = exports [ "slothbot" ]:spawnBot ( 249.3880, 1827.0281, 8, 90, 33, 0, 0, ex, 38, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot1, 7500 ) outputChatBox ( "#ff0000Nemesis: #eeff00S.T.A.R.S!!!", getRootElement(), 255, 255, 255, true ) triggerClientEvent ( "playTheSound", root ) onZomieWasted = 75 myBlip = createBlipAttachedTo ( slothbot1, 23 ) end end end end addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", getRootElement(), zona ) ---Dinero addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted", root, function( theKiller) exports.exp_system:addPlayerEXP ( theKiller, 5000 ) givePlayerMoney ( theKiller, 100000 ) local r,g,b = getPlayerNametagColor ( theKiller ) --get the player's nametag colour local chatterName = getPlayerName ( theKiller ) outputChatBox ( chatterName.." #FF0000ha matado a un BOSS!!! *", getRootElement(), r, g, b, true ) end ) mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
NodZen Posted November 29, 2012 Posted November 29, 2012 (edited) y si le pones esto? if ( not isElement ( slothbot1 ) ) then destroyElement ( myBlip ) end end Edited November 29, 2012 by Guest ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Narutimmy Posted November 29, 2012 Author Posted November 29, 2012 y si le pones esto? if ( not isElement ( slothbot1 ) ) then destroyElement ( myBlip ) end intente algo ais pero ya no andubo jeje calare ese mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
Narutimmy Posted November 29, 2012 Author Posted November 29, 2012 y si le pones esto? if ( not isElement ( slothbot1 ) ) then destroyElement ( myBlip ) end eso es para destruir el blip, pero y para que respwnee? mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
NodZen Posted November 29, 2012 Posted November 29, 2012 Cada sierto tiempo?. o que vuelva a empezar el conteo de zombies matados?. ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Narutimmy Posted November 29, 2012 Author Posted November 29, 2012 Cada sierto tiempo?. o que vuelva a empezar el conteo de zombies matados?. que comiensede nuevo, osea mato nose, 20zombis, el boss spawnea, y cuando lo maten se resetee el contaro y al volver a matar otros 20 spawnee devuelta el boss mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
NodZen Posted November 29, 2012 Posted November 29, 2012 Y como especicas que es zombiesMatados?. ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Narutimmy Posted November 29, 2012 Author Posted November 29, 2012 Y como especicas que es zombiesMatados?. con esto si no mal recuerdo if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = ( zombiesMatados + 1 ) if ( zombiesMatados == 50 ) then mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
NodZen Posted November 29, 2012 Posted November 29, 2012 Hay algo que està mal. Ese es el script completo? ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Narutimmy Posted November 29, 2012 Author Posted November 29, 2012 Hay algo que està mal. Ese es el script completo? justo asi : local colshape = createColRectangle ( 93, 1789, 300, 300 ) zombiesMatados = 0 function zona ( ) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = ( zombiesMatados + 1 ) if ( zombiesMatados == 50 ) then -- ACA DONDE DICE =1 pone la cantidad de zombies que tienen que matar para que aparesca if ( not isElement ( slothbot1 ) ) then slothbot1 = exports [ "slothbot" ]:spawnBot ( 249.3880, 1827.0281, 8, 90, 33, 0, 0, ex, 38, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot1, 7500 ) outputChatBox ( "#ff0000Nemesis: #eeff00S.T.A.R.S!!!", getRootElement(), 255, 255, 255, true ) triggerClientEvent ( "playTheSound", root ) onZomieWasted = 75 myBlip = createBlipAttachedTo ( slothbot1, 23 ) end end end end addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", getRootElement(), zona ) ---Dinero addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted", root, function( theKiller) exports.exp_system:addPlayerEXP ( theKiller, 5000 ) givePlayerMoney ( theKiller, 100000 ) local r,g,b = getPlayerNametagColor ( theKiller ) --get the player's nametag colour local chatterName = getPlayerName ( theKiller ) outputChatBox ( chatterName.." #FF0000ha matado a un BOSS!!! *", getRootElement(), r, g, b, true ) end ) si funciona pero pues solo la primera ves, lo matan y ya no sale mas mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
NodZen Posted November 29, 2012 Posted November 29, 2012 Y asi? local colshape = createColRectangle ( 93, 1789, 300, 300 ) zombiesMatados = 50 function zona ( ) if ( isElementWithinColShape ( source, colshape ) ) then zombiesMatados = ( zombiesMatados + 1 ) if ( zombiesMatados == 1 ) then -- ACA DONDE DICE =1 pone la cantidad de zombies que tienen que matar para que aparesca if ( not isElement ( slothbot1 ) ) then slothbot1 = exports [ "slothbot" ]:spawnBot ( 249.3880, 1827.0281, 8, 90, 33, 0, 0, ex, 38, "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot1, 7500 ) outputChatBox ( "#ff0000Nemesis: #eeff00S.T.A.R.S!!!", getRootElement(), 255, 255, 255, true ) triggerClientEvent ( "playTheSound", root ) onZomieWasted = 75 myBlip = createBlipAttachedTo ( slothbot1, 23 ) end end end end addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", getRootElement(), zona ) ---Dinero addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted", root, function( theKiller) exports.exp_system:addPlayerEXP ( theKiller, 5000 ) givePlayerMoney ( theKiller, 100000 ) zombiesMatados = 0 local r,g,b = getPlayerNametagColor ( theKiller ) --get the player's nametag colour local chatterName = getPlayerName ( theKiller ) outputChatBox ( chatterName.." #FF0000ha matado a un BOSS!!! *", getRootElement(), r, g, b, true ) end ) ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Narutimmy Posted November 29, 2012 Author Posted November 29, 2012 y si le pones esto? if ( not isElement ( slothbot1 ) ) then destroyElement ( myBlip ) end end no estoy seguro donde poner esto mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
Plate Posted November 29, 2012 Posted November 29, 2012 Lo respawneas vos al slothbot narutimmy simplemente matas y respawnea Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Narutimmy Posted November 30, 2012 Author Posted November 30, 2012 Lo respawneas vos al slothbot narutimmy simplemente matas y respawnea nop, ya lo isimos, equipo de 6 jugadores, murio rapido y matamso mas zombis y no reaparece mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
Plate Posted November 30, 2012 Posted November 30, 2012 Ya te mande el pm que dice como respawnearlo narutimmy Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Narutimmy Posted November 30, 2012 Author Posted November 30, 2012 Ya te mande el pm que dice como respawnearlo narutimmy ya respwnea pero no desaparece el blip al morir, cada nuevo es mas blips mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
NodZen Posted November 30, 2012 Posted November 30, 2012 Ya te mande el pm que dice como respawnearlo narutimmy ya respwnea pero no desaparece el blip al morir, cada nuevo es mas blips Pusiste lo que te dije?. ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Narutimmy Posted November 30, 2012 Author Posted November 30, 2012 Ya te mande el pm que dice como respawnearlo narutimmy ya respwnea pero no desaparece el blip al morir, cada nuevo es mas blips Pusiste lo que te dije?. lo intente pero al ponerlo me deja de andar el scrip, me podrias espesificar donde va? mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
Recommended Posts