Jump to content

HELP script automatic gate team


crismaster

Recommended Posts

I have this problem

 This is the script that I use 
------- Creado por AZNO10/AndrixX' ---------- 
objeto = createObject ( 18239, -2095.8000488281, -2340.3000488281, 29, 0, 0, 322.75012207031 ) 
x,y,z = getElementPosition (objeto) 
Zona = createColCircle ( x,y, 15, 15 ) 
  
function Funcion (source) 
    playerTeam = getPlayerTeam ( source ) 
    Clann = getTeamFromName ( "Admin" ) 
    if ( playerTeam ) == Clann then 
        moveObject ( objeto, 2000, -2095.8000488281, -2340.3000488281, 33, 0, 0, 0 ) 
    outputChatBox ( "BIENVENIDO A LOS LABORATORIOS UMBRELLA", source, 0, 255, 0, true ) 
    else 
    outputChatBox ( "ZONA RESTRINGIDA", source, 255, 0, 0, true ) 
end 
end 
addEventHandler ( "onColShapeHit", Zona, Funcion ) 
  
function Funcion2 () 
        moveObject ( objeto, 2000, -2095.8000488281, -2340.3000488281, 29, 0, 0, 0 ) 
        outputChatBox ( "UMBRELLA", source, 0, 255, 0, true ) 
end 
addEventHandler ( "onColShapeLeave", Zona, Funcion2 ) 

 [2016-04-17 22:56:04] WARNING: [DayZ-MTA]\PuertaADMIN\puerta.lua:7: Bad argument @ 'getTeamName' [Expected team at argument 1, got nil][code=text] [2016-04-17 22:56:04] WARNING: [DayZ-MTA]\PuertaADMIN\puerta.lua:7: Bad argument @ 'getTeamName' [Expected team at argument 1, get vehicle]
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...