tourra Posted April 1, 2013 Share Posted April 1, 2013 سلام عليكم يا شباب بغيت كود الماركر مكان bindkey يعني يدخل الماركر يدخل المود و شكرا Link to comment
Tete omar Posted April 1, 2013 Share Posted April 1, 2013 onClientMarkerHit bindKey onClientMarkerLeave unbindKey Link to comment
tourra Posted April 1, 2013 Author Share Posted April 1, 2013 كيف يعني انا اول مره استخدم دا الكود خخخخخخخخخخخخخخ ابيه كامل لا هنت Link to comment
ALw7sH Posted April 1, 2013 Share Posted April 1, 2013 سلام عليكميا شباب بغيت كود الماركر مكان bindkey يعني يدخل الماركر يدخل المود و شكرا اخوي تراك لحستني ههه تبي ب Bindkey او ماركر؟ يعني تبي اللوحه تفتح بزر او اذا خشيت الماركر؟ Link to comment
][sojn][ Posted April 1, 2013 Share Posted April 1, 2013 marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (getElementType (player) == "player") and (player == localPlayer) then showCursor(true) guiSetVisible(النافذه,true) end end ) Link to comment
Tete omar Posted April 1, 2013 Share Posted April 1, 2013 مثال : local marker = createMarker(...) -- الماركر function onHit(hitElement) -- وظيفة حدث الداخل الى الماركر if hitElement == localPlayer then -- اذا الداخل لاعب bindKey("المفتاح", "down", showWind) -- يحط متاح فتح الوندو او قفلها end end addEventHandler("onClientMarkerHit", marker, onHit) -- الحدث function onLeave(leaveElement) -- وظيفة حدث الخارج من الماركر if leaveElement == localPlayer then -- اذا الخارج لاعب unbindKey("المفتاح", "down", showWind) -- يشيل مفتاح فتح الوندو او قفلها end end addEventHandler("onClientMarkerLeave", marker, onLeave) -- الحدث function showWind() -- وظيفة فتح النافذة او قفلها guiSetVisible(النافذة, not guiGetVisible(النافذة)) showCursor( not isCursorShowing()) end Link to comment
][sojn][ Posted April 1, 2013 Share Posted April 1, 2013 marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (getElementType (player) == "player") and (player == localPlayer) then showCursor(true) guiSetVisible(النافذه,true) end end ) جرب الكود ذا حط اسم الناافذه واحداثيات الماركر وراح يفتح لك اللوحه اول ما تدخل الماركر Link to comment
iPrestege Posted April 1, 2013 Share Posted April 1, 2013 marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 170 ) addEventHandler("onClientMarkerHit",marker, function (player) if (getElementType (player) == "player") and (player == localPlayer) then showCursor(true) guiSetVisible(النافذه,true) end end ) جرب الكود ذا حط اسم الناافذه واحداثيات الماركر وراح يفتح لك اللوحه اول ما تدخل الماركر سلام عليكميا شباب بغيت كود الماركر مكان bindkey يعني يدخل الماركر يدخل المود و شكرا Link to comment
tourra Posted April 1, 2013 Author Share Posted April 1, 2013 شكرا لك اخوي سوجن اشتغلي الكود بس ابي واحد ثاني ابي كود الي يختار من grid list يختار سياره ؟؟ و شكرا Link to comment
iPrestege Posted April 1, 2013 Share Posted April 1, 2013 مرة ثانية وضح زين موهوب تقول بايند كي تعبت الرجال معك ع الفاضي؟ وش تقصد بالقريد اطرح كودك Link to comment
tourra Posted April 1, 2013 Author Share Posted April 1, 2013 افهمني يعني يختار اسم السياراه في القريد لست طيب يلزم ملف xml موجود فيه سيارات ؟؟ و شكرا ان شاء الله تفهمني Link to comment
][sojn][ Posted April 1, 2013 Share Posted April 1, 2013 هو يبي يسوي ماركر تدخله يفتح لوحة فيها سيارات زي النظام الي سويته انت نوعا ما Link to comment
yazan Posted April 1, 2013 Share Posted April 1, 2013 (edited) yazan = createMarker ( x, y, z, "cylinder", 2, 255, 0, 0, 170 ) ss = guiCreateGridList (149,62,486,448,false) guiSetVisible ( ss, false ) addEventHandler("onClientMarkerHit",yazan, function ( hitElement ) if ( guiGetVisible ( ss ) == false ) and ( getElementType ( hitElement ) == "player" ) then guiSetVisible ( ss , true ) showCursor ( true ) end end ) Edited April 1, 2013 by Guest Link to comment
فاّرس Posted April 1, 2013 Share Posted April 1, 2013 guiCreateGridList guiGridListAddColumn guiGridListAddRow guiGridListSetItemText getVehicleNameFromModel +سوي جدول للسيارات اسهل لك 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