Stranger Posted May 31, 2013 Share Posted May 31, 2013 االسلام عليكم يا شباب ا ابي كود ,اذا لمست الماركر يجيك درع ودم يليت وضحت المعلومه Link to comment
xX|KeMo|Xx Posted May 31, 2013 Share Posted May 31, 2013 marker = createMarker ( ?,?, ?, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker, function (thePlayer) setPlayerArmor ( thePlayer, 100) setElementHealth (thePlayer,100) end ) Link to comment
TAPL Posted May 31, 2013 Share Posted May 31, 2013 marker = createMarker ( ?,?, ?, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker, function (thePlayer) setPlayerArmor ( thePlayer, 100) setElementHealth (thePlayer,100) end ) لازم تسوي تحقق للألمنت الي دخل الماركر بالفنكشن getElementType لان لو كان الي دخل الماركر سيارة، بيصير دم السيارة 100 و بتنفجر setPedArmor الكود الجديد setPlayerArmor الكود قديم Link to comment
S4MuEL Posted May 31, 2013 Share Posted May 31, 2013 marker = createMarker ( ?,?, ?, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker, function (thePlayer) setPlayerArmor ( thePlayer, 100) setElementHealth (thePlayer,100) end ) يَ حول آلله , خله يحآول ! Link to comment
S4MuEL Posted May 31, 2013 Share Posted May 31, 2013 مآ آبيهَ يآخخذ كودآت ججآهزةة # نبيهـَ يحآول ! : \ Link to comment
Stranger Posted May 31, 2013 Author Share Posted May 31, 2013 لازم تسوي تحقق للألمنت الي دخل الماركر بالفنكشن getElementType لان لو كان الي دخل الماركر سيارة، بيصير دم السيارة 100 و بتنفجر setPedArmor الكود الجديد setPlayerArmor الكود قديم ' طيب يصير كذا ' marker = createMarker ( ?,?, ?, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker, if getElementType ( thePlayer ) == "marker" then function (thePlayer) setPedArmor ( thePlayer, 100) setElementHealth (thePlayer,100) end ) Link to comment
yazan Posted May 31, 2013 Share Posted May 31, 2013 عدل الاحدث + يب بس تحقق بعد function Link to comment
iPrestege Posted May 31, 2013 Share Posted May 31, 2013 لازم تسوي تحقق للألمنت الي دخل الماركر بالفنكشن getElementType لان لو كان الي دخل الماركر سيارة، بيصير دم السيارة 100 و بتنفجر setPedArmor الكود الجديد setPlayerArmor الكود قديم ' طيب يصير كذا ' marker = createMarker ( ?,?, ?, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker, if getElementType ( thePlayer ) == "marker" then function (thePlayer) setPedArmor ( thePlayer, 100) setElementHealth (thePlayer,100) end ) marker ?? > player Link to comment
iMr.Dawix~# Posted May 31, 2013 Share Posted May 31, 2013 (edited) لازم تسوي تحقق للألمنت الي دخل الماركر بالفنكشن getElementType لان لو كان الي دخل الماركر سيارة، بيصير دم السيارة 100 و بتنفجر setPedArmor الكود الجديد setPlayerArmor الكود قديم ' طيب يصير كذا ' marker = createMarker ( ?,?, ?, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker, if getElementType ( thePlayer ) == "marker" then function (thePlayer) setPedArmor ( thePlayer, 100) setElementHealth (thePlayer,100) end ) marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker,function (thePlayer) if getElementType ( thePlayer ) == "player" then setPedArmor ( thePlayer, 100) setElementHealth (thePlayer,100) end end ) [/b] Edited May 31, 2013 by Guest Link to comment
Stranger Posted May 31, 2013 Author Share Posted May 31, 2013 (edited) تصلح الفكره في طريقتك بس المفروض انك تخليه يتأكد ان الي دخل الماركر هو اللاعب مو يتأكد ان الي دخل الماركر هو ماركر والفنكشن المفروض بعد الحدث marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker,function (thePlayer) if getElementType ( thePlayer ) == "marker" then setPedArmor ( thePlayer, 100) setElementHealth (thePlayer,100) end end ) طيب الكود ما ظبط Edited May 31, 2013 by Guest Link to comment
yazan Posted May 31, 2013 Share Posted May 31, 2013 (edited) yazan = createMarker ( 1.3,1.2, 1.1, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler ( "onClientMarkerHit", yazan, function ( hitElement ) getElementType ( hitElement ) == "player" ) then setPedArmor ( player, 100) setElementHealth (player,100) end end ) Edited May 31, 2013 by Guest Link to comment
S4MuEL Posted May 31, 2013 Share Posted May 31, 2013 marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker, function (player) if (getElementType(player) == ("player")) then setPedArmor (player, 100) setElementHealth (player,100) end end ) ججربهـ , type = server ! Link to comment
S4MuEL Posted May 31, 2013 Share Posted May 31, 2013 yazan = createMarker ( 1.3,1.2, 1.1, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler ( "onClientMarkerHit", yazan, function ( hitElement ) getElementType ( hitElement ) == "player" ) then setPedArmor ( player, 100) setElementHealth (player,100) end end ) وين آلششرط سسططر 3 ؟ ! Link to comment
Stranger Posted May 31, 2013 Author Share Posted May 31, 2013 marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker, function (player) if (getElementType(player) == ("player")) then setPedArmor (player, 100) setElementHealth (player,100) end end ) ججربهـ , type = server ! مشكور لبى قلبك ا Link to comment
iMr.Dawix~# Posted May 31, 2013 Share Posted May 31, 2013 تصلح الفكره في طريقتك بس المفروض انك تخليه يتأكد ان الي دخل الماركر هو اللاعب مو يتأكد ان الي دخل الماركر هو ماركر والفنكشن المفروض بعد الحدث marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker,function (thePlayer) if getElementType ( thePlayer ) == "marker" then setPedArmor ( thePlayer, 100) setElementHealth (thePlayer,100) end end ) طيب الكود ما ظبط آسف مستعجل كنت marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler( "onMarkerHit", marker,function (thePlayer) if getElementType ( thePlayer ) == "player" then setPedArmor ( thePlayer, 100) setElementHealth (thePlayer,100) end end ) Link to comment
Stranger Posted May 31, 2013 Author Share Posted May 31, 2013 الجدول احسن لو تبي تحط اكثر من ماركر .... Markers = { [1] = { 2306.02466, 2445.57080, 10.8203 }, } addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 25, 205, 100, 150 ) end end ) addEventHandler( "onMarkerHit", resourceRoot, function (player) if (getElementType(player) == ("player")) then setPedArmor (player, 100) setElementHealth (player,200) end end ) Link to comment
S4MuEL Posted May 31, 2013 Share Posted May 31, 2013 لآ خطأ , آنت تبي تسوي مآركرآت وإذآ دعس وحدةة منهآ يآخذ آلدم وآلدرع ؟ ! Link to comment
iMr.Dawix~# Posted May 31, 2013 Share Posted May 31, 2013 الجدول احسن لو تبي تحط اكثر من ماركر .... Markers = { [1] = { 2306.02466, 2445.57080, 10.8203 }, } addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 25, 205, 100, 150 ) end end ) addEventHandler( "onMarkerHit", resourceRoot, function (player) if (getElementType(player) == ("player")) then setPedArmor (player, 100) setElementHealth (player,200) end end ) جرب Markers = { [1] = { 2306.02466, 2445.57080, 10.8203 }, } addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 25, 205, 100, 150 ) end end ) addEventHandler( "onMarkerHit", TheMarker, function (player) if (getElementType(player) == ("player")) then setPedArmor (player, 100) setElementHealth (player,200) end end ) Link to comment
Stranger Posted May 31, 2013 Author Share Posted May 31, 2013 لآ خطأ ,آنت تبي تسوي مآركرآت وإذآ دعس وحدةة منهآ يآخذ آلدم وآلدرع ؟ ! يب كيف خطأ ؟ Link to comment
Stranger Posted May 31, 2013 Author Share Posted May 31, 2013 الجدول احسن لو تبي تحط اكثر من ماركر .... Markers = { [1] = { 2306.02466, 2445.57080, 10.8203 }, } addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 25, 205, 100, 150 ) end end ) addEventHandler( "onMarkerHit", resourceRoot, function (player) if (getElementType(player) == ("player")) then setPedArmor (player, 100) setElementHealth (player,200) end end ) جرب Markers = { [1] = { 2306.02466, 2445.57080, 10.8203 }, } addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, TheMarkers in ipairs ( Markers ) do TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 25, 205, 100, 150 ) end end ) addEventHandler( "onMarkerHit", TheMarker, function (player) if (getElementType(player) == ("player")) then setPedArmor (player, 100) setElementHealth (player,200) end end ) مشكور يا داوي , بس كودي شغال ا Link to comment
S4MuEL Posted May 31, 2013 Share Posted May 31, 2013 addEventHandler( "onMarkerHit", resourceRoot, ^ ههنآ آلخططأ , بس مآ آدري آحس آن عندكـ خطأ بآلسطر يلي فيه createMarker تسوي آلإحدآثيآت بآلجدول آففضل ولآ مآ آدري كيفف .. 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