PaoloPG Posted February 11, 2013 Share Posted February 11, 2013 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
FraN-724 Posted February 12, 2013 Share Posted February 12, 2013 Tienes que agregar una linea algo así if getElementData(localPlayer,"gang") == "NombreDelClan" then Link to comment
PaoloPG Posted February 12, 2013 Author Share Posted February 12, 2013 Tienes que agregar una linea algo así if getElementData(localPlayer,"gang") == "NombreDelClan" then A cual al Zone? Link to comment
PaoloPG Posted February 12, 2013 Author Share Posted February 12, 2013 mmm lo probe..! Puse como gang "GANG" entro y me muero :C Link to comment
FraN-724 Posted February 12, 2013 Share Posted February 12, 2013 creaste el team "GANG" a través del gang system ? Link to comment
PaoloPG Posted February 12, 2013 Author Share Posted February 12, 2013 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
FraN-724 Posted February 12, 2013 Share Posted February 12, 2013 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
PaoloPG Posted February 12, 2013 Author Share Posted February 12, 2013 Gracias me funciono eres el mejor Link to comment
Recommended Posts