AboFaisal Posted September 29, 2012 Share Posted September 29, 2012 السلام عليكم ورحمه الله وبركاته , شبآب كيف حآلكم أنشاء الله بخيـر الكــود عبآره على انك تضغط الزر وتشتري ويجيك صوت كمثـل القرآن , النشيـد , الإذاعة والكـود لـن أضع بـه محرمات , أو شئ لايحب الله عز وجل , والأن الكـود تفضلو addEvent("BuySound",true) addEventHandler("BuySound",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 100) then takePlayerMoney(source,100) local name = getPlayerName(source) playSound("nshed.mp3") outputChatBox ( "#FFF000*" .. name .. " Buy Sound On Shop Panel !", getRootElement(), 255, 0, 0, true ) else outputChatBox("Your Not Have Money To Sound", source, 255, 0, 0, true) end end ) أرجـو التصحيح وجزآكم الله خيــر Link to comment
TAPL Posted September 29, 2012 Share Posted September 29, 2012 الصوت تبيه يشتغل عند الي ضغط الزر فقط أو عند كل السيرفر؟ Link to comment
AboFaisal Posted September 29, 2012 Author Share Posted September 29, 2012 عند اللي يضغطه يعني اللي يششتريه بس Link to comment
TAPL Posted September 29, 2012 Share Posted September 29, 2012 -- Server Side -- addEvent("BuySound",true) addEventHandler("BuySound", root, function() if (getPlayerMoney(source) >= 100) then takePlayerMoney(source,100) local name = getPlayerName(source) triggerClientEvent(source, "xxx", source) outputChatBox("#FFF000*"..name.." Buy Sound On Shop Panel !", root, 255,0,0,true) else outputChatBox("Your Not Have Money To Sound", source, 255,0,0,true) end end) -- Client Side -- addEvent("xxx",true) addEventHandler("xxx", root, function() playSound("nshed.mp3") end) Link to comment
AboFaisal Posted September 29, 2012 Author Share Posted September 29, 2012 تسلم ي عآلي البرمجهةة , 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