Jump to content

que se necesita para hacer una zona anti zombis ?


iFoReX

Recommended Posts

pero el :?:

safeZoneRadar = createRadarArea ( 661.65600585938, -2784.9812011719, 220, 200, 0, 255, 0, 100 ) 
  

[url=http://www.game-state.eu][img=http://www.game-state.eu/190.209.65.71:22003/mta/FFFFFF/F09724/560x95.png][/url] 

Edited by Guest
Link to comment
safecol = createColCuboid ( 2.6025390625, -347.607421875, 6.9078125953674, 220, 200, 60 ) 
safeZoneRadar = createRadarArea ( 2.6025390625, -347.607421875, 220, 200, 0, 255, 0, 100 ) 
setElementData (safecol, "zombieProof", true) 
  
function enterZone( hitElement, matchingDimension) 
if getElementType(hitElement) == "ped" then 
killPed(hitElement) 
end 
end 
addEventHandler( "onColShapeHit", safecol, enterZone ) 

Intenta eso

Link to comment

si funciona pero solo pude entrar un solo ped q es el q tiene ke usar el player sin morir pero kiero ke entre 4 mira asi

donde dice skin solo un ped puede entrar entonces yo solo kiero ke entren 4 si me ayudas te lo agradesco :D

safecol = createColCuboid ( -29.941373825073, -347.50537109375, 5.4296875, 5000, 5000, 5000 ) 
safeZoneRadar = createRadarArea ( -29.941373825073, -347.50537109375, 5000, 5000, 5000, 5000, 5000 ) 
setElementData (safeZoneRadar, "zombieProof", true) 
  
  
function enterZone(hitPlayer,thePlayer) 
local skin = getElementModel (hitPlayer) 
      if ( skin == 305 ) then 
    toggleControl (hitPlayer, "fire", true ) 
    toggleControl (hitPlayer, "aim_weapon", true) 
    toggleControl (hitPlayer, "vehicle_fire", true) 
    outputChatBox("Entras en Area U.S.S Usar skin especial Preguntar al Jefe del Clan.", hitPlayer, 0, 255, 0) 
       else 
         killPed (hitPlayer) 
end 
end 
addEventHandler( "onColShapeHit", safecol, enterZone ) 
  
function leaveZone(hitPlayer,thePlayer) 
local skin = getElementModel (hitPlayer) 
    toggleControl (hitPlayer, "fire", true) 
    toggleControl (hitPlayer, "aim_weapon", true) 
    toggleControl (hitPlayer, "vehicle_fire", true) 
    outputChatBox("Sales del Area U.S.S.", hitPlayer, 255, 0, 0) 
 if not ( skin == 305 )  then 
  killPed (hitPlayer) 
end 
end 
addEventHandler( "onColShapeLeave", safecol, leaveZone ) 

Link to comment

yo utilizo este codigo muy sencillo y me funciona de maravilla:

safecol = createColCuboid ( 95.974617004395, 1751.3895263672, 17.640625, 255, 255, 255 ) 
safeZoneRadar = createRadarArea ( 95.974617004395, 1751.3895263672, 255, 255, 255, 255, 255 ) 
setElementData (safeZoneRadar, "zombieProof", true) 

claro lo modificas a tu gusto el color y la posicion :)

Link to comment
  • Recently Browsing   0 members

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