αвυ-wαleed Posted March 30, 2014 Share Posted March 30, 2014 ابغى اذا دخل الماركر ابغى يقلب على سلاح m4 31 لاحظوا ما ابغاه يعطيه ابغاه يقلب والاعب مايقدر يغير السلاح m4 لين يطلع من الماركر t = createMarker(2891.033203125,-549.40942382813,12.615109443665, "cylinder", 2, 255, 252, 0) addEventHandler("onMarkerHit", t, function(player) end end) Link to comment
' ρяofзśŝoя 亗 Posted March 30, 2014 Share Posted March 30, 2014 local myMarker = createMarker( ... ) addEventHandler( "onMarkerHit", myMarker, function (thePlayer) if getElementType ( thePlayer ) == "player" then giveWeapon ( thePlayer, 31, 200 ) end end ) addEventHandler( "onMarkerLeave", myMarker, function (thePlayer) if getElementType ( thePlayer ) == "player" then takeWeapon( thePlayer, 31 ) end end ) جرببءَ Link to comment
αвυ-wαleed Posted March 31, 2014 Author Share Posted March 31, 2014 انت ماسويت المطلوب انت الحين خليته اذا دخل الماركر يجيلة السلاح ويقدر يستخدمة واذا خرج يروح السلاح انا ما ابغى كذا انا ابغى يقلب السلاح مثلن هو عند m4 و mp5 من قبل يدخل الماركر ودخل الماركر بسلاح mp5 مايعطية سلاح بس يقلب على الام فور اللي عنده ومايقدر يرجع mp5 لين يطلع من الماركر يعني جوا الماركر يقلب على سلاح ام فووور ومايقدر يقلب سلاح غيرة Link to comment
™!>VàLéNTiNô<!™ Posted April 3, 2014 Share Posted April 3, 2014 (edited) local Marker = createMarker( ... ) addEventHandler("onMarkerHit", Marker, function (thePlayer) if getElementType ( thePlayer ) = "player" takeWeapon( thePlayer, اى دى السلاح ) giveWeapon ( thePlayer, 31, 200 ) end end ) addEventHandler("onMarkerLeave", Marker, function (thePlayer) if getElementType ( thePlayer ) = "player" then takeWeapon ( thePlayer, 31, 200 ) giveWeapon ( thePlayer, اى دى السلاح ) end end ) اسف لو ماعرفت اوفر الفنكشنات اللازمة بس ها ممكن يساعدك ها وهو داخل يمسح سلاح معين حط رقم السلاح فى مكان الكلام اللى بالعربى اول لما يدخل المركر يسحب سلاحو ويعطيلو سلاح رقم 31 واول لما يخرج يسحب سلاح رقم 31 ويعطيلو سلاح اللى تبى حط نفس الرقم فى مكان الكلام اللى بالعربى Edited April 4, 2014 by Guest Link to comment
#Rmad~> Posted April 3, 2014 Share Posted April 3, 2014 Optional ArgumentssetAsCurrent: A boolean value determining whether or not the weapon will be set as the players current. Link to comment
abu5lf Posted April 4, 2014 Share Posted April 4, 2014 setPedWeaponSlot( ) toggleControl( ) 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