Jacobob14 Posted March 4, 2014 Share Posted March 4, 2014 as I can make that a number of zombies that appear to put in the command: ( function crearz (thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then x,y,z = getElementPosition(thePlayer) local crear = exports [ "zombies" ]:createZombie( x+1, y+1, z, 0) setElementData(crear,"jthead","adolf_hitler.png") setPedOnFire(crear,true) end end addCommandHandler("create",crearz) Link to comment
iPrestege Posted March 4, 2014 Share Posted March 4, 2014 What you mean i can't understand what you're trying to do creating new zombies? You're code is ok now? What you mean by number??? Link to comment
manawydan Posted March 4, 2014 Share Posted March 4, 2014 local zAmount = 10 -- change it function crearz (thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then local x,y,z = getElementPosition(thePlayer) for i=1,zAmount do i = exports [ "zombies" ]:createZombie( x+math.random(-3,3), y+math.random(-3,3), z, 0) setElementData(i,"jthead","adolf_hitler.png") setPedOnFire(i,true) end end end addCommandHandler("create",crearz) 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