CobbTheWarriorsRPG Posted November 18, 2013 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.
Spajk Posted November 18, 2013 Posted November 18, 2013 function SpawnHunter ( player, wep ) To function SpawnHunter ( player, cmd, wep )
Dealman Posted November 18, 2013 Posted November 18, 2013 Read about the addCommandHandler arguments once more. function SpawnHunter(player, cmd, wep) If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
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