Jump to content

help zombies


Recommended Posts

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
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

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...