Jump to content

Question About Slothboth


Alexs

Recommended Posts

function spawnSlothBot(thePlayer, cmd, skin, weapon, mode, rot, team) 
    local x, y, z = getElementPosition (thePlayer) 
    local rot = tonumber(rot) or 0 
    local team = getTeamFromName(team) 
    local int = getElementInterior(thePlayer) 
    local dim = getElementDimension(thePlayer) 
    local weapon = tonumber(weapon) or 0 
    local skin = tonumber(skin) or 0 
    exports["slothbot"]:spawnBot( x, y+1, z, rot, skin, int, dim, team, weapon, mode or "hunting", true ) 
end 
addCommandHandler ( "spawnbot", spawnSlothBot ) 

Link to comment
function spawnSlothBot(thePlayer, cmd, skin, weapon, mode, rot, team) 
    local x, y, z = getElementPosition (thePlayer) 
    local rot = tonumber(rot) or 0 
    local team = getTeamFromName(team) 
    local int = getElementInterior(thePlayer) 
    local dim = getElementDimension(thePlayer) 
    local weapon = tonumber(weapon) or 0 
    local skin = tonumber(skin) or 0 
    exports["slothbot"]:spawnBot( x, y+1, z, rot, skin, int, dim, team, weapon, mode or "hunting", true ) 
end 
addCommandHandler ( "spawnbot", spawnSlothBot ) 

Dont Work :( I use /spawnbot and appears a guy, but just look me, dont atack :( and i want to know, there is a way to do it spawn just in a zone, and no at my side?

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