iPrestege Posted February 10, 2013 Share Posted February 10, 2013 من بداية كود سعد والكود شغال للعلم جربتة Link to comment
PaiN^ Posted February 10, 2013 Share Posted February 10, 2013 local id = 287 marker = createMarker(225.08284, 1886.89990, 17.64063, "cylinder", 2, 255, 0, 0, 255) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" then setElementModel(player, id) outputChatBox("تم تغيير الشخصيه بنجاح", player, 0, 255, 0, true) end end) addEventHandler("onElementModelChange", root, function(old, new) if getElementType(source) == "player" then if isElementWithinMarker(source, marker) then if new ~= id then killPed(source) outputChatBox("لا تستطيع تغيير شخصيتك وانت بالماركر", source, 255, 0, 0) end end end end) local id = 287 marker = createMarker(849.59246826172, -2042.9193115234, 12.8671785, "cylinder", 1.5, 0, 0, 210, 255) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" then if getElementModel(player) ~= id then setElementModel(player, id) outputChatBox("تم تغيير الشخصيه بنجاح", player, 0, 255, 0, true) else outputChatBox("", player, 0, 0, 0, false) end end end) addEventHandler("onElementModelChange", root, function(old, new) if getElementType(source) == "player" then if isElementWithinMarker(source, marker) then if new ~= id then killPed(source) outputChatBox("لا تستطيع تغيير شخصيتك وانت بالماركر", source, 255, 0, 0) end end end end) شوية تعديل Link to comment
Sfa7 Posted February 10, 2013 Author Share Posted February 10, 2013 من بداية كود سعد والكود شغال للعلم جربتة طيب انت تقول شغال؟ يالله اسدح الكود الي انت جربته واشتغل معك لنه مااشتغل معي ؟ اسدحه بجربه Link to comment
Bhrany-danger Posted February 10, 2013 Share Posted February 10, 2013 onElementModelChange Available only in MTA SA 1.2 and onwards !! يعني ما بيشتغل الا على نسخة 1.2 Link to comment
PaiN^ Posted February 10, 2013 Share Posted February 10, 2013 طيب إسدح ملف الميتا + local id = 287 marker = createMarker(849.59246826172, -2042.9193115234, 12.8671785, "cylinder", 1.5, 0, 0, 210, 255) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" then if getElementModel(player) ~= id then setElementModel(player, id) outputChatBox("تم تغيير الشخصيه بنجاح", player, 0, 255, 0, true) else outputChatBox("", player, 0, 0, 0, true) end end end) addEventHandler("onElementModelChange", root, function(old, new) if getElementType(source) == "player" then if isElementWithinMarker(source, marker) then if new ~= id then killPed(source) outputChatBox("لا تستطيع تغيير شخصيتك وانت بالماركر", source, 255, 0, 0) end end end end) هذا هو الكود الشغال Link to comment
Sfa7 Posted February 10, 2013 Author Share Posted February 10, 2013 local id = 287 marker = createMarker(225.08284, 1886.89990, 17.64063, "cylinder", 2, 255, 0, 0, 255) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" then setElementModel(player, id) outputChatBox("تم تغيير الشخصيه بنجاح", player, 0, 255, 0, true) end end) addEventHandler("onElementModelChange", root, function(old, new) if getElementType(source) == "player" then if isElementWithinMarker(source, marker) then if new ~= id then killPed(source) outputChatBox("لا تستطيع تغيير شخصيتك وانت بالماركر", source, 255, 0, 0) end end end end) local id = 287 marker = createMarker(849.59246826172, -2042.9193115234, 12.8671785, "cylinder", 1.5, 0, 0, 210, 255) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" then if getElementModel(player) ~= id then setElementModel(player, id) outputChatBox("تم تغيير الشخصيه بنجاح", player, 0, 255, 0, true) else outputChatBox("", player, 0, 0, 0, false) end end end) addEventHandler("onElementModelChange", root, function(old, new) if getElementType(source) == "player" then if isElementWithinMarker(source, marker) then if new ~= id then killPed(source) outputChatBox("لا تستطيع تغيير شخصيتك وانت بالماركر", source, 255, 0, 0) end end end end) شوية تعديل كودك مايشتغل بس يطلع ماركر بس مايسوي شي كود تابل احسنمن الي انت سويته ذذ Link to comment
iPrestege Posted February 10, 2013 Share Posted February 10, 2013 onElementModelChange Available only in MTA SA 1.2 and onwards!! يعني ما بيشتغل الا على نسخة 1.2 onwards timers = {} local id = 0 marker = createMarker ( 849.59246826172, -2042.9193115234, 12.8671785, "cylinder", 1, 255, 0, 0, 255 ) addEventHandler ( "onMarkerHit", marker, function(player) if player and getElementType ( player ) == "player" then if isElementWithinMarker ( player, marker ) then setElementModel(player, id) timers[player] =setTimer (function (player) if isElement(player) then if getElementModel(player) ~= id then killPed(player) outputChatBox ( "ممنوع تغيير الشخصيه", player, 255, 0, 0, true ) end end end, 1000, 0, player) outputChatBox ( "تم تغيير الشخصيه بنجاح", player, 0, 255, 0, true ) end end end ) addEventHandler ("onMarkerLeave",marker, function(player) if (player and getElementType(player) == "player" )then if isTimer(timers[player]) then killTimer(timers[player]) timers[player] = nil end end end ) Link to comment
MR.S3D Posted February 10, 2013 Share Posted February 10, 2013 على فكرة الكود انا مجربة وشغال والكود سيرفر ورني الكود اللي جربته يمكن انت معدل شي وخربته Link to comment
PaiN^ Posted February 10, 2013 Share Posted February 10, 2013 onElementModelChange Available only in MTA SA 1.2 and onwards!! يعني ما بيشتغل الا على نسخة 1.2 -_-" أجل كيف شغال عندي 1.3.1 نسختي Link to comment
Sfa7 Posted February 10, 2013 Author Share Posted February 10, 2013 الميتا type="map" name="map aLshar3 aL6wel by m6n05" version="1.0.0"> "sss.map" dimension="0"> timers = {} local id = 0 marker = createMarker ( 849.59246826172, -2042.9193115234, 12.8671785, "cylinder", 1, 255, 0, 0, 255 ) addEventHandler ( "onMarkerHit", marker, function(player) if player and getElementType ( player ) == "player" then if isElementWithinMarker ( player, marker ) then setElementModel(player, id) timers[player] =setTimer (function (player) if isElement(player) then if getElementModel(player) ~= id then killPed(player) outputChatBox ( "ممنوع تغيير الشخصيه", player, 255, 0, 0, true ) end end end, 1000, 0, player) outputChatBox ( "تم تغيير الشخصيه بنجاح", player, 0, 255, 0, true ) end end end ) addEventHandler ("onMarkerLeave",marker, function(player) if (player and getElementType(player) == "player" )then if isTimer(timers[player]) then killTimer(timers[player]) timers[player] = nil end end end ) وموراضي يشتغل Link to comment
TAPL Posted February 10, 2013 Share Posted February 10, 2013 كودي شغال و كود سعد شغال ذا تعديل أضافي للكود local id = 287 marker = createMarker(225.08284, 1886.89990, 17, "cylinder", 2, 255, 0, 0, 255) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" then setElementModel(player, id) outputChatBox("تم تغيير الشخصيه بنجاح", player, 0, 255, 0, true) end end) addEventHandler("onElementModelChange", root, function(old, new) if getElementType(source) == "player" then if isElementWithinMarker(source, marker) then if old == id and new ~= id then killPed(source) outputChatBox("لا تستطيع تغيير شخصيتك وانت بالماركر", source, 255, 0, 0) end end end end) Link to comment
MR.S3D Posted February 10, 2013 Share Posted February 10, 2013 (edited) وهذا المود لحاله رفعته لك http://www.mediafire.com/?sm95a2yi2nd9abl Edited February 10, 2013 by Guest Link to comment
PaiN^ Posted February 10, 2013 Share Posted February 10, 2013 انا بسوي ماركر كبير يمكن حجمه يصير 50 إستخدم هذا الكود local id = 287 marker = createMarker(849.59246826172, -2042.9193115234, 12.8671785, "checkpoint", 1.5, 0, 0, 210, 255) addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" then if getElementModel(player) ~= id then setElementModel(player, id) outputChatBox("تم تغيير الشخصيه بنجاح", player, 0, 255, 0, true) else outputChatBox("", player, 0, 0, 0, true) end end end) addEventHandler("onElementModelChange", root, function(old, new) if getElementType(source) == "player" then if isElementWithinMarker(source, marker) then if new ~= id then killPed(source) outputChatBox("لا تستطيع تغيير شخصيتك وانت بالماركر", source, 255, 0, 0) end end end end) Link to comment
iPrestege Posted February 10, 2013 Share Posted February 10, 2013 onElementModelChange Available only in MTA SA 1.2 and onwards!! يعني ما بيشتغل الا على نسخة 1.2 -_-" أجل كيف شغال عندي 1.3.1 نسختي onwards -- اعلى Link to comment
Sfa7 Posted February 10, 2013 Author Share Posted February 10, 2013 type="map" name="map aLshar3 aL6wel by m6n05" version="1.0.0"> "sss.map" dimension="0"> ي اخوان سويت بس مادري ليه مايضبط معي ومعكم يضبط ؟ يمكن فيه شي بل ميتاا عدلووه لاهنتو يطلع ماركر ويغير الشخصيه بس لما اغير الشخصيه وانا بل ماركر مايقتلني ولا يطلعلي كلام ؟؟ Link to comment
MR.S3D Posted February 10, 2013 Share Posted February 10, 2013 وهذا المود لحاله رفعته لكhttp://www.mediafire.com/?sm95a2yi2nd9abl شيل مودك وخذ ذا لحاله وعدل الأحداثيات والحجم Link to comment
Sfa7 Posted February 10, 2013 Author Share Posted February 10, 2013 وهذا المود لحاله رفعته لكhttp://www.mediafire.com/?sm95a2yi2nd9abl اخوي سعد اقدرلك مجهودك بس حتي المود حطيت فيه احداثيات وكل شي وهم مايطلع الماركر ؟؟ اضن المشكله من عندي بس مادري وش المشكله لنا حتي المود موراضي يشتغل لما اضغط ستارت يشتغل بس الماركر مايطلع مادري وين المشكله Link to comment
iPrestege Posted February 10, 2013 Share Posted February 10, 2013 نسوي سحر عشان يشتغل . Link to comment
Sfa7 Posted February 10, 2013 Author Share Posted February 10, 2013 نسوي سحر عشان يشتغل . اقول اخبار السماجه بس ؟ Link to comment
iPrestege Posted February 10, 2013 Share Posted February 10, 2013 نسوي سحر عشان يشتغل . اقول اخبار السماجه بس ؟ بخير اطرح الماركر اكيد ناقصك شيء فية -_-" Link to comment
Sfa7 Posted February 10, 2013 Author Share Posted February 10, 2013 timers = {} local id = 0 marker = createMarker ( 849.59246826172, -2042.9193115234, 12.8671785, "checkpoint", 1.5, 0, 0, 210, 255 ) addEventHandler ( "onMarkerHit", marker, function(player) if player and getElementType ( player ) == "player" then if isElementWithinMarker ( player, marker ) then setElementModel(player, id) timers[player] =setTimer (function (player) if isElement(player) then if getElementModel(player) ~= id then killPed(player) outputChatBox ( "ممنوع تغيير الشخصيه", player, 255, 0, 0, true ) end end end, 1000, 0, player) outputChatBox ( "تم تغيير الشخصيه بنجاح", player, 0, 255, 0, true ) end end end ) addEventHandler ("onMarkerLeave",marker, function(player) if (player and getElementType(player) == "player" )then if isTimer(timers[player]) then killTimer(timers[player]) timers[player] = nil 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