Jump to content

Bot issue


Chaos

Recommended Posts

Hi, so i tried to make change in slothbot script that Bot could use Rocket launcher but the problem is when he shoots on ground or nearby he'll die and message appears as a player has killed him, how can i fix this kind of issue ?

6ac0a923e2504992b786931ac1a5b6b9.png

function mon (killer) 
if killer and killer ~= source and isElement( killer ) and getElementType(killer) == "player" then 
if source == Nemesis then 
outputChatBox ("[NEMESIS-ANNOUNCEMENT] "..getPlayerName(killer):gsub('#%x%x%x%x%x%x', '').." has killed a Nemesis.",root,0,255,0) 
end 
end 
boss() 
end 
addEvent("onBotWasted",true) 
addEventHandler("onBotWasted",getRootElement(), mon ) 

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...