Jump to content

[HELP] Why is this script not working?


Recommended Posts

This is my anti zombie zone

But when i enter with skin 285 i die to?

While i did:

if skin == 115 or 285 then

Here is the code:

a51gate1 = createObject ( 980, 1500.7756347656, -1441.1220703125, 9.4062042236328, 0, 0, 272 )
a51col = createColCuboid ( -66.439483642578, 1479.7907714844, 12.388235092163, 150, 150, 100 )
 
function opena51gates(hitPlayer,thePlayer)
local skin = getElementModel (hitPlayer)
if skin == 115 or 285 then
moveObject (a51gate1, 1000, 1500.7756347656, -1441.1220703125, 9.4062042236328 )
else
killPed (hitPlayer)
end
end
addEventHandler( "onColShapeHit", a51col, opena51gates )
 
function closea51gates(hitPlayer,thePlayer)
local skin = getElementModel (hitPlayer)
if not skin == 115 or 285 then
killPed (hitPlayer)
moveObject (a51gate1, 1000, 1500.7756347656, -1441.1220703125, 9.4062042236328 )
end
end
addEventHandler( "onColShapeLeave", a51col, closea51gates )

]

Regards,

Jesseunit

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