Ahmed King Posted April 26, 2017 Share Posted April 26, 2017 Areas = { Area1,Area2 } local Area2 = createRadarArea(1296, 2100, -140, 160, 255, 255, 255, 175); local Area1 = createRadarArea(1296, 2100, 140, 120, 255, 255, 255, 175); addEventHandler("onColShapeHit", root, function(player) for i, AreaCol in ipairs(Areas) do if source == AreaCol then givePlayerMoney(player,5000) end end end, false) ليه لما ادخل مش بيديني فلوس ؟ و ما في دي بج Link to comment
Ahmed King Posted April 26, 2017 Author Share Posted April 26, 2017 1 hour ago, Ahmed King said: Areas = { Area1,Area2 } local Area2 = createRadarArea(1296, 2100, -140, 160, 255, 255, 255, 175); local Area1 = createRadarArea(1296, 2100, 140, 120, 255, 255, 255, 175); addEventHandler("onColShapeHit", root, function(player) for i, AreaCol in ipairs(Areas) do if source == AreaCol then givePlayerMoney(player,5000) end end end, false) ليه لما ادخل مش بيديني فلوس ؟ و ما في دي بج .... Link to comment
iMr.WiFi..! Posted April 26, 2017 Share Posted April 26, 2017 (edited) local Area2 = createRadarArea(1296, 2100, -140, 160, 255, 255, 255, 175); local Area1 = createRadarArea(1296, 2100, 140, 120, 255, 255, 255, 175); addEventHandler("onColShapeHit", root, function(player) if source == Area1 then givePlayerMoney(player,5000) end if source == Area1 then givePlayerMoney(player,5000) end end) Edited April 26, 2017 by iMr.WiFi..! Link to comment
MR.StoRm Posted April 26, 2017 Share Posted April 26, 2017 15 minutes ago, iMr.WiFi..! said: local Area2 = createRadarArea(1296, 2100, -140, 160, 255, 255, 255, 175); local Area1 = createRadarArea(1296, 2100, 140, 120, 255, 255, 255, 175); addEventHandler("onColShapeHit", root, function(player) if source == Area1 then givePlayerMoney(player,5000) end if source == Area1 then givePlayerMoney(player,5000) end end) --- local Area2 = createRadarArea(1296, 2100, -140, 160, 255, 255, 255, 175); local Area1 = createRadarArea(1296, 2100, 140, 120, 255, 255, 255, 175); addEventHandler("onColShapeHit", root, function(player) if source == Area1 then givePlayerMoney(player,5000) end if source == Area2 then givePlayerMoney(player,5000) end end) @iMr.WiFi..! Link to comment
Ahmed King Posted April 26, 2017 Author Share Posted April 26, 2017 44 minutes ago, iMr.WiFi..! said: local Area2 = createRadarArea(1296, 2100, -140, 160, 255, 255, 255, 175); local Area1 = createRadarArea(1296, 2100, 140, 120, 255, 255, 255, 175); addEventHandler("onColShapeHit", root, function(player) if source == Area1 then givePlayerMoney(player,5000) end if source == Area1 then givePlayerMoney(player,5000) end end) عاوزها بالجداول لو سمحت Link to comment
Me[Z]oO Posted April 26, 2017 Share Posted April 26, 2017 local Cols = { {1296, 2100, -140, 160, 255, 255, 255, 175}, {1296, 2100, 140, 120, 255, 255, 255, 175}, } local Col = {} for k=1, #Cols do Col[k] = createRadarArea ( Cols[k][1], Cols[k][2], Cols[k][3], Cols[k][4], Cols[k][5], Cols[k][6], Cols[k][7], Cols[k][8]) addEventHandler("onColShapeHit", root, function(player) if getElementType(player) == 'player' and source == Col[k] then givePlayerMoney(player,5000) end end) end غير مجرب 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