Jump to content

تصحيح


Recommended Posts

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
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
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 by iMr.WiFi..!
Link to comment
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
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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