Doffy Posted February 17, 2017 Share Posted February 17, 2017 ابي جريد ليست في الكولنم الاول يظهر كل اللاعبين واول ما اللاعب يختار لاعب منهم يسحب منه 5000 الف وينقله للاعب --Client function putPlayers() guiGridListClear(GUIEditor.gridlist[1]) for _,player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,0,getPlayerName(player),false,false) end end function RefreshLists() putPlayers() end addEventHandler("onClientGUIClick",GUIEditor.button[1], function () local sel_1 = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if sel_1 ~= -1 then local PlayerName = guiGridListGetItemText(GUIEditor.gridlist[1],sel_1,0) local player = getPlayerFromName(PlayerName) if isElement(player) then if player ~= localPlayer then setTimer(RefreshLists,500,1) else RefreshLists() outputChatBox("Player not found, lists refreshed.",255,0,0) end end end end) Link to comment
iMr.WiFi..! Posted February 17, 2017 Share Posted February 17, 2017 (edited) ^ حط يوزفل فنكشن حق عناد : ) افضل شيء # ثم سوي حدث عند الضغط وسوي كذا : guiGridListGetItemText ( YourGridList, guiGridListGetSelectedItem ( YourGridList ), 1 ) وبعدين سوي ترايقر للسيرفر وسوي تحقق انه الفلوس حقته اكثر من 5000 ثم اسحب فلوسه وجيب اللاعب من اسمه ثم : getElementPosition بعدين سوي setElementPosition ل سورس Edited February 17, 2017 by iMr.WiFi..! 1 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