Jocker-dan Posted January 6, 2013 Posted January 6, 2013 بسم الله الرحمن الرحيم ابي كود سوبر جراند SuperGrande ومشكورين
iPrestege Posted January 6, 2013 Posted January 6, 2013 createExplosiononClientPlayerWeaponFire + setTimer removeEventHandler
===|OSAMA|=== Posted January 6, 2013 Posted January 6, 2013 (edited) -- Client Side ! function xOSAMA(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) id = {22,23,24,25,28,29,30,31,32,33,34} for i = 1, 11 do if ( weapon == id[i] ) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end end end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), xOSAMA) setTimer(function () removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), xOSAMA) outputChatBox("* Super Grenade Ended !",255,0,0,true) end,100000,1, true) -- التايمر هنا 100 ثانية / تقدر تغيره من خلال رقم 100000 Edited January 6, 2013 by Guest
==>ҭᾄlᾄl Posted January 6, 2013 Posted January 6, 2013 -- Client Side ! function xOSAMA(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) if ( weapon == 24 or 23 or 22 or 31 or 30 or 32 or 29 or 28 or 33 or 34 or 25) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), xOSAMA) setTimer(function () removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), xOSAMA) outputChatBox("* Super Grenade Ended !",255,0,0,true) end,100000,1, true) -- التايمر هنا 100 ثانية / تقدر تغيره من خلال رقم 100000 دام الوظيفه كلنت ومافيه ترايقر اتوقع بس اللاعب يشوفها
===|OSAMA|=== Posted January 6, 2013 Posted January 6, 2013 دام الوظيفه كلنت ومافيه ترايقر اتوقع بس اللاعب يشوفها لا حبيبي الكل يشوفها + جرب الكود قبل ما ترد ، اصصلاً انشاء القنابل ما يجي غير كلنت https://wiki.multitheftauto.com/wiki/CreateProjectile - Client-only function
abu5lf Posted January 6, 2013 Posted January 6, 2013 -- Client Side ! function xOSAMA(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) if ( weapon == 24 or 23 or 22 or 31 or 30 or 32 or 29 or 28 or 33 or 34 or 25) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), xOSAMA) setTimer(function () removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), xOSAMA) outputChatBox("* Super Grenade Ended !",255,0,0,true) end,100000,1, true) -- التايمر هنا 100 ثانية / تقدر تغيره من خلال رقم 100000 Wrong!
TAPL Posted January 6, 2013 Posted January 6, 2013 if ( weapon == 24 or 23 or 22 or 31 or 30 or 32 or 29 or 28 or 33 or 34 or 25) then التصحيح if ( weapon == 24 or weapon == 23 or weapon == 22 or weapon == 31 or weapon == 30 or weapon == 32 or weapon == 29 or weapon == 28 or weapon == 33 or weapon == 34 or weapon == 25) then
===|OSAMA|=== Posted January 6, 2013 Posted January 6, 2013 (edited) Wrong! if ( weapon == 24 or 23 or 22 or 31 or 30 or 32 or 29 or 28 or 33 or 34 or 25) then التصحيح if ( weapon == 24 or weapon == 23 or weapon == 22 or weapon == 31 or weapon == 30 or weapon == 32 or weapon == 29 or weapon == 28 or weapon == 33 or weapon == 34 or weapon == 25) then صحيح كلآمكـ تابل , سوري مانتبهت لها + عدلته خليته تيبل افضل من كذآ ! Edited January 6, 2013 by Guest
Tete omar Posted January 6, 2013 Posted January 6, 2013 وليش ما تسوي جدول به الارقام اسهل لك من انك تسوي سطر طويل ..
===|OSAMA|=== Posted January 6, 2013 Posted January 6, 2013 وليش ما تسوي جدول به الارقام اسهل لك من انك تسوي سطر طويل .. صحيح كلآمكـ تابل , سوري مانتبهت لها + عدلته خليته تيبل افضل من كذآ ! مسسويه من قبل ما تقول -_-"
Tete omar Posted January 6, 2013 Posted January 6, 2013 function xOSAMA(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) id = {22,23,24,25,28,29,30,31,32,33,34} for i = 1, #id do if ( weapon == id[i] ) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end end end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), xOSAMA) setTimer(function () removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), xOSAMA) outputChatBox("* Super Grenade Ended !",255,0,0,true) end,100000,1, true) -- التايمر هنا 100 ثانية / تقدر تغيره من خلال رقم 100000 استخدم هذي '#' عشان تجيب عدد الاشياء الي بداخل الجدول ثانياً ليش تحط true في الفنكشن حقت التايمر؟
===|OSAMA|=== Posted January 6, 2013 Posted January 6, 2013 function xOSAMA(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) id = {22,23,24,25,28,29,30,31,32,33,34} for i = 1, #id do if ( weapon == id[i] ) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end end end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), xOSAMA) setTimer(function () removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), xOSAMA) outputChatBox("* Super Grenade Ended !",255,0,0,true) end,100000,1, true) -- التايمر هنا 100 ثانية / تقدر تغيره من خلال رقم 100000 استخدم هذي '#' عشان تجيب عدد الاشياء الي بداخل الجدول حطيتها ولا ما حطيتها كله وآحد يشتغل !
Tete omar Posted January 6, 2013 Posted January 6, 2013 function xOSAMA(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) id = {22,23,24,25,28,29,30,31,32,33,34} for i = 1, #id do if ( weapon == id[i] ) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end end end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), xOSAMA) setTimer(function () removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), xOSAMA) outputChatBox("* Super Grenade Ended !",255,0,0,true) end,100000,1, true) -- التايمر هنا 100 ثانية / تقدر تغيره من خلال رقم 100000 استخدم هذي '#' عشان تجيب عدد الاشياء الي بداخل الجدول ثانياً ليش تحط true في الفنكشن حقت التايمر؟
abu5lf Posted January 6, 2013 Posted January 6, 2013 function xOSAMA(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) id = {22,23,24,25,28,29,30,31,32,33,34} for i = 1, #id do if ( weapon == id[i] ) then createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) end end end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), xOSAMA) setTimer(function () removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), xOSAMA) outputChatBox("* Super Grenade Ended !",255,0,0,true) end,100000,1, true) -- التايمر هنا 100 ثانية / تقدر تغيره من خلال رقم 100000 بوه طريقة أكثر اختصار من هآذي aWeapon = { [ 38 ] = true; } if aWeapon [ weapon ] then -- وتكملة الكود هنا end
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