Jump to content

سؤال


Jamrawy

Recommended Posts

Posted

كيف نغير الذخيرة مالت السلاح ؟

يعني مثلا انا عندي طفاية امبيها تطلق رصاص

او مسدس يطلق ماي

Posted

بـالنسبـه للطفـايه اللي تطلق قنابل أو نار سهله سهله ,

وآمن مسدس يطلق مآي هاذآ متتوفر بالبقآلآت أو الأسوآإق !!

المهم كـود مثآل سوبـر قنـآبل , وكيفيه التعديل إلى إي

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

ويمكنك أن تجععلهةة سوبر طفايه ,

آرجو أنك فهمت الشرح ! :?:

Posted

فهمت بس ما يصير الطفاية العادية اغيرها ؟

امبيها تطلق رصاص عادي رقم السلاح 22 (clot 45)

Posted
فهمت بس ما يصير الطفاية العادية اغيرها ؟

امبيها تطلق رصاص عادي رقم السلاح 22 (clot 45)

غير هآذي !

createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 

وخليهآ

createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) 

جررب الكـود مع الكـود كآمل ورد لي خبرر !! :!:

Posted
فهمت بس ما يصير الطفاية العادية اغيرها ؟

امبيها تطلق رصاص عادي رقم السلاح 22 (clot 45)

غير هآذي !

createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 

وخليهآ

createProjectile(getLocalPlayer(),22,hitX, hitY, hitZ) 

جررب الكـود مع الكـود كآمل ورد لي خبرر !! :!:

اوكي

Posted

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 

Posted
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) 

مو لازم تكرر مليون مرة

Posted
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

فهمتت !!

لآتحسبني نآسيه إلا عآدي بشرح للفآهمين !!

:arrowup:

Posted
مكررة لأنه زارفه ^.^

وبععدين آنآ قآيل لك الكـود مـن عندي !؟

أآنآ فققط معربه وأشرح للرجآل

" ياأنك تدخل تفيد الرجآل يالادخل ياخي "

يآخي والله بعض البشر تفهم وبعض البشر مآفيه آمـل تفهم القصد !

وش تحس فيه 8)

Posted
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) 

مو لازم تكرر مليون مرة

بعد ما استوى

Posted

الخطأ من رقم 22

اختار واحد من ذولا

  • ID Name/Description
    16 Grenade
    17 Tear Gas Grenade
    18 Molotov
    19 Rocket (simple)
    20 Rocket (heat seeking)
    21 Air Bomb
    39 Satchel Charge
    58 Flare from hydra

Posted
الخطأ من رقم 22

اختار واحد من ذولا

  • ID Name/Description
    16 Grenade
    17 Tear Gas Grenade
    18 Molotov
    19 Rocket (simple)
    20 Rocket (heat seeking)
    21 Air Bomb
    39 Satchel Charge
    58 Flare from hydra

ما يصير رصاص؟

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...