AboFaisal Posted October 14, 2012 Share Posted October 14, 2012 السلام عليكم ورحمه الله وبركاته أبي أحد له خبره يضيف وضيفه عدم تكرآر الصوت كثير !! تفضلو الكود كآمل للسيرفر , addEvent("BuySound",true) addEventHandler("BuySound", root, function() if (getPlayerMoney(source) >= 111) then takePlayerMoney(source,111) local name = getPlayerName(source) triggerClientEvent(source, "xxx", source) outputChatBox ( "لقـد أشترى أنشوده أسلاميه", getRootElement(), 255, 0, 0, true ) else outputChatBox("ليس لديك مال كافي لتشتري أنشودة أسلاميه", source, 255,0,0,true) end end) طبعناً للي مآفهم بعديهآ , المطلوب بالكآمل # - أبي يكون الصوت لمن تشتريه مآيكرر , يعني لو تكرر يجيك بالشآت كذآ مثآل You Are Have Sound Aslame ! أو بالعربيه أنت لقد أشتريت الصوت لايمكنك تكرار الشراء إلا بعد الأنتهاء أرجو أنكم فهمتو ! أرجو الرد بأسرع وقت ! Link to comment
Bssol Posted October 14, 2012 Share Posted October 14, 2012 local anshodh = {} addEvent("BuySound",true) addEventHandler("BuySound", root, function() if (getPlayerMoney(source) >= 111) then if not ( isTimer(anshodh[source]) ) then anshodh[source] = setTimer(function(player) if ( isElement(player) ) then outputChatBox("يمكنك شراء اشنودة جديدة الان!",player,255,255,0) end end,60000,1,source) takePlayerMoney(source,111) local name = getPlayerName(source) triggerClientEvent(source, "xxx", source) outputChatBox ( "لقـد أشترى أنشوده أسلاميه", getRootElement(), 255, 0, 0, true ) else outputChatBox ( "لقد اشتريت انشودة بالفعل، عليك ان تصبر الى تنتهي الانشودة", source, 255, 255, 0, true ) end else outputChatBox("ليس لديك مال كافي لتشتري أنشودة أسلاميه", source, 255,0,0,true) end end) سويته على السريع وما شيكته، شيكه ورد لي خبر Link to comment
AboFaisal Posted October 14, 2012 Author Share Posted October 14, 2012 local anshodh = {} addEvent("BuySound",true) addEventHandler("BuySound", root, function() if (getPlayerMoney(source) >= 111) then if not ( isTimer(anshodh[source]) ) then anshodh[source] = setTimer(function(player) if ( isElement(player) ) then outputChatBox("يمكنك شراء اشنودة جديدة الان!",player) end end,60000,1,source) takePlayerMoney(source,111) local name = getPlayerName(source) triggerClientEvent(source, "xxx", source) outputChatBox ( "لقـد أشترى أنشوده أسلاميه", getRootElement(), 255, 0, 0, true ) else outputChatBox ( "لقد اشتريت انشودة بالفعل، عليك ان تصبر الى تنتهي الانشودة", source, 255, 0, 0, true ) end else outputChatBox("ليس لديك مال كافي لتشتري أنشودة أسلاميه", source, 255,0,0,true) end end) سويته على السريع وما شيكته، شيكه ورد لي خبر تسسسسسلم تسسسلم شنب شنب كفو كفو , لبيه لبيه يالغـآإلي أخوك ~ مستر روح إذآ تذكرهةة ! MR.ro0o[7]_<3 !! Link to comment
Bssol Posted October 14, 2012 Share Posted October 14, 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