™!>VàLéNTiNô<!™ Posted April 17, 2014 Share Posted April 17, 2014 السلام عليكم انا عندى مود الشوب عند الشراء يشترى سلاح ابيه يتحقق لو كان معه سلاح ولو كان معه يكنسل وظيفة الشراء وشكرا Link to comment
™!>VàLéNTiNô<!™ Posted April 17, 2014 Author Share Posted April 17, 2014 if getPlayerWeapon (thePlayer, 30 ) then cancelEvent() هنا ليش مايكنسل الحدث Link to comment
™!>VàLéNTiNô<!™ Posted April 17, 2014 Author Share Posted April 17, 2014 getPlayerWeapon مافهمت طلبى Link to comment
Mr-M3AND Posted April 17, 2014 Share Posted April 17, 2014 if getPlayerWeapon (thePlayer, 30 ) then cancelEvent() هنا ليش مايكنسل الحدث if getPlayerWeapon (thePlayer ) == 30 then Link to comment
™!>VàLéNTiNô<!™ Posted April 17, 2014 Author Share Posted April 17, 2014 if getPlayerWeapon (thePlayer ) == 30 then انت كل دقيقة تكتبلى نص الطلب طيب بعدها كيف اسوى كنسل لشراء السلاح ؟ Link to comment
Mr-M3AND Posted April 17, 2014 Share Posted April 17, 2014 if getPlayerWeapon (thePlayer ) == 30 then انت كل دقيقة تكتبلى نص الطلب طيب بعدها كيف اسوى كنسل لشراء السلاح ؟ طيب اطرح الكود كامل اذا تبي اشوف مشكلته Link to comment
™!>VàLéNTiNô<!™ Posted April 17, 2014 Author Share Posted April 17, 2014 getPlayerWeapon طيب وش الصح Link to comment
Mr-M3AND Posted April 17, 2014 Share Posted April 17, 2014 getPlayerWeapon طيب وش الصح اعتقد يقصد getPedWeapon Link to comment
فاّرس Posted April 18, 2014 Share Posted April 18, 2014 حبيبي الوظائف و بعض الاحداث ما تتكنسل . تقدر تسوي تحقق يوم يشتري السلاح : getSlotFromWeapon giveWeapon Link to comment
KaduRo Posted April 18, 2014 Share Posted April 18, 2014 هل هو الشوب داخل ماركر ؟ وعندي سؤال يا شباب marker = createMarker(-2411.0390625,-594.90307617188,132.6484375-1,"cylinder",2,255,0,0,255) function good () if isElementWithinMarker(source , marker) then return destroyElement(marker) else end return false end addEventHandler("onClientMarkerHit" , marker , good) حبيت إذا مر بالماركر , تختفي الماركر وإذا طلع من الماركر , ترجع , فهل اقدر اني ارجع الماركر بعد امر destroyElement ? Link to comment
The Killer Posted April 18, 2014 Share Posted April 18, 2014 طبعا تقدر وهذي هي الطريقه ! marker = createMarker (-2411,-594.90,132.64-1,"cylinder",2,255,0,0,255) function good (player) if getElementType (player) == "player" then destroyElement (marker) setTimer (function () create () addEventHandler ("onMarkerHit", marker, good) end, 2500, 1) end end addEventHandler ("onMarkerHit", marker, good) function create () marker = createMarker (-2411,-594.90,132.64-1,"cylinder",2,255,0,0,255) end Link to comment
KaduRo Posted April 18, 2014 Share Posted April 18, 2014 ^ جربتها , بس لما تطلع مرة ثانية ما تختفي , تطلع على ماركر جديد ولازم لها اكواد جديدة ! Link to comment
The Killer Posted April 18, 2014 Share Posted April 18, 2014 سويته لك بطريقه مختلفه جرب marker = createMarker (x,y,z,"cylinder",2,255,0,0,255) function good (player) if getElementType (player) == "player" then if getElementData (player, "hitTheMarker") == true then return end setElementData (player, "hitTheMarker", true) setElementAlpha (marker, 0) setTimer (function () setElementAlpha (marker, 200) setElementData (player, "hitTheMarker", false) end, 2500, 1) end end addEventHandler ("onMarkerHit", marker, good) Link to comment
™!>VàLéNTiNô<!™ Posted April 18, 2014 Author Share Posted April 18, 2014 شوب بلوحة مو ماركر ابيه يتحقق انه معه سلاح لو معه مايمديه يشترى Link to comment
Mr-M3AND Posted April 18, 2014 Share Posted April 18, 2014 تقدر تسوي تحقق يوم يشتري السلاح : getSlotFromWeapon giveWeapon Link to comment
™!>VàLéNTiNô<!™ Posted April 19, 2014 Author Share Posted April 19, 2014 تقدر تسوي تحقق يوم يشتري السلاح : getSlotFromWeapon giveWeapon cancelEvent ماتشتغل ليه هنا ؟ Link to comment
فاّرس Posted April 19, 2014 Share Posted April 19, 2014 واضح من اسم الوظيفه انها للحدث فقط . ومو كل حدث , فقط الي مكتوب انه تقدر تكنسله . 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