CobbTheWarriorsRPG Posted November 18, 2013 Share Posted November 18, 2013 Hello, Im trying to mading a script who creates bots whit the weapon who copies you in the comand this is the script function SpawnHunter ( player, wep ) wep = tonumber(wep) if wep then local x,y,z = getElementPosition ( player ) local accountname = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ( "user.".. accountname, aclGetGroup ( "Admin" ) ) then exports [ "slothbot" ]:spawnBot ( x, y, z, 90, 288, 0, 0, locos, wep, "guarding", true ) end end end addCommandHandler("spawnbot", SpawnHunter) But doesnt work. Thanks a lot. Link to comment
Spajk Posted November 18, 2013 Share Posted November 18, 2013 function SpawnHunter ( player, wep ) To function SpawnHunter ( player, cmd, wep ) Link to comment
Dealman Posted November 18, 2013 Share Posted November 18, 2013 Read about the addCommandHandler arguments once more. function SpawnHunter(player, cmd, wep) Link to comment
CobbTheWarriorsRPG Posted November 18, 2013 Author Share Posted November 18, 2013 Thanks Spajk Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now