Jump to content

[Nuevo en el foro] Como crear zona antizombies con GodMode


NealS1397

Recommended Posts

hola :D 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
  
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
  
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 :D

Link to comment
  
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 :D

De nada.

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...