AR/Other

From Multi Theft Auto: Wiki
Revision as of 15:33, 16 August 2014 by Tn6eL Gamer (talk | contribs)
Jump to navigation Jump to search

بسم الله الرحمن الرحيم




___________________________________________________________________


== return == تستخدم لارجاع القيمة

Click to collapse [-]
Example
function createZone(x, y, sizeX, sizeY)
	createRadarArea(x, y, sizeX, sizeY)
	return createColRectangle(x,  y, sizeX, sizeY)
end

addEventHandler("onColShapeHit", createZone(94.81484, 1815.98547, 500, 300), function(Hit)
	if getElementType(Hit) == "player" then
		killPed(Hit)
	end
end)

نلاحظ اننا رجعنا القيمة للكول شيب