Jump to content

تصحيح كود


Recommended Posts

السلام عليكم ,,

هذذآ كود اذا ظظغط وآحد عـ الزر يعطية سسلـآح

بس فيهة غلطط !

addEventHandler("onClientGUIClick",root,function () 
if source == Mafia then -- Mifia آسم آلزر  
giveWeapon (31,9999) 
giveWeapon (24,9999) 
giveWeapon (34,9999) 
       end 
end) 

وششكرـآً

Link to comment
السلام عليكم ,,

هذذآ كود اذا ظظغط وآحد عـ الزر يعطية سسلـآح

بس فيهة غلطط !

addEventHandler("onClientGUIClick",root,function () 
if source == Mafia then -- Mifia آسم آلزر  
giveWeapon (31,9999) 
giveWeapon (24,9999) 
giveWeapon (34,9999) 
       end 
end) 

وششكرـآً

الفنكشن سيرفر سوي ترايقر ( =

Link to comment

-- Client Side !

addEventHandler ( "onClientGUIClick", Mafia, 
    function ( ) 
        triggerServerEvent ( "giveWeapons", localPlayer ) 
    end, 
false ) 

-- Server Side !

addEvent ( "giveWeapons", true ) 
addEventHandler ( "giveWeapons", root, 
    function ( ) 
        giveWeapon ( source, 31, 9999 ) 
        giveWeapon ( source, 24, 9999 ) 
        giveWeapon ( source, 34, 9999 ) 
    end 
) 

Link to comment
addEventHandler("onClientGUIClick",root,function () 
if source == Mafia then -- Mifia آسم آلزر 
triggerServerEvent("give",localPlayer)  
end 
end) 

addEvent("give",true)  
addEventHandler("give",root,  
function() 
giveWeapon (source,31,9999) 
giveWeapon (source,24,9999) 
giveWeapon (source,34,9999) 
end 
) 

Edited by Guest
Link to comment
addEventHandler("onClientGUIClick",root,function () 
if source == Mafia then -- Mifia آسم آلزر 
triggerServerEvent("give",localPlayer)  
end 
end) 

addEvent("give",true)  
addEventHandler("give",root,  
function() 
giveWeapon (31,9999) 
giveWeapon (24,9999) 
giveWeapon (34,9999) 

اند وقوس ناقص

وخطأ السلاح

Link to comment
addEventHandler("onClientGUIClick",root,function () 
if source == Mafia then -- Mifia آسم آلزر 
triggerServerEvent("give",localPlayer)  
end 
end) 

addEvent("give",true)  
addEventHandler("give",root,  
function() 
giveWeapon (31,9999) 
giveWeapon (24,9999) 
giveWeapon (34,9999) 

اند وقوس ناقص

وخطأ السلاح

استعجلت ونسيت ماخليتهم

تم التعديل

:mrgreen:

Link to comment
addEventHandler ( "onClientGUIClick",root, 
    function ( ) 
if ( source == button1 or source == button2 or source == button3 ) then 
        triggerServerEvent ( "giveWeapons", localPlayer ) 
    end 
end 
) 

اها قصده ازرار يعني ذذ

Link to comment

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