Wleed1998 Posted July 2, 2016 Share Posted July 2, 2016 السلام عليكمممم السلام عليكمممم الان انا سويت لوحة gui فيها ايديت وتحته ميمو اريد لم اكتب في الاديت حساب لاعب يجيبلي معلوماته سرياله +رتبه كامله + فلوسه كم +بنقه + و النك حقهاو الاسم وبس Link to comment
Adham Posted July 2, 2016 Share Posted July 2, 2016 guiSetText getPlayerAccount getAccount getPlayerName getPlayerPing getPlayerMoney getPlayersInGroup Link to comment
Anis Posted July 2, 2016 Share Posted July 2, 2016 guiSetText getPlayerAccount getAccount getPlayerName getPlayerPing getPlayerMoney getPlayersInGroup + getPlayerSerial Link to comment
Wleed1998 Posted July 2, 2016 Author Share Posted July 2, 2016 guiSetText getPlayerAccount getAccount getPlayerName getPlayerPing getPlayerMoney getPlayersInGroup احتاج تقريتات صح Link to comment
Adham Posted July 2, 2016 Share Posted July 2, 2016 triggerServerEvent triggerClientEvent اكيد بتحتجهم Link to comment
N3xT Posted July 2, 2016 Share Posted July 2, 2016 تقريتات ؟ قصدك تريقرات ويب تحتاجهم عشان تجيب الرتبة وتحقق من اسم الحساب وأيضاً تجيب السيريال Link to comment
Adham Posted July 2, 2016 Share Posted July 2, 2016 تقريتات ؟قصدك تريقرات ويب تحتاجهم عشان تجيب الرتبة وتحقق من اسم الحساب وأيضاً تجيب السيريال Link to comment
Wleed1998 Posted July 2, 2016 Author Share Posted July 2, 2016 تقريتات ؟قصدك تريقرات ويب تحتاجهم عشان تجيب الرتبة وتحقق من اسم الحساب وأيضاً تجيب السيريال السريال ليه !!؟ Link to comment
Mr.CoR Posted July 2, 2016 Share Posted July 2, 2016 الاكواد الي فوق ملخبطه ماعليك منها هذي الاكواد بالترتيب guiGetText -- على شان تجيب الكلام من الايديت بوكس triggerServerEvent -- على شان ترسل كلام الايديت بوكس للسيرفر getAccountName -- هذي تستخدمها على شان تتحقق انه اكاونت موجود بالسيرفر getAccountPlayer -- هذي على شان تجيب اسم اللاعب صاحب الاكاونت getPlayerSerial -- تجيب سيريال اللاعب getPlayerAcls -- هذا يوزفل فانكشن يجيب رتبة اللاعب triggerClientEvent -- ترسل اسم اللاعب وسيرياله ورتبته addEvent -- لإستقبال الترايقر addEventHandler -- لإستقبال الترايقر getPlayerPing -- تجيب البنق getPlayerMoney -- تجيب الفلوس guiSetText -- على شان تحط الكلام في الميمو -- \n استخدم هذا الرمز على شان تنزل سطر ملاحظات مهمة 1. صفحة اليوزفل فانكشن في الويكي getPlayerAcls 2. لازم تستخدم حدث onClientRender على شان يحدث لك بيانات اللاعب Link to comment
N3xT Posted July 2, 2016 Share Posted July 2, 2016 Note: The client side version of getPlayerSerial has been deprecated as it can return the wrong value for some players, and is potentially insecure. The following article assumes that the function is serverside only. Link to comment
Mr.CoR Posted July 2, 2016 Share Posted July 2, 2016 حاطها له بجهه السيرفر انا الي بين الترايقرات كلهم سيرفر Link to comment
Wleed1998 Posted July 2, 2016 Author Share Posted July 2, 2016 حاطها له بجهه السيرفر اناالي بين الترايقرات كلهم سيرفر كلنت Window = guiCreateWindow ( 0.15, 0.33, 0.7, 0.34, "^^", true ) spawnScreenOKButton = guiCreateButton ( 0.4, 0.85, 0.20, 0.15, "OK", true, Window ) GUIEditor.memo[1] = guiCreateMemo(17,79,414,246,"",false,Window) function () if ( source == GUIEditor.button[1] ) then ad = guiGetText(GUIEditor.edit[1]) guiSetText (GUIEditor.edit[1], "" ) triggerServerEvent( 'Add', getLocalPlayer(),ad) local getPlayer = getPlayerFromName(PlayerName) local Na = getPlayerName(getPlayer) local My = getPlayerMoney(getPlayer) local Ping = getPlayerPing(getPlayer) addEvent("aad",true) addEventHandler("aad",root, function (Account,acc,Player,Serial,acl) guiSetText(GUIEditor.memo[1],"\n Acls:"..PlayerAcls.."\n NameAccount :"..acc"\n NamePlayer :"..Na.."\n SerialPlayre :"..Serial.."\n Money :"..My.."\nPing :"..Ping) سيرفر addEvent("add",true) addEventHandler("add", root, function (ad) local Account = getPlayerAccount(Player) if (account) and not (isGuestAccount(account)) then local acc = getAccountName(Playeracc) local Player = getPlayerFromName(PlayerName) local Serial = getPlayerSerial(player) local acl = getPlayerAcls(Player) tostring( table.concat(acl, ", ") ) triggerClientEvent (playerSource, "aad" ,Account,acc,Player,Serial,acl) الوحه حطيته من الوكي كا تجربه لان الان بروح مشغول شوي بروب الكود لم تتم تجربته Link to comment
Wleed1998 Posted July 2, 2016 Author Share Posted July 2, 2016 حاطها له بجهه السيرفر اناالي بين الترايقرات كلهم سيرفر كلنت Window = guiCreateWindow ( 0.15, 0.33, 0.7, 0.34, "^^", true ) spawnScreenOKButton = guiCreateButton ( 0.4, 0.85, 0.20, 0.15, "OK", true, Window ) GUIEditor.memo[1] = guiCreateMemo(17,79,414,246,"",false,Window) function () if ( source == GUIEditor.button[1] ) then ad = guiGetText(GUIEditor.edit[1]) guiSetText (GUIEditor.edit[1], "" ) triggerServerEvent( 'Add', getLocalPlayer(),ad) local getPlayer = getPlayerFromName(PlayerName) local Na = getPlayerName(getPlayer) local My = getPlayerMoney(getPlayer) local Ping = getPlayerPing(getPlayer) addEvent("aad",true) addEventHandler("aad",root, function (Account,acc,Player,Serial,acl) guiSetText(GUIEditor.memo[1],"\n Acls:"..PlayerAcls.."\n NameAccount :"..acc"\n NamePlayer :"..Na.."\n SerialPlayre :"..Serial.."\n Money :"..My.."\nPing :"..Ping) سيرفر addEvent("add",true) addEventHandler("add", root, function (ad) local Account = getPlayerAccount(Player) if (account) and not (isGuestAccount(account)) then local acc = getAccountName(Playeracc) local Player = getPlayerFromName(PlayerName) local Serial = getPlayerSerial(player) local acl = getPlayerAcls(Player) tostring( table.concat(acl, ", ") ) triggerClientEvent (playerSource, "aad" ,Account,acc,Player,Serial,acl) لم تمت التجربه Link to comment
N3xT Posted July 2, 2016 Share Posted July 2, 2016 ما هذا يا رجل أنت حطمت الرقم القياسي بأسوء أكواد برمجة بالمنتدى كله , كل شغلك حويس بحويس وغلط بغلط Link to comment
MR.GRAND Posted July 2, 2016 Share Posted July 2, 2016 كلنت function () -- فنكشن if ( source == GUIEditor.button[1] ) then -- تحقق ad = guiGetText(GUIEditor.edit[1]) -- يجيب الكلام المكتوب guiSetText (GUIEditor.edit[1], "" ) -- يحط الكلام نص فارغ triggerServerEvent( 'Add', getLocalPlayer(),ad) -- وش الفايدة من ارسال نص فارغ : \ end end Link to comment
Wleed1998 Posted July 2, 2016 Author Share Posted July 2, 2016 ما هذا يا رجلأنت حطمت الرقم القياسي بأسوء أكواد برمجة بالمنتدى كله , كل شغلك حويس بحويس وغلط بغلط طيب وش الاغلط الوحه ترى صمممته من الوكي بس نسيت الاديت Link to comment
Wleed1998 Posted July 2, 2016 Author Share Posted July 2, 2016 ما هذا يا رجلأنت حطمت الرقم القياسي بأسوء أكواد برمجة بالمنتدى كله , كل شغلك حويس بحويس وغلط بغلط GUIEditor = { memo = {}, button = {}, edit = {}, window = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(234, 146, 296, 356, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(77, 93, 171, 31, "", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(73, 39, 175, 30, "", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(21, 176, 261, 167, "", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) end ) addEventHandler("onClientGUIClick",root,function () function () local Player = getPlayerFromName(PlayerName) local Name = getPlayerName(Player) local My = getPlayerMoney(Player) if ( source == GUIEditor.button[1] ) then ad = guiGetText(GUIEditor.edit[1]) guiSetText (GUIEditor.edit[1], "" ) triggerServerEvent( 'Add',localPlayer,Player,Name,My) end end ) addEvent("aad",true) addEventHandler("aad",root, function (Account,acc,Player,Serial,acl) guiSetText(GUIEditor.memo[1],"\n Acls:"..PlayerAcls.."\n NameAccount :"..acc.."\n NamePlayer :"..Name.."\n SerialPlayre :"..Serial.."\n Money :"..My.."\nPing :"..Ping) end ) addEvent("add",true) addEventHandler("add", root, function (Player,Name,My) if Name and Name ~= "" then local Account = getPlayerAccount(Player) if (account) and not (isGuestAccount(account)) then local acc = getAccountName(Playeracc) local Player = getPlayerFromName(PlayerName) local Serial = getPlayerSerial(player) local acl = getPlayerAcls(Player) tostring( table.concat(acl, ", ") ) triggerClientEvent (source, "aad" ,Account,acc,Player,Serial,acl) end end ) Link to comment
Wleed1998 Posted July 2, 2016 Author Share Posted July 2, 2016 ما هذا يا رجلأنت حطمت الرقم القياسي بأسوء أكواد برمجة بالمنتدى كله , كل شغلك حويس بحويس وغلط بغلط GUIEditor = { memo = {}, button = {}, edit = {}, window = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(234, 146, 296, 356, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(77, 93, 171, 31, "", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(73, 39, 175, 30, "", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(21, 176, 261, 167, "", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) end ) addEventHandler("onClientGUIClick",root,function () function () local Player = getPlayerFromName(PlayerName) local Name = getPlayerName(Player) local My = getPlayerMoney(Player) if ( source == GUIEditor.button[1] ) then ad = guiGetText(GUIEditor.edit[1]) guiSetText (GUIEditor.edit[1], "" ) triggerServerEvent( 'Add',localPlayer,Player,Name,My) end end ) addEvent("aad",true) addEventHandler("aad",root, function (Account,acc,Player,Serial,acl) guiSetText(GUIEditor.memo[1],"\n Acls:"..PlayerAcls.."\n NameAccount :"..acc.."\n NamePlayer :"..Name.."\n SerialPlayre :"..Serial.."\n Money :"..My.."\nPing :"..Ping) end ) addEvent("add",true) addEventHandler("add", root, function (Player,Name,My) if Name and Name ~= "" then local Account = getPlayerAccount(Player) if (account) and not (isGuestAccount(account)) then local acc = getAccountName(Playeracc) local Player = getPlayerFromName(PlayerName) local Serial = getPlayerSerial(player) local acl = getPlayerAcls(Player) tostring( table.concat(acl, ", ") ) triggerClientEvent (source, "aad" ,Account,acc,Player,Serial,acl) end end ) الاكواد صح ولا لا يجمآعه توني جاي بروب بجربها ارجوء الرد Link to comment
Wleed1998 Posted July 2, 2016 Author Share Posted July 2, 2016 طبعاً غلط كله ولا بعضه ولا وش ي اخوي علمني وش اسوي وش ابدل مثل Link to comment
#|_oskar_|# Posted July 2, 2016 Share Posted July 2, 2016 اكتب ب اف 8 debugscript 3 واعرفالاخطاء وين واي سطر Link to comment
Wleed1998 Posted July 2, 2016 Author Share Posted July 2, 2016 اكتب ب اف 8debugscript 3 واعرفالاخطاء وين واي سطر طيب سويت كل شيء وظهرت الوحه لكن لم اكتب اسم حساب الاعب في الاديت مايظهر شيء بي الميمو كلنت : GUIEditor = { memo = {}, button = {}, edit = {}, window = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(234, 146, 296, 356, "لوحة معلومات الاعبين", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(77, 93, 171, 31, "اظهآر معلومات الحساب", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(73, 39, 175, 30, "", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(21, 176, 261, 167, "", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) end ) addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[1] ) then local ei1 = guiGetText(GUIEditor.edit[1]) if ed1 then guiSetText (GUIEditor.edit[1], "" ) triggerServerEvent( 'Add',localPlayer,Player,Name,My) end end end ) addEvent("aad",true) addEventHandler("aad",root, function (Account,acc,Player,Serial,acl) local Name = getPlayerName(Player) local My = getPlayerMoney(Player) local Ping = getPlayerPing(Player) guiSetText(GUIEditor.memo[1],"\n Acls:"..PlayerAcls.."\n NameAccount :"..acc.."\n NamePlayer :"..Name.."\n SerialPlayre :"..Serial.."\n Money :"..My.."\nPing :"..Ping) end ) سيرفر addEvent("add",true) addEventHandler("add", root, function (Player,Name,My) if acc and acc ~= "" then local acc = getAccountName(Playeracc) local Account = getPlayerAccount(Player) if (account) and not (isGuestAccount(account)) then local N1 = getPlayerFromName(PlayerName) local Serial = getPlayerSerial(player) local acl = getPlayerAcls(Player) tostring( table.concat(acl, ", ") ) triggerClientEvent (source, "aad" ,Account,acc,Player,Serial,acl) end end end ) Link to comment
#|_oskar_|# Posted July 2, 2016 Share Posted July 2, 2016 getPlayerAcls وين اليوسفل حقه ؟ Link to comment
Wleed1998 Posted July 2, 2016 Author Share Posted July 2, 2016 getPlayerAcls وين اليوسفل حقه ؟ وش قصدك Link to comment
Wleed1998 Posted July 2, 2016 Author Share Posted July 2, 2016 getPlayerAcls وين اليوسفل حقه ؟ وش قصدك قصدك ذا local acl = getPlayerAcls(Player) tostring( table.concat(acl, ", ") ) ابدل في الميمو guiSetText(GUIEditor.memo[1],"\n Acls:"..acl.."\n NameAccount :"..acc.."\n NamePlayer :"..Name.."\n SerialPlayre :"..Serial.."\n Money :"..My.."\nPing :"..Ping) 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