NealS1397 Posted March 28, 2015 Share Posted March 28, 2015 hola soy nuevo en el foro y para empezar me gustaria saber como puedo crear una zona anti-zombies y que en ella no puedan morir los users de un determinado team o acl. Solo tengo esto: safecol = createColCuboid ( 2774.2294921875,831.14306640625,10.8984375, 0, 0, 255 ) safeZoneRadar = createRadarArea ( 2774.2294921875,831.14306640625, 180, 250, 0, 0, 255 ) setElementData (safeZoneRadar, "zombieProof", true) gracias por su tiempo! *-* Link to comment
Tomas Posted March 28, 2015 Share Posted March 28, 2015 safecol = createColCuboid ( 2774.2294921875,831.14306640625,10.8984375, 0, 0, 255 ) safeZoneRadar = createRadarArea ( 2774.2294921875,831.14306640625, 180, 250, 0, 0, 255 ) setElementData (safeZoneRadar, "zombieProof", true) addEventHandler("onClientPlayerDamage",root,function() local x,y = getElementPosition(source) if isInsideRadarArea(safeZoneRadar,x,y) and getPlayerTeam(source) == getTeamFromName("ELNOMBREDELTEAM") then cancelEvent() end end ) Link to comment
NealS1397 Posted March 28, 2015 Author Share Posted March 28, 2015 safecol = createColCuboid ( 2774.2294921875,831.14306640625,10.8984375, 0, 0, 255 ) safeZoneRadar = createRadarArea ( 2774.2294921875,831.14306640625, 180, 250, 0, 0, 255 ) setElementData (safeZoneRadar, "zombieProof", true) addEventHandler("onClientPlayerDamage",root,function() local x,y = getElementPosition(source) if isInsideRadarArea(safeZoneRadar,x,y) and getPlayerTeam(source) == getTeamFromName("ELNOMBREDELTEAM") then cancelEvent() end end ) Muchas Gracias me sirvio Link to comment
Tomas Posted March 28, 2015 Share Posted March 28, 2015 safecol = createColCuboid ( 2774.2294921875,831.14306640625,10.8984375, 0, 0, 255 ) safeZoneRadar = createRadarArea ( 2774.2294921875,831.14306640625, 180, 250, 0, 0, 255 ) setElementData (safeZoneRadar, "zombieProof", true) addEventHandler("onClientPlayerDamage",root,function() local x,y = getElementPosition(source) if isInsideRadarArea(safeZoneRadar,x,y) and getPlayerTeam(source) == getTeamFromName("ELNOMBREDELTEAM") then cancelEvent() end end ) Muchas Gracias me sirvio De nada. Link to comment
Recommended Posts