Jamrawy Posted September 30, 2012 Posted September 30, 2012 كيف نغير الذخيرة مالت السلاح ؟ يعني مثلا انا عندي طفاية امبيها تطلق رصاص او مسدس يطلق ماي
AboFaisal Posted September 30, 2012 Posted September 30, 2012 بـالنسبـه للطفـايه اللي تطلق قنابل أو نار سهله سهله , وآمن مسدس يطلق مآي هاذآ متتوفر بالبقآلآت أو الأسوآإق !! المهم كـود مثآل سوبـر قنـآبل , وكيفيه التعديل إلى إي iD Weapons function onGuiClick (button, state, absoluteX, absoluteY) if ( source == weapButton_25 ) then -- الكلمه التي تنقلها للزر local PlayerMoney = getPlayerMoney() if ( PlayerMoney > 7000 ) then - المبلغ takePlayerMoney(7000) -- المبلغ outputChatBox("Super Grenade Well End After : 3 Minutes",source,255,255,0)--ضور النص في الشات triggerServerEvent("sp", getLocalPlayer()) function narBullets(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) if ( weapon == 24) then -- نوع السلاح اللذي تود فيه المفجرات createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 23) then -- نوع السلاح اللذي تود فيه المفجرات createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 22) then -- نوع السلاح اللذي تود فيه المفجرات createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 31) then -- نوع السلاح اللذي تود فيه المفجرات createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 30) then -- نوع السلاح اللذي تود فيه المفجرات createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 32) then -- نوع السلاح اللذي تود فيه المفجرات createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 29) then -- نوع السلاح اللذي تود فيه المفجرات createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 28) then -- نوع السلاح اللذي تود فيه المفجرات createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 33) then -- نوع السلاح اللذي تود فيه المفجرات createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 34) then -- نوع السلاح اللذي تود فيه المفجرات createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 25) then -- نوع السلاح اللذي تود فيه المفجرات createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), narBullets) setTimer(function () removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), narBullets) outputChatBox("Super Grenade Has been End",255,255,0) end,100000,1, true) triggerEvent("alarm", getRootElement())---صوت الأنذار else outputChatBox("Your money should be more than a $7000 to buy Super Grenade", source, 255, 25, 0, true)--ضهور النص بالشات end - أنهاء المهمه end - أنهاء المهمه end - أنهاء المهمه addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) وتوضيح للكود اللذي يغير الأسحله مثآل الطفايه والرقم حقهآ تضيفه , مثآل أنا أبي سوبر أم 4 يطللق قنآإبببل !! if ( weapon == 24) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 24) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 24) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 24) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 24) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 24) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 24) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 24) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 24) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 24) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end if ( weapon == 24) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) ولآآحض تغيـر الشئ هاذا if ( weapon == 24) then وبعدهآ تغيـر الأسعآر على كيفك وتغغير النص اللي يضهر , outputChatBox("Super M4 Well End After : 3 Minutes",source,255,255,0)--ضهور النص بالشات ويككون سوبر أم 4 ويمكنك أن تجععلهةة سوبر طفايه , آرجو أنك فهمت الشرح !
Jamrawy Posted September 30, 2012 Author Posted September 30, 2012 فهمت بس ما يصير الطفاية العادية اغيرها ؟ امبيها تطلق رصاص عادي رقم السلاح 22 (clot 45)
AboFaisal Posted September 30, 2012 Posted September 30, 2012 فهمت بس ما يصير الطفاية العادية اغيرها ؟امبيها تطلق رصاص عادي رقم السلاح 22 (clot 45) غير هآذي ! createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) وخليهآ createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) جررب الكـود مع الكـود كآمل ورد لي خبرر !!
Jamrawy Posted September 30, 2012 Author Posted September 30, 2012 فهمت بس ما يصير الطفاية العادية اغيرها ؟امبيها تطلق رصاص عادي رقم السلاح 22 (clot 45) غير هآذي ! createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) وخليهآ createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) جررب الكـود مع الكـود كآمل ورد لي خبرر !! اوكي
Jamrawy Posted September 30, 2012 Author Posted September 30, 2012 في ملف mtea اخلي نوع الملف سيرفر لو كلينت لو سكربت (ما اعرف شي)
Jamrawy Posted September 30, 2012 Author Posted September 30, 2012 42 الكود الا سويته if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end
AboFaisal Posted September 30, 2012 Posted September 30, 2012 الكـود شغآل عندي %100 ؟ مآفيه مشآإكل تأكد مـن ملف Meta.xml آخر رد لي في هآلموضوع ,
./BlackBird# Posted September 30, 2012 Posted September 30, 2012 42الكود الا سويته if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end ليه كررت الكود؟؟ if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) مو لازم تكرر مليون مرة
AboFaisal Posted September 30, 2012 Posted September 30, 2012 42الكود الا سويته if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end ليه كررت الكود؟؟ if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) مو لازم تكرر مليون مرة زود لأنه كآن الأكود الأسآسي مزود ويوم أنا أشرح له مآأبي أخليها واحد بععدين يقولي كيف جت واحد وهي 5 مدري 7 فهمتت !! لآتحسبني نآسيه إلا عآدي بشرح للفآهمين !!
AboFaisal Posted September 30, 2012 Posted September 30, 2012 مكررة لأنه زارفه ^.^ وبععدين آنآ قآيل لك الكـود مـن عندي !؟ أآنآ فققط معربه وأشرح للرجآل " ياأنك تدخل تفيد الرجآل يالادخل ياخي " يآخي والله بعض البشر تفهم وبعض البشر مآفيه آمـل تفهم القصد ! وش تحس فيه
Jamrawy Posted September 30, 2012 Author Posted September 30, 2012 42الكود الا سويته if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) end ليه كررت الكود؟؟ if ( weapon == 42) then createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) مو لازم تكرر مليون مرة بعد ما استوى
./BlackBird# Posted September 30, 2012 Posted September 30, 2012 الخطأ من رقم 22 اختار واحد من ذولا ID Name/Description16 Grenade17 Tear Gas Grenade18 Molotov19 Rocket (simple)20 Rocket (heat seeking)21 Air Bomb39 Satchel Charge58 Flare from hydra
Jamrawy Posted September 30, 2012 Author Posted September 30, 2012 الخطأ من رقم 22اختار واحد من ذولا ID Name/Description16 Grenade17 Tear Gas Grenade18 Molotov19 Rocket (simple)20 Rocket (heat seeking)21 Air Bomb39 Satchel Charge58 Flare from hydra ما يصير رصاص؟
./BlackBird# Posted September 30, 2012 Posted September 30, 2012 ما تقدر تخليه رصاص بس تقدر تحط الي بالقائمة
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