MontiVante Posted March 26, 2019 Share Posted March 26, 2019 good, I would like to ask for help for my boss since he has a problem, when the boss loses his life he spends his respawn time returns to reappear with all his life and the chat ... he would like it when the boss's life goes down Respawne until he dies and the chat does not appear while he is alive, but when he respawne with his time. function boss3 ( ) NemesisLosSantos = exports [ "slothBot" ]:spawnBot ( 1182.7412109375, -2036.556640625, 69.0078125, 90, 312, 0, 0, nil, 34,"waiting", true ) setElementModel ( NemesisLosSantos, 110 ) exports.extra_health:setElementExtraHealth ( NemesisLosSantos, 7000 ) outputChatBox ("#1DF30BEvento: El #FC0303BOSS Sniper Zombie #1DF30Bha vuelto a la vida. Ciudad Los Santos", getRootElement(), 255, 255, 255, true ) outputChatBox ("#1DF30BEvento: Premio #FC0303$20.000 #1DF30BPara El Player Que Mate Al Boss!",getRootElement(), 255, 255, 255, true ) Blip = (createBlipAttachedTo ( NemesisLosSantos, 23 )) setElementData ( NemesisLosSantos, "bossls", true ) setTimer(boss3, (60*1000*40), 1) setTimer(destroyElement, (60*1000*40), 1, NemesisLosSantos) setTimer(destroyElement, (60*1000*40), 1, Blip) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), boss3 ) addEvent("onBotWasted",true) addEventHandler("onBotWasted",getRootElement(), function (killer) if (source == NemesisLosSantos) then givePlayerMoney(killer,20000) --- dinero al matarlo -- killerName = getPlayerName(killer) triggerClientEvent(killer,"onShowMoney2",killer) weapon = getPedWeapon(killer) wr, wg, wb = getPlayerNametagColor(killer) exports.killmessages:outputMessage ( {killerName,{"padding",width=3},{"icon",id=weapon or 0},{"padding",width=3},{"color",r=125,g=0,b=0}," *[Sniper Zombie]"},getRootElement(),wr,wg,wb ) -- killmesagge -- outputChatBox ( getPlayerName( killer ) .. " #1DF30BHa matado el #FC0303Boss Sniper #1DF30BRecompensa de #FC0303$20.000",getRootElement(), 255, 255, 255, true ) destroyElement(Blip) end end) Link to comment
Sendy Posted March 27, 2019 Share Posted March 27, 2019 (edited) function boss3 ( ) NemesisLosSantos = exports [ "slothBot" ]:spawnBot ( 1182.7412109375, -2036.556640625, 69.0078125, 90, 110, 0, 0, nil, 34,"waiting", true ) exports.extra_health:setElementExtraHealth ( NemesisLosSantos, 7000 ) outputChatBox ("#1DF30BEvento: El #FC0303BOSS Sniper Zombie #1DF30Bha vuelto a la vida. Ciudad Los Santos", getRootElement(), 255, 255, 255, true ) outputChatBox ("#1DF30BEvento: Premio #FC0303$20.000 #1DF30BPara El Player Que Mate Al Boss!",getRootElement(), 255, 255, 255, true ) Blip = (createBlipAttachedTo ( NemesisLosSantos, 23 )) setElementData ( NemesisLosSantos, "bossls", true ) end boss3() addEvent("onBotWasted",true) addEventHandler("onBotWasted",getRootElement(), function (killer) if (source == NemesisLosSantos) then givePlayerMoney(killer,20000) --- dinero al matarlo -- killerName = getPlayerName(killer) triggerClientEvent(killer,"onShowMoney2",killer) weapon = getPedWeapon(killer) wr, wg, wb = getPlayerNametagColor(killer) exports.killmessages:outputMessage ( {killerName,{"padding",width=3},{"icon",id=weapon or 0},{"padding",width=3},{"color",r=125,g=0,b=0}," *[Sniper Zombie]"},getRootElement(),wr,wg,wb ) -- killmesagge -- outputChatBox ( getPlayerName( killer ) .. " #1DF30BHa matado el #FC0303Boss Sniper #1DF30BRecompensa de #FC0303$20.000",getRootElement(), 255, 255, 255, true ) destroyElement(Blip) setTimer(boss3, 25000, 1) end end) Edited March 27, 2019 by Sendy 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now