XPro Posted July 15, 2015 Share Posted July 15, 2015 اضن من العنوان مفهوم الطلب ابي فنكشات ارسال رسالة خاصة للاعب مثلا pm id(or name) msg... يعني يكتب الاي دي او الاسم يتعرف على الاعب و الثانية هو ارسال فلوس للاعب من اف 8 نفس الشي الاي دي او الاسم send id(or name) money.. و يكون متاح لكل الاعبين يعني و شكرا اجرب اسوي الكود و احطه هنا Link to comment
The Killer Posted July 15, 2015 Share Posted July 15, 2015 Command # addCommandHandler function # getPlayerFromName givePlayerMoney -- Player name -- PM outputChatBox -- Player name Link to comment
XPro Posted July 15, 2015 Author Share Posted July 15, 2015 بس ؟ o.0 انا ما سويت من قبل اوامر من اف 8 كذا ض Link to comment
The Killer Posted July 15, 2015 Share Posted July 15, 2015 يب هذا الي تحتاجه عشان تسوي كودك .. # Link to comment
iMr.Dawix~# Posted July 15, 2015 Share Posted July 15, 2015 1 = https://community.multitheftauto.com/ind ... ls&id=1562 2 = https://wiki.multitheftauto.com/wiki/Ge ... omNamePart addCommandHandler getPlayerFromNamePart او getPlayerFromName givePlayerMoney getPlayerMoney takePlayerMoney او تقدر تسوي الثاني بنسخ كود المود الأول وتعدله وتزبط كودك حق ارسال الفلوس Link to comment
XPro Posted July 16, 2015 Author Share Posted July 16, 2015 شباب ما ني فاهم شوفو اذا كذا لاني ما سويتهم من قبل addCommandHandler ( "send", function ( thePlayer, cmd, sendToName , money ) local givePlayerMoney = give if sendToName then if (getPlayerName (sendToName)) then toPlayer = (getPlayerName (sendToName)) if (toPlayer == thePlayer ) then getPlayerMoney ("thePlayer") getPlayerMoney ("toPlayer") if not (toPlayer ~= thePlayer ) then givePlayerMoney (toPlayer,money+give) takePlayerMoney (thePlayer,money-give) outputChatBox("#0044FF[M]#FFFFFF you send To #FFFFFF" .. getPlayerName(toPlayer) .. "#FFFFFF: " .. money, thePlayer, 255, 255, 255, true) end end end end end) Link to comment
N3xT Posted July 16, 2015 Share Posted July 16, 2015 شباب ما ني فاهم شوفو اذا كذا لاني ما سويتهم من قبل addCommandHandler ( "send", function ( thePlayer, cmd, sendToName , money ) local givePlayerMoney = give if sendToName then if (getPlayerName (sendToName)) then toPlayer = (getPlayerName (sendToName)) if (toPlayer == thePlayer ) then getPlayerMoney ("thePlayer") getPlayerMoney ("toPlayer") if not (toPlayer ~= thePlayer ) then givePlayerMoney (toPlayer,money+give) takePlayerMoney (thePlayer,money-give) outputChatBox("#0044FF[M]#FFFFFF you send To #FFFFFF" .. getPlayerName(toPlayer) .. "#FFFFFF: " .. money, thePlayer, 255, 255, 255, true) end end end end end) https://wiki.multitheftauto.com/wiki/GivePlayerMoney فيه مثال جاهز حويسك ذا كله ماله داعي , هههههههههههههههههههههههه Link to comment
XPro Posted July 16, 2015 Author Share Posted July 16, 2015 لا تضحك خخخخخ ما عرفت اسويه بس Link to comment
' A F . Posted July 16, 2015 Share Posted July 16, 2015 addCommandHandler("PM", function ( plr,cmd,name,msg ) local Name = getPlayerFromName ( name ) if ( Name ) then outputChatBox(msg,Name,255,255,255,true) else outputChatBox("* Not Found Player ",plr,255,0,0,true) end end ) ^ كتبته ع السريع .. Link to comment
XPro Posted July 16, 2015 Author Share Posted July 16, 2015 مشكور يا الاخر برو قايمر بس قولي وش معنى plr ليش استخدمتها؟؟؟ Link to comment
Ac[T]ioN Posted July 16, 2015 Share Posted July 16, 2015 مشكور يا الاخر برو قايمر بس قولي وش معنىplr ليش استخدمتها؟؟؟ إختصار لبلاير player 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