Daniel1zD Posted February 17, 2014 Share Posted February 17, 2014 Ayuda no entiendo por que el mensaje no se sale please ayudenme local AreaEntry = createColCuboid ( -1774.52 , -704.71, 850, 750, 255) local AreaLS = createRadarArea ( -1774.52 , -704.71, 850, 750, 0, 136, 0 ,190 ) function ENTERLS () if (getElementType(thePlayer) == "player") then outputChatBox( getPlayerName(thePlayer) .. " Usted a Entrado al Area de LS!", getRootElement(), 136, 0, 190 ) setRadarAreaFlashing ( AreaEntry, true ) end end addEventHandler ( "onColShapeHit", AreaLS, ENTERLS ) function EXITLS () if (getElementType(thePlayer) == "player") then if isPedDead ( thePlayer ) ~= true then outputChatBox ( getPlayerName(thePlayer) .. " Usted a Salido del Area de LS!", getRootElement(), 136, 0, 190 ) setRadarAreaFlashing ( AreaEntry, false ) end end end addEventHandler ( "onColShapeLeave", AreaLS, EXITLS ) Link to comment
Sensacion Posted February 17, 2014 Share Posted February 17, 2014 ponle function ENTERLS ( thePlayer ) y function EXITLS ( thePlayer ) Link to comment
Daniel1zD Posted February 17, 2014 Author Share Posted February 17, 2014 local AreaEntry = createColCuboid ( -1774.52 , -704.71, 850, 750, 255) local AreaLS = createRadarArea ( -1774.52 , -704.71, 850, 750, 0, 136, 0 ,190 ) function ENTERLS (thePlayer) if (getElementType(thePlayer) == "player") then outputChatBox( getPlayerName(thePlayer) .. " Usted a Entrado al Area de LS!", getRootElement(), 136, 0, 190 ) setRadarAreaFlashing ( AreaEntry, true ) end end addEventHandler ( "onColShapeHit", AreaLS, ENTERLS ) function EXITLS (thePlayer) if (getElementType(thePlayer) == "player") then if isPedDead ( thePlayer ) ~= true then outputChatBox ( getPlayerName(thePlayer) .. " Usted a Salido del Area de LS!", getRootElement(), 136, 0, 190 ) setRadarAreaFlashing ( AreaEntry, false ) end end end addEventHandler ( "onColShapeLeave", AreaLS, EXITLS ) sigue sin salir el mensaje ya le puse el thePlayer pero no sale nada de mensajes y en consola me sale / Territorio.lua :1 bad Argument @ ' createColCubiod' Link to comment
JesusAliso Posted February 17, 2014 Share Posted February 17, 2014 Lol, perdón es que pensé algo raro y elimine el comentario, Server-side: local AreaEntry = createColCuboid ( -1774.52 , -704.71, 7.5, 850, 750, 255) local AreaLS = createRadarArea ( -1774.52 , -704.71, 850, 750, 0, 136, 0 ,190 ) function ENTERLS (thePlayer) if (getElementType(thePlayer) == "player") then outputChatBox( getPlayerName(thePlayer) .. " Usted a Entrado al Area de LS!", getRootElement(), 136, 0, 190 ) setRadarAreaFlashing ( AreaEntry, true ) end end addEventHandler ( "onColShapeHit", AreaEntry, ENTERLS ) function EXITLS (thePlayer) if (getElementType(thePlayer) == "player") then if isPedDead ( thePlayer ) ~= true then outputChatBox ( getPlayerName(thePlayer) .. " Usted a Salido del Area de LS!", getRootElement(), 136, 0, 190 ) setRadarAreaFlashing ( AreaEntry, false ) end end end addEventHandler ( "onColShapeLeave", AreaEntry, EXITLS ) Link to comment
Daniel1zD Posted February 17, 2014 Author Share Posted February 17, 2014 Lol, perdón es que pensé algo raro y elimine el comentario, Server-side: local AreaEntry = createColCuboid ( -1774.52 , -704.71, 7.5, 850, 750, 255) local AreaLS = createRadarArea ( -1774.52 , -704.71, 850, 750, 0, 136, 0 ,190 ) function ENTERLS (thePlayer) if (getElementType(thePlayer) == "player") then outputChatBox( getPlayerName(thePlayer) .. " Usted a Entrado al Area de LS!", getRootElement(), 136, 0, 190 ) setRadarAreaFlashing ( AreaEntry, true ) end end addEventHandler ( "onColShapeHit", AreaEntry, ENTERLS ) function EXITLS (thePlayer) if (getElementType(thePlayer) == "player") then if isPedDead ( thePlayer ) ~= true then outputChatBox ( getPlayerName(thePlayer) .. " Usted a Salido del Area de LS!", getRootElement(), 136, 0, 190 ) setRadarAreaFlashing ( AreaEntry, false ) end end end addEventHandler ( "onColShapeLeave", AreaEntry, EXITLS ) mmm no funciona no encuentro el erro y lo único que me lansa la consola es esto Territorio.lua :1 bad Argument @ ' createColCubiod' pero solo sale cuando inicio el resource Link to comment
JesusAliso Posted February 17, 2014 Share Posted February 17, 2014 Lo colocaste server-side?? ami me funciona perfectamente. Link to comment
Daniel1zD Posted February 17, 2014 Author Share Posted February 17, 2014 este es mi meta Link to comment
JesusAliso Posted February 17, 2014 Share Posted February 17, 2014 Reiniciaste el recurso? viste donde esta la zona?Por que las coordinadas que tienes estan en el aeropuerto de San Fierro. Link to comment
Daniel1zD Posted February 17, 2014 Author Share Posted February 17, 2014 jajaja gracias ya funciona me avia pasado por una , al copiar y pega Link to comment
Recommended Posts