Jump to content

Ayuda Slothbot


iFoReX

Recommended Posts

Como podria hacer para que un Slothbot me siga pero no me ataque ? :/ intente asi :

---GuardaEspaldas Mota 
function guardaespalda (playerSource) 
local accName = getAccountName ( getPlayerAccount ( playerSource ) ) 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
if ( not isElement ( guardaespalda ) ) then 
        x,y,z = getElementPosition(playerSource) 
        guardaespalda = exports [ "slothbot" ]:spawnBot ( x+2,y,z, 90, 31, 0, 0, ex, 38) 
        exports.extra_health:setElementExtraHealth ( guardaespalda, 10000 ) 
        exports [ "slothbot" ]:setBotAttackEnabled(guardaespalda,false) 
        exports [ "slothbot" ]:setBotFollow(guardaespalda,playerSource) 
outputChatBox ( "GuardaEspalda Creado!!!", playerSource, 255, 255, 255, true ) 
else 
    outputChatBox ( "Ya hay un guardaespalda!!!", playerSource, 255, 255, 255, true ) 
  
         end 
      end 
    end 
addCommandHandler("guardaespalda",guardaespalda) 

Pero me mata :/

Link to comment
  • Recently Browsing   0 members

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