Atouk Posted February 20, 2013 Share Posted February 20, 2013 Como ago para que no me aparescan los codigos estos ~#~€#~€ y me aparesca el color? Quiero que se lo diga al jugador que entra, no a todo el mundo. Script: local hillArea = createColRectangle ( -3298.0908203125, 357.818359375, 200, 210 ) local hillRadar = createRadarArea ( -3298.0908203125, 357.818359375, 400, 210, 0, 0, 0, 250 ) setElementData (hillRadar, "zombieProof", true) function enterZone(hitPlayer,thePlayer) local gang = getElementModel (hitPlayer) if getElementData(hitPlayer,"gang") == "Z.S.G" then toggleControl (hitPlayer, "fire", true ) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) outputChatBox ( "#3399FF[ #FFCC00BASE #3399FF]Entraste a la base ZS~Gamers", hitPlayer, 255, 255, 255, true ) else killPed (hitPlayer) end end addEventHandler( "onColShapeHit", hillArea, enterZone ) function enterZone2(hitPlayer,thePlayer) local gang = getElementModel (hitPlayer) if getElementData(hitPlayer,"gang") == "Z.S.G" then toggleControl (hitPlayer, "fire", true ) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) outputChatBox ( "#3399FF[#FFCC00BASE#3399FF]Saliste de la base ZS~Gamers", hitPlayer, 255, 255, 255, true ) else killPed (hitPlayer) end end addEventHandler( "onColShapeLeave", hillArea, enterZone2 ) Link to comment
Atouk Posted February 20, 2013 Author Share Posted February 20, 2013 Listo ya lo arregle gracias. Link to comment
MTA Team 0xCiBeR Posted February 21, 2013 MTA Team Share Posted February 21, 2013 (edited) esta mal asigando el element data. Los zombies haran spawn en tu radar Edited February 21, 2013 by Guest Link to comment
MTA Team 0xCiBeR Posted February 21, 2013 MTA Team Share Posted February 21, 2013 Men debes asignar el zombieProof al ColRectangle, no al Radar area... ._. Seria: local hillArea = createColRectangle ( -3298.0908203125, 357.818359375, 200, 210 ) local hillRadar = createRadarArea ( -3298.0908203125, 357.818359375, 400, 210, 0, 0, 0, 250 ) setElementData (hillArea, "zombieProof", true) Saludos Link to comment
Castillo Posted February 21, 2013 Share Posted February 21, 2013 No, el "zombieProof" debe estar en una radar area. Link to comment
Recommended Posts