Jump to content

BotWasted


SkiZo

Recommended Posts

Hello,

so i'm trying to make Bot kills set +1 only if skin is 107 or 108 

addEvent ( "onBotWasted", true ) 
addEventHandler ( "onBotWasted", root, 
    function ( killer ) 
	        addPlayerBossKills ( killer ) 
   end 
)

So .. How i can do that ??! 

i have something maybe can help 

--# THIS IS NOT TESTED 
addEvent ( "onBotWasted", true ) 
addEventHandler ( "onBotWasted", root, 
    function ( killer ) 
-- local id = getElementModel ( --[[ i don't know what bot is exactly]] )
local id = getElementModel ( Bot )
if id == 107 or id == 108 then 
addPlayerBossKills ( killer ) 
end
end 
)

#EDIT .. change id to 107 & 108 

Edited by Legend<3
Link to comment
Just now, NeXuS™ said:

Next time use the Slothbot's WIKI Page, it'll help a lot.

--- # i already did ! 


addEvent("onBotWasted", true) 
addEventHandler("onBotWasted", root, function(killer)
	if getElementModel(source) == 180 or getElementModel(source) == 181 then
		addPlayerBossKills(killer)
	end
end)

Try this.

Thank you a lot... :):D 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...