crismaster Posted April 18, 2016 Share Posted April 18, 2016 Necesito ayuda con este script, el sv funciona con dayz Este es el script que uso ------- 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
Enargy, Posted April 18, 2016 Share Posted April 18, 2016 function Funcion (p) playerTeam = getPlayerTeam (p) if not playerTeam then return end Clann = getTeamName (playerTeam) if Clann == "Admin" then moveObject ( objeto, 2000, -2095.8000488281, -2340.3000488281, 33, 0, 0, 0 ) outputChatBox ( "BIENVENIDO A LOS LABORATORIOS UMBRELLA", p, 0, 255, 0, true ) else outputChatBox ( "ZONA RESTRINGIDA", p, 255, 0, 0, true ) end end addEventHandler ( "onColShapeHit", Zona, Funcion ) Link to comment
Recommended Posts