Jump to content

تصحيح كود


Recommended Posts

Posted

شبــآب لقيت كود جربت اصلحة ما زبط

عمله : يغير وظيفة السلاح ، مثلا ام4 يطلق نار او قنابل وغيرها

ما زبط

     if ( weapon ==  31) then 
    createProjectile(getLocalPlayer(),58,hitX, hitY, hitZ) 

اذا ممكن تعطوني واحد شغال وشكرا

Just Smile !

Posted

onClientPlayerWeaponFire

والاصلحة تنكتب الاسلحة .

╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗

║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║

║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║

║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║

╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝

«سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك»

M7mdAl7arthy : لتواصل سكايب

Posted
عاشق ، تقدر تسوي سلاح باختصار

يعني بدون X, Y, Z

او للاعب واحد بس ؟؟

وضح

╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗

║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║

║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║

║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║

╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝

«سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك»

M7mdAl7arthy : لتواصل سكايب

Posted (edited)
function Fad(weapon,ammo,ammoInClip,X,Y,Z) 
    if weapon == 38 then -- اذا كان الاعب يملك سلاح الـ MiniGun  
                x,y,z = getElementPosition(getLocalPlayer()) -- يجيب احداثياتة 
        if not createProjectile(getLocalPlayer(),19,x,y,z,200) then -- يحول رصاص السلاح 
  
                    outputChatBox("Was successfully upgrade your weapon",255,0,0,true) 
  
        end 
    end 
end 
  
  
addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), Fad) 

الويكي فية ايدي الاسلحة (=

200 = Ammo

19 = Weapon id

Client Side

* تم التجربة

يحول في اي مكان / = لاي لاعب

Edited by Guest

  

Posted
function Minigun(weapon,ammo,hitX,hitY,hitZ) 
    if weapon == 38 then -- اذا كان الاعب يملك سلاح الـ MiniGun  
                x,y,z = getElementPosition(getLocalPlayer()) -- يجيب احداثياتة 
        if not createProjectile(getLocalPlayer(),19,x,y,z,200)  -- يحول رصاص السلاح 
  
        end 
    end 
end 
  
  
addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), Minigun) 

الويكي فية ايدي الاسلحة (=

200 = Ammo

19 = Weapon id

Client Side

* تم التجربة

يحول في اي مكان / = لاي لاعب

حويس @@

Posted (edited)
function Fad(weapon,ammo,ammoInClip,X,Y,Z) 
    if weapon == 38 then -- اذا كان الاعب يملك سلاح الـ MiniGun  
                x,y,z = getElementPosition(getLocalPlayer()) -- يجيب احداثياتة 
        if not createProjectile(getLocalPlayer(),19,x,y,z,200) then -- يحول رصاص السلاح 
  
                outputChatBox("Was successfully upgrade your weapon",0,255,0,true) 
  
        end 
    end 
end 
  
  
addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), Fad) 
  

الويكي فية ايدي الاسلحة (=

200 = Ammo

19 = Weapon id

Client Side

* تم التجربة

يحول في اي مكان / = لاي لاعب

حويس @@

معليشش فية خطأ نسختة خطأ >< جرب هذا :

function Fad(weapon,ammo,ammoInClip,X,Y,Z) 
    if weapon == 38 then  
                x,y,z = getElementPosition(getLocalPlayer()) 
        if not createProjectile(getLocalPlayer(),19,x,y,z,200) then  
  
             
                outputChatBox("Was successfully upgrade your weapon",0,255,0,true) 
  
        end 
    end 
end 
  
  
addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), Fad) 

خذ الـ MiniGun

واطلق وشوف

Edited by Guest

  

Posted
شباب من وين جبتو رقم 19 ؟

وش هو ؟

createProjectile - أقرا الويكي

╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗

║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║

║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║

║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║

╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝

«سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك»

M7mdAl7arthy : لتواصل سكايب

Posted
شكرا جزيلا احباب

الله لا يحرم احد من ابداعكم

^^

هلاوسسهلا.

╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗

║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║

║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║

║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║

╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝

«سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك»

M7mdAl7arthy : لتواصل سكايب

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...