sultan1420 Posted July 21, 2015 Share Posted July 21, 2015 ابي كود توزيع الفلوس عبر لوحه احدد فيها الناس الي اوزعاه لها Link to comment
iMr.SFA7 Posted July 21, 2015 Share Posted July 21, 2015 قصدك قريد ليست فيه أسماء اللاعبين وانت تختار اللاعب الي تبي توزع له ؟ -- لوب للاعبين getPlayerName guiGridListSetItemText guiGridListGetSelectedItem guiGridListGetItemText guiGetText triggerServerEvent givePlayerMoney Link to comment
sultan1420 Posted July 21, 2015 Author Share Posted July 21, 2015 شوف انا اعرف triggerServerEvent getPlayerName givePlayerMoney بس الباقي ابي شرح Link to comment
iMr.SFA7 Posted July 21, 2015 Share Posted July 21, 2015 guiGridListSetItemText -- يحط اللاعبين بالقريد ليست guiGridListGetSelectedItem -- سوي تحقق انه اختار شيء من القريد ليست اذا ماختار يكنسل ذذذ guiGridListGetItemText -- يجيب التكست من القريد ليست guiGetText -- يجيب الي كتبه بالاديت viewtopic.php?f=160&t=59096 Link to comment
sultan1420 Posted July 21, 2015 Author Share Posted July 21, 2015 اسمع اللوبي ماعرفتله كيف Link to comment
sultan1420 Posted July 21, 2015 Author Share Posted July 21, 2015 addEventHandler("onClientGUIClick"sultan,root, function() if ( source == GUIEditor.button[1] ) then triggerServerEvent ("SD", getLocalPlayer()) end end ) GUIEditor.gridlist[1] = guiCreateGridList(14, 30, 245, 326, false, GUIEditor.window[1]) cl = guiGridListAddColumn(GUIEditor.gridlist[1], "Players List ...", 0.85) guiGridListSetItemText(GUIEditor.gridlist[1], rw, cl, getPlayerName(name), false, false) شوف الي قدرت اسويه Link to comment
' A F . Posted July 21, 2015 Share Posted July 21, 2015 Client Side : addEventHandler('onClientResourcrStart',resourceRoot, function ( ) for i,v in ipairs ( getElementsByType('player') ) do local row = guiGridListAddRow ( Grid ) guiGridListSetItemText ( Grid , row , 1, getPlayerName(v),false,false) end end ) addEventHandler('onClientGUIClick',root, function ( ) if ( source == GUIEditor.button[1] ) then if ( guiGridListGetSelectedItem ( Grid ) ~= -1 ) then local Name,Money = guiGridListGetItemText(Grid,guiGridListGetSelectedItem ( Grid ) , 1),guiGetText(Edit) triggerServerEvent('Send',localPlayer,Name,Money) else outputChatBox('Please Select Player') end end end ) Server Side : addEvent('Send',true) addEventHandler('Send', root, function ( name , money ) local Name = getPlayerFromName ( name ) if ( Name ) then if ( getPlayerMoney(source) >= tonumber(money) ) then takePlayerMoney(source,tonumber(money)) givePlayerMoney(Name,tonumber(money)) end end end ) م جربته Link to comment
sultan1420 Posted July 21, 2015 Author Share Posted July 21, 2015 الله لا يهينك بس ابي الفنكشتات حقت اذا كتبت في الشات تجي اللوحه والله يوفقك وبرزقك من حيث لا تحتسب Link to comment
iMr.SFA7 Posted July 21, 2015 Share Posted July 21, 2015 الله لا يهينك بس ابي الفنكشتات حقت اذا كتبت في الشات تجي اللوحه والله يوفقك وبرزقك من حيث لا تحتسب Event : onPlayerChat triggerServerEvent guiSetVisible Link to comment
' A F . Posted July 21, 2015 Share Posted July 21, 2015 Server Side addEventHandler('onPlayerChat',root, function ( msg ) if ( msg == 'لوحة' ) then triggerClientEvent(source,'Window',source) end end ) Client Side addEvent('Window',true) addEventHandler('Window', root, function ( ) guiSetVisible(Window, not guiGetVisible(Window)) showCursor(not isCursorShowing()) end) Link to comment
sultan1420 Posted July 21, 2015 Author Share Posted July 21, 2015 الله يسعدك وين ماتلقي وجهك والله خليك لاهلك Link to comment
' A F . Posted July 21, 2015 Share Posted July 21, 2015 ^ اللهم آمينن ويآك ي رب والجميع ان شاء الله Link to comment
sultan1420 Posted July 21, 2015 Author Share Posted July 21, 2015 يا الظيب ابي حل للمشكله انا كل ماشغل المود يجي بالوجه والكود فيه غلط الاول Link to comment
' A F . Posted July 21, 2015 Share Posted July 21, 2015 ^ guiSetVisible(اسم اللوحة,false) اي كود ؟ Link to comment
sultan1420 Posted July 21, 2015 Author Share Posted July 21, 2015 الاكواد كلها جربتها كلها Link to comment
' A F . Posted July 21, 2015 Share Posted July 21, 2015 ^ م آشوف فيها آي غلط ورني اللوحة حقتك < 3 .. 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