Jump to content

[AYUDA] Zone_AntiPlayer-


PaoloPG

Recommended Posts

Hola keria saver como acer Una zona ..! tengo Mi server es con clanes ..!

kiero modificar anti-zombie-area , kiero que cuando los otros player token la zona mueran pero , los k son del clan no mueran , los mienbros del clan solo entraran ala Zone los k no son moriran instantaniamente , El panel de Clan es gang System

Link to comment
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) 
  
  
function enterZone(hitPlayer,thePlayer) 
local gang = getElementModel (hitPlayer) 
 if  getElementData(localPlayer,"gang") == "ASD" then 
    toggleControl (hitPlayer, "fire", true ) 
    toggleControl (hitPlayer, "aim_weapon", true) 
    toggleControl (hitPlayer, "vehicle_fire", true) 
    outputChatBox("Ola k ace:D.", hitgang, 0, 255, 0) 
       else 
         killPed (hitPlayer) 
end 
end 
addEventHandler( "onColShapeHit", safecol, enterZone ) 
  

Esta bien asi lo puse en Zone , me funciona , creo un gang con el nombre , de ai , y un team = pero me muero

Link to comment

Intenta así

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) 
  
  
function enterZone(hitPlayer,thePlayer) 
local gang = getElementModel (hitPlayer) 
 if  getElementData(hitPlayer,"gang") == "ASD" then 
    toggleControl (hitPlayer, "fire", true ) 
    toggleControl (hitPlayer, "aim_weapon", true) 
    toggleControl (hitPlayer, "vehicle_fire", true) 
    outputChatBox("Ola k ace:D.", hitPlayer, 0, 255, 0) 
       else 
         killPed (hitPlayer) 
end 
end 
addEventHandler( "onColShapeHit", safecol, enterZone ) 

Link to comment
  • Recently Browsing   0 members

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