Hola a todos.
Quiero hacer una puerta en la base de un clan, la hice y lo que pasa es que cuando quieren entrar los miembros del gang pueden, y los que no, también, aparte, también se buguea la puerta.
El gang_system que uso es de Castillo.
objeto = createObject ( 980, 2102.943359375, 1863.638671875, 12.491814422607, 0, 0, 72 )
x,y,z = getElementPosition (objeto)
Zona = createColCircle ( x,y, 10, 10 )
function Funcion (source)
playerTeam = getPlayerTeam ( source )
Clann = getTeamFromName ( "DevilSoldiers" )
if ( playerTeam ) == Clann then
moveObject ( objeto, 1000, 2102.943359375, 1863.638671875, 16.491814422607, 0, 0, 72 )
outputChatBox ( "Entrando a base", source, 0, 255, 0, true )
else
outputChatBox ( "No eres del clan!", source, 255, 0, 0, true )
end
end
addEventHandler ( "onColShapeHit", Zona, Funcion )
function Funcion2 ()
moveObject ( objeto, 1000, 2102.943359375, 1863.638671875, 12.491814422607, 0, 0, 72 )
outputChatBox ( "Saliendo de base!", source, 0, 255, 0, true )
end
addEventHandler ( "onColShapeLeave", Zona, Funcion2 )