Jump to content

[SOLVED]acl problem


Electro88

Recommended Posts

hello i have problem in script codes same but give error ERROR: :27: 'end' expected (to close 'function' at line 10) near '(eof)'

--[[function boss (player,comando,weaponid,skinid) 
     local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name 
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
local x,y,z = getElementPosition(player) 
 slothbot1 = exports [ "slothbot" ]:spawnBot ( x,y,z , 90, tonumber(skinid), 0, 0, ex, tonumber(weaponid), "hunting", true ) 
 exports.extra_health:setElementExtraHealth ( slothbot1, math.random(2500, 3355) ) 
 end 
addCommandHandler("spawnbot",boss)]] 
  
function bos (player,comando,weaponid,skinid) 
     local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name 
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
local x,y,z = getElementPosition(player) 
  slothbot1 = exports [ "slothbot" ]:spawnBot ( x,y,z , 90, tonumber(weaponid), 0, 0, ex, tonumber(skinid), "hunting", true ) 
  exports.extra_health:setElementExtraHealth ( slothbot1, math.random(2500, 3355) ) 
 end 
addCommandHandler("spawnbot",bos)  

Edited by Guest
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...