vectorvc97 Posted June 17, 2018 Share Posted June 17, 2018 شباب انا عندي مود منطقة الحماية بس في مشكلة ابي احط اكثر من شخصية انو مايموت من الردار بس للاسف كل ما اعدل عليه المود يخرب كله ابي احط اكثر من skin safecol = createColCuboid ( 1387.93811, 2685.70581, 10.82031, 255, 255, 255 ) safeZoneRadar = createRadarArea ( 1387.93811, 2685.70581, 255, 255, 255, 255, 255 ) setElementData (safeZoneRadar, "zombieProof", true) function enterZone(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) if ( skin == 0) then toggleControl (hitPlayer, "fire", true ) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) outputChatBox("", 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("", hitPlayer, 255, 0, 0) if not ( skin == 0) then killPed (hitPlayer) end end addEventHandler( "onColShapeLeave", safecol, leaveZone ) aclGroupAddObject (aclGetGroup("Console"), "user.hmod.qtr") Link to comment
#RoLde Posted June 17, 2018 Share Posted June 17, 2018 safecol = createColCuboid ( 1387.93811, 2685.70581, 10.82031, 255, 255, 255 ) safeZoneRadar = createRadarArea ( 1387.93811, 2685.70581, 255, 255, 255, 255, 255 ) setElementData (safeZoneRadar, "zombieProof", true) function enterZone(hitPlayer,thePlayer) if ( getElementType(hitPlayer) == "player" ) then toggleControl (hitPlayer, "fire", true ) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) outputChatBox("", hitPlayer, 0, 255, 0) else if ( getElementData(hitPlayer, "zombie") == true ) then killPed (hitPlayer) end end end addEventHandler( "onColShapeHit", safecol, enterZone ) function leaveZone(hitPlayer,thePlayer) toggleControl (hitPlayer, "fire", true) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) outputChatBox("", hitPlayer, 255, 0, 0) if not ( getElementType(hitPlayer) == "player" ) then killPed (hitPlayer) end end addEventHandler( "onColShapeLeave", safecol, leaveZone ) aclGroupAddObject (aclGetGroup("Console"), "user.hmod.qtr") Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now