سلام عليكم ورحمة الله وبركاته
: سويت هالكود
local Marker = createMarker( 2480.8,-1722,12.5,'cylinder',2, 255,255, 255, 150)
function WL (hitPlayer, matchingDimension)
if matchingDimension and hitPlayer and isElement(hitPlayer) and getElementType(hitPlayer) == "player" and getPedOccupiedVehicle(hitPlayer) then
outputChatBox ( "Welcome", getRootElement(), 255, 255, 255, false )
end
end
addEventHandler( "onMarkerHit", Marker, WL )
وشغال تمام لكن يوم اضفتله وصار كذا خرب
local Marker = createMarker( 2480.8,-1722,12.5,'cylinder',2, 255,255, 255, 150)
function WL (hitPlayer, matchingDimension,thevehicle)
if matchingDimension and hitPlayer and isElement(hitPlayer) and getElementType(hitPlayer) == "player" and getPedOccupiedVehicle(hitPlayer) then
if getElementModel ( thevehicle) == 510 then
outputChatBox ( "Welcome", getRootElement(), 255, 255, 255, false )
end
end
end
addEventHandler( "onMarkerHit", Marker, WL )
غيرت وحست لكن ماش ماقدر تاضبط الموضوع
طبعا انا ابيه اذا كان مع اللاعب السيكل اللي الاي دي حقه (510) تشتغل الوظيفه واذا كان معه سياره غيره مايشتغل