Abdul KariM Posted March 15, 2017 Share Posted March 15, 2017 جرب مع لاعب ثاني لان في شرط ان السورس مايساوي الاعب المحدد او انك تحذف سطر 64 وتجرب وبعدين ترجعه Link to comment
Ismaeel_finer Posted March 15, 2017 Author Share Posted March 15, 2017 Just now, Abdul KariM said: جرب مع لاعب ثاني لان في شرط ان السورس مايساوي الاعب المحدد او انك تحذف سطر 64 وتجرب وبعدين ترجعه تمام دقيقة اجرب 6 minutes ago, Abdul KariM said: جرب مع لاعب ثاني لان في شرط ان السورس مايساوي الاعب المحدد او انك تحذف سطر 64 وتجرب وبعدين ترجعه وينه سطر 64 ممكن تكتبهولي 7 minutes ago, Abdul KariM said: جرب مع لاعب ثاني لان في شرط ان السورس مايساوي الاعب المحدد او انك تحذف سطر 64 وتجرب وبعدين ترجعه debugs قالي سطر 3 ف ملف سيرفر Link to comment
Ismaeel_finer Posted March 15, 2017 Author Share Posted March 15, 2017 (edited) 1 minute ago, Abdul KariM said: حطلي السيرفر سايد بس addEvent("SendMoney",true) addEventHandler("SendMoney",root, function ( aPlayer , aPrice ) if ( getPlayerFromName ( aPlayer ) and tonumber ( aPrice ) ) then if ( getPlayerFromName ( aPlayer ) == source ) then return outputChatBox("* لايمكنك ارسال الفلوس لنفسك !",source,255,0,0,true) end if ( getPlayerMoney ( source ) >= tonumber ( aPrice ) ) then givePlayerMoney ( getPlayerFromName ( aPlayer ) , tonumber ( aPrice ) ) takePlayerMoney ( source , tonumber ( aPrice ) ) else outputChatBox("* ليس لديك مبلغ كافي "..aPrice.."",source,255,0,0,true) end end end ) 3 minutes ago, Abdul KariM said: حطلي السيرفر سايد بس Edited March 15, 2017 by Ismaeel_finer Link to comment
Abdul KariM Posted March 15, 2017 Share Posted March 15, 2017 راجع متغيرات وظيفة القريد ليست والايدت غير اسمائهم وعدلهم 1 Link to comment
Ismaeel_finer Posted March 15, 2017 Author Share Posted March 15, 2017 5 minutes ago, Abdul KariM said: راجع متغيرات وظيفة القريد ليست والايدت غير اسمائهم وعدلهم تمام 12 minutes ago, Abdul KariM said: راجع متغيرات وظيفة القريد ليست والايدت غير اسمائهم وعدلهم انحلت مشكلة انا غيرت كودي اول ب كود هادا وحين رجعت كودي اشتغل مود شكرا اخي علي مساعدتك واشكر كل من ساعدني وموفقين 1 hour ago, Master_MTA said: تفضل addEventHandler("onClientResourceStart", resourceRoot, function() --panelmoney = guiCreateWindow(817,135,392,412,"",false) local screenW, screenH = guiGetScreenSize() panelmoney = guiCreateWindow((screenW - 530) / 2, (screenH - 416) / 2, 530, 416, "", false) guiWindowSetSizable(panelmoney, false) guiSetVisible(panelmoney,false) zzz = guiCreateStaticImage(10, 11, 510, 395,"images/LK.png",false,panelmoney) graid = guiCreateGridList(3,49,145,342,false,zzz) guiGridListAddColumn(graid,"Player",9,0) sendmoney = guiCreateButton(369, 117, 119, 43,"ارسال",false,zzz) Closed = guiCreateButton(307, 335, 167, 46, "اغلاق", false, zzz)GUIEditor.edit = guiCreateEdit(261, 203, 192, 37,"",false,zzz)labelmoney = guiCreateLabel(150,298,222,92,"BY LIBYA_FREE",false,zzz)guiLabelSetColor(labelmoney,255,0,0)imagemoneey = guiCreateStaticImage(215,2,93,70,"images/logo.png",false,zzz) end)function RefreshGridlist ( )guiGridListClear ( graid )for i,v in ipairs ( getElementsByType("player") ) dolocal aRow = guiGridListAddRow ( graid )guiGridListSetItemText ( graid , aRow , 1 , getPlayerName ( v ) , false , false )endend bindKey('f5',"down", function ( )guiSetVisible ( panelmoney , not guiGetVisible ( panelmoney ) )showCursor ( guiGetVisible ( panelmoney ) )guiSetInputEnabled ( guiGetVisible ( GUIEditor.window ) )RefreshGridlist ()end ); function Update ( )RefreshGridlist ()endaddEventHandler ("onClientPlayerJoin",root,Update)addEventHandler ("onClientPlayerChangeNick",root,Update)addEventHandler ("onClientPlayerQuit",root,Update) addEventHandler("onClientGUIClick",resourceRoot, function ( ) if (source == Closed) then guiSetVisible (panelmoney,false) showCursor ( false )elseif ( source == sendmoney ) then local InfoSelected = { guiGridListGetSelectedItem ( GUIEditor.gridlist ) };if ( InfoSelected [ 1 ] ~= -1 and guiGetText ( GUIEditor.edit ) ~= "" ) thentriggerServerEvent("SendMoney",getLocalPlayer(),guiGridListGetItemText(GUIEditor.gridlist,InfoSelected[1],InfoSelected[2]),guiGetText(GUIEditor.edit))elseoutputChatBox("اختر لاعب او قم بكتابة رقم",255,0,0,true)endendend)---server addEvent("SendMoney",true) addEventHandler("SendMoney",root, function ( aPlayer , aPrice ) if ( getPlayerFromName ( aPlayer ) and tonumber ( aPrice ) ) then if ( getPlayerFromName ( aPlayer ) == source ) then return outputChatBox("* لايمكنك ارسال الفلوس لنفسك !",source,255,0,0,true) end if ( getPlayerMoney ( source ) >= tonumber ( aPrice ) ) then givePlayerMoney ( getPlayerFromName ( aPlayer ) , tonumber ( aPrice ) ) takePlayerMoney ( source , tonumber ( aPrice ) ) else outputChatBox("* ليس لديك مبلغ كافي "..aPrice.."",source,255,0,0,true) end end end ) ---لوحة اف 5addEventHandler("onClientResourceStart", resourceRoot, function()GUIEditor_Image = {}GUIEditor = { button = {}}local screenW, screenH = guiGetScreenSize() Control = guiCreateWindow((screenW - 767) / 2, (screenH - 507) / 2, 767, 507, "لوحة زوائد زروط ليبيا", false)Controll = guiCreateStaticImage(9,0,749,498,"images/rules.png",false,Control)GUIEditor_Image[1] = guiCreateStaticImage(224,4,325,275,"images/tarkep.png",false,Controll)button2 = guiCreateButton(3,212,233,63,"لوحة فتح ابواب السيارة",false,Controll) guiSetProperty(button2, "NormalTextColour", "FFE9F807")button8 = guiCreateButton(2,387,233,63,"لوحة حفط الملابس",false,Controll) guiSetProperty(button8, "NormalTextColour", "FFFF0000")button10 = guiCreateButton(4,295,233,63,"لوحة توب الدرفت",false,Controll) guiSetProperty(button10, "NormalTextColour", "FF01FAB7")button3 = guiCreateButton(536,295,233,63,"لوحة ارسال فلوس",false,Controll) guiSetProperty(button11, "NormalTextColour", "FFEA5B0D")button4 = guiCreateButton(534,385,233,63,"لوحة اختيار ليزر",false,Controll) guiSetProperty(button4, "NormalTextColour", "FF5AF505")button13 = guiCreateButton(533,218,233,63,"اغاني",false,Controll) guiSetProperty(button13, "NormalTextColour", "FFD7259A") guiSetVisible(Control,false)end)bindKey("F5","down",function () guiSetVisible(Control,not guiGetVisible(Control)) showCursor(guiGetVisible(Control))end) addEventHandler ("onClientGUIClick", root, function() if (source == button2) then guiSetVisible(Car, true) guiSetVisible(Control, false) elseif (source == button8) then guiSetVisible(Cj, true) guiSetVisible(Control, false) elseif (source == button10) then guiSetVisible(HD.wnd, true) guiSetVisible(Control, false) elseif (source == button3) then guiSetVisible(panelmoney, true) guiSetVisible(Control, false) elseif (source == button4) then guiSetVisible(laser, true) guiSetVisible(Control, false) elseif (source == button13) then guiSetVisible(window, true) guiSetVisible(Control, false) end end) جرب ورد خبر سويتلك البايند كاي اف 5 عدله للي تبي انت 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