+Source|> Posted August 6, 2017 Share Posted August 6, 2017 (edited) لما احدد اللاعب واوزع ما يوزع ملف سيرفر addEvent("moneyforp", true) addEventHandler("moneyforp", root, function(mtxt, player) local player = getPlayerFromName(player) if ( player ) then givePlayerMoney( player, mtxt ) end end ) ملف كلنت addEventHandler("onClientGUIClick", mma7, function() local slctd = guiGridListGetSelectedItem( grid ) local txt = guiGridListGetItemText( grid, slctd, 1 ) local mtxt = guiGetText(GUIEditor.edit[1]) if ( source == GUIEditor.button[2] ) then if ( slctd ~= -1 ) then if mtxt == "" then outputChatBox( " #00ffff[ Gave Money ] #ff0000 الرجاء كتابة مبلغ للتوزيع ", 255, 0, 0, true ) return end triggerServerEvent( "moneyforp",localPlayer, txt, mtxt ) else outputChatBox( " #00ffff[ Gave Money ] #ff0000 الرجاء إخـتيار لاعـب ", 255, 0, 0, true ) end end end ) Edited August 6, 2017 by A7MEDENO Link to comment
Abdul KariM Posted August 7, 2017 Share Posted August 7, 2017 mtxt بـ player بالسيرفر سايد بدل player بـ mtxt وبدل Link to comment
+Source|> Posted August 7, 2017 Author Share Posted August 7, 2017 4 hours ago, Abdul KariM said: mtxt بـ player بالسيرفر سايد بدل player بـ mtxt وبدل mtxt انا معرف بها الايديت بوكس 5 hours ago, Abu-Solo said: debug? ما يطلع شيئ Link to comment
Adham Posted August 7, 2017 Share Posted August 7, 2017 (edited) addEventHandler("onClientGUIClick", mma7, mma7 = ? جرب addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if source == button then local name = guiGridListGetItemText ( playerList, guiGridListGetSelectedItem ( playerList ), 1 ) local number = guiGetText ( edit ) if name == "" or number == "" then return end triggerServerEvent ( "onSendMoney", localPlayer, name, number ) end end ) -- Server addEvent ( "onSendMoney", true ) addEventHandler ( "onSendMoney", root, function(name,number) if name and number then local player = getPlayerFromName(name) if player then givePlayerMoney(player,tonumber(number)) end end end ) Edited August 7, 2017 by Deativated Link to comment
+Source|> Posted August 7, 2017 Author Share Posted August 7, 2017 2 hours ago, Deativated said: addEventHandler("onClientGUIClick", mma7, mma7 = ? جرب addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if source == button then local name = guiGridListGetItemText ( playerList, guiGridListGetSelectedItem ( playerList ), 1 ) local number = guiGetText ( edit ) if name == "" or number == "" then return end triggerServerEvent ( "onSendMoney", localPlayer, name, number ) end end ) -- Server addEvent ( "onSendMoney", true ) addEventHandler ( "onSendMoney", root, function(name,number) if name and number then local player = getPlayerFromName(name) if player then givePlayerMoney(player,tonumber(number)) end end end ) شوف يالطيب mma7 = getResourceRootElemen() Link to comment
+Source|> Posted August 8, 2017 Author Share Posted August 8, 2017 7 hours ago, Deativated said: جرب كودي. بجرب بس الان بمستشفى Link to comment
yasin0 Posted August 8, 2017 Share Posted August 8, 2017 معليش بس سؤال واحد local name = guiGridListGetItemText ( playerList, guiGridListGetSelectedItem ( playerList ), 1 ) وش فايدة ال-1- ؟ 22 hours ago, A7MEDENO said: شوف يالطيب mma7 = getResourceRootElemen() Link to comment
+Source|> Posted August 8, 2017 Author Share Posted August 8, 2017 Just now, yasin0 said: معليش بس سؤال واحد local name = guiGridListGetItemText ( playerList, guiGridListGetSelectedItem ( playerList ), 1 ) وش فايدة ال-1- ؟ زيي زيك مددري احطه وحلاص ضض واذا ما حطيته ما يشتغل Link to comment
Rockyz Posted August 8, 2017 Share Posted August 8, 2017 4 minutes ago, yasin0 said: معليش بس سؤال واحد local name = guiGridListGetItemText ( playerList, guiGridListGetSelectedItem ( playerList ), 1 ) وش فايدة ال-1- ؟ 3 minutes ago, A7MEDENO said: زيي زيك مددري احطه وحلاص ضض واذا ما حطيته ما يشتغل هذا الكولمن Link to comment
+Source|> Posted August 8, 2017 Author Share Posted August 8, 2017 Just now, #,+( _xiRoc[K]; > said: هذا الكولمن اهاا يعني لو حطيت كولمنين اكتب 2 Link to comment
Rockyz Posted August 8, 2017 Share Posted August 8, 2017 22 minutes ago, A7MEDENO said: اهاا يعني لو حطيت كولمنين اكتب 2 على حسب مثلا اذا تبي قيمة من الكولمن الثاني تكتب 2 Link to comment
+Source|> Posted August 8, 2017 Author Share Posted August 8, 2017 2 minutes ago, #,+( _xiRoc[K]; > said: على حسب مثلا اذا تبي قيمة من الكولمن الثاني تكتب 2 مشكور 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