Adham Posted May 21, 2016 Share Posted May 21, 2016 سلام عليكم انا اليوم مسوي لوحة توزيع فلوس شو هيا؟ مسوي قريد لست يتحط في كل الاعبين وايديت و button انا عاوز بقا لين يحدد اسم ففي القريد لست ويكتب الفلوس في ال الايديت ويضعط علي ال button يتحول الفلوس للاعب المحدد .. Link to comment
#|_oskar_|# Posted May 21, 2016 Share Posted May 21, 2016 اسف بس عندي احساس انكم تعرفو بعض https://forum.multitheftauto.com/viewtopic.php?p=890083#p890083 يعني لاحظت ان طلباتكم نفس بعضها Link to comment
#DRAGON!FIRE Posted May 21, 2016 Share Posted May 21, 2016 guiCreateGridList guiCreateButton https://wiki.multitheftauto.com/wiki/Ch ... layersName Event: "onClientGUIClick" guiGridListGetSelectedItem guiGridListGetItemText triggerServerEvent givePlayerMoney Link to comment
Adham Posted May 21, 2016 Author Share Posted May 21, 2016 addEvent("modz, true) addEventHandler("modz", getRootElement(), function(who, player) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then toWho = getPlayerFromName(who) if toWho ~= false then local name = getPlayerName(source) local Money = getPlayerMoney(toWho) setPlayerMoney(toWho, Money+tonumber(player)) outputChatBox("#ff0000*#ffff00[Admin]#ff0000 You Has Give #ffff00( " .. player .. " #00ff00$#ffff00 ) Money #ff0000 To " .. who, source, 0, 150, 255, true) outputChatBox("#ff0000*#ffff00[Admin]#ff0000 ".. name .. " #ff0000Has Given you #FFFF00( " .. player .. " #00ff00$#ffff00 ) Money #ff0000 !", toWho, 255, 0, 0, true) outputChatBox("#ffff00[C.Console]: "..name:gsub("#%x%x%x%x%x%x", "").." #ffff00has sent Money for $"..convertNumber (cantidad) , getRootElement(), 255, 255, 255, true) else outputChatBox("#ff0000*#ffff00[Admin]#ff0000 Please Select Player!!", source, 255, 0, 0, true) end end end ) addEventHandler("onClientGUIClick", root, function () if ( source == send ) then if ( guiGridListGetSelectedItem ( gridlist ) ~= -1 ) then if ( guiGetText ( Money ) ~= then triggerServerEvent('modz',localPlayer) end end ) Link to comment
SaedAmer Posted May 21, 2016 Share Posted May 21, 2016 اسف بس عندي احساس انكم تعرفو بعض https://forum.multitheftauto.com/viewtopic.php?p=890083#p890083 يعني لاحظت ان طلباتكم نفس بعضها يا اسكار والله ما نفس الشخص احنا اصدقاء و هو يساعدني Link to comment
فاّرس Posted May 21, 2016 Share Posted May 21, 2016 عشان تجيب الاسم وترسله مع التريقر guiGridListGetItemText اول شي بجانب الكلينت لازم تستخدم وناقصك اند ف الكلينت اما السيرفر اول سطر ناقصك علامة تنصيص " يكفي givePlayerMoney الفنكشن setPlayerMoney ومو لازم تستخدم عندك خبصه شوي بملف سيرفر رتب كودك ما يحتاج تطوله وهو قصير .. 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