Mr.Ronaldo Posted July 1, 2015 Share Posted July 1, 2015 (edited) السلام عليكم ورحمة الله وبركاته من يومين كذا كنت بصنع لوحه فيها بعد المميزات ومن الميزات كود ارسال فلوس لاصدقائك بالسيرفر والحمدلله خلصته وكلشي تمام لكن بق غريب بيه حاولت اصلحو لكن ما عرفت وهي انك تقدر ترسل فلوس بالسالب للاعبين يعني -999999 ذا الكود الى يحصل منه البق function smtp (player,rec,moneys) if rec then local receiver = getPlayerFromName(rec) local money = getPlayerMoney(player) if (money >= moneys) then outputChatBox ("#FF0000* #FFCC00Was Sent #FF00FF$"..(moneys).." #FFCC00To #FF00FF"..rec.."", player, 0, 255, 0,true) outputChatBox ("#FF0000* #FFCC00You Have Received #FF00FF$"..(moneys).." #FFCC00From #FF00FF"..getPlayerName(player).."", receiver, 0, 255, 0,true) givePlayerMoney ( receiver, moneys ) takePlayerMoney ( player, moneys ) else outputChatBox ("* You Don’t Have Enough Money", player, 255, 0, 0) end end end addEvent ("smtp", true) addEventHandler ("smtp", getRootElement(), smtp) هل من حلول Edited July 15, 2015 by Guest Link to comment
-#Saimon Posted July 1, 2015 Share Posted July 1, 2015 function smtp (player,rec,moneys) if rec then local receiver = getPlayerFromName(rec) local money = getPlayerMoney(player) if (money >= moneys) then if (tonumber(moneys)>=200) then outputChatBox ("#FF0000* #FFCC00Was Sent #FF00FF$"..(moneys).." #FFCC00To #FF00FF"..rec.."", player, 0, 255, 0,true) outputChatBox ("#FF0000* #FFCC00You Have Received #FF00FF$"..(moneys).." #FFCC00From #FF00FF"..getPlayerName(player).."", receiver, 0, 255, 0,true) givePlayerMoney ( receiver, moneys ) takePlayerMoney ( player, moneys ) else outputChatBox ("* You Don’t Have Enough Money", player, 255, 0, 0) end end end addEvent ("smtp", true) addEventHandler ("smtp", getRootElement(), smtp) Link to comment
justboy Posted July 1, 2015 Share Posted July 1, 2015 تاكد ان الفلوس فوق الصفر او استخدم math.abs ^ تحول العدد من سالب الى موجب 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