Jump to content

طلب تعديل كود


iA7bk#

Recommended Posts

السلام عليكم ورحمةة الله وبركاته

شباب ابي تعدلون لي الكود

الكود هوا اعطاء نفاثه يعني تشتريها من الشوب

سيرفر

    addEvent(JetPack',true) 
    addEventHandler(JetPack', root, 
    function () 
    if (getPlayerMoney(source) >= 3000) then 
    takePlayerMoney (source,3000) 
   givePedJetPack(source) 
    outputChatBox("تم شراء النفاثه",source,0,255,0,true) 
    else --- dont use elseif this is good way .. 
    outputChatBox("*لا تملك المال الكافي لشراء النفاثه",source,255,0,0,true) 
    end 
    end 
    ) 

كلنت

addEventHandler ("onClientGUIClick", root, 
function () 
    if source == B then 
        triggerServerEvent ( "B", localPlayer ) 
    end 
end) 

Link to comment
addEvent('B',true) 
addEventHandler('B', root, 
function () 
 if (getPlayerMoney(source) >= 3000) then 
  takePlayerMoney (source,3000) 
   givePedJetPack(source) 
    outputChatBox("تم شراء النفاثه",source,0,255,0,true) 
   else --- dont use elseif this is good way .. 
   outputChatBox("*لا تملك المال الكافي لشراء النفاثه",source,255,0,0,true) 
  end 
end 
) 

Link to comment
addEvent('B',true) 
addEventHandler('B', root, 
function () 
 if (getPlayerMoney(source) >= 3000) then 
  takePlayerMoney (source,3000) 
   givePedJetPack(source) 
    outputChatBox("تم شراء النفاثه",source,0,255,0,true) 
   else --- dont use elseif this is good way .. 
   outputChatBox("*لا تملك المال الكافي لشراء النفاثه",source,255,0,0,true) 
  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...