iA7bk# Posted January 1, 2014 Share Posted January 1, 2014 السلام عليكم ورحمةة الله وبركاته شباب ابي تعدلون لي الكود الكود هوا اعطاء نفاثه يعني تشتريها من الشوب سيرفر 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
./BlackBird# Posted January 1, 2014 Share Posted January 1, 2014 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
iA7bk# Posted January 1, 2014 Author Share Posted January 1, 2014 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
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