Te mostrare un script que me pasaron para las puertas de las bases y usa el gang systems y funciona perfecto
objeto1 = createObject ( 6959, -1555.5, 2885.6005859375, 134, 90, 0, 0 )
local state = false
function funcion1 ( source )
if ( getElementData ( source, "gang" ) == "#F78181Company #F7BE81Of #F3F781Shoot #BEF781|C#81F781o#81F7F3S|" ) then
if ( not state ) then
moveObject ( objeto1, 500, -1514.2001953125, 2885.6005859375, 134 )
outputChatBox ( "Puerta Abierta!", source, 0, 255, 0, true )
state = true
else
moveObject ( objeto1, 500, -1555.5, 2885.6005859375, 134 )
outputChatBox ( "Puerta Cerrada!", source, 127, 0, 255, true )
state = false
end
else
outputChatBox ( "Qué haces? La concha de tu hermana!", source, 255, 0, 0, true )
end
end
addCommandHandler ( "entradacos", funcion1 )
Ojala que funcione para encontrar el porque no funciona