Stranger Posted June 7, 2013 Share Posted June 7, 2013 السلام عليكم شباب الحين الكود ذا المفروض يجيب اسم الي كتب تحت لكل الاعبين , بس لا , اذا انا كتبت , كل واحد يشوف اسمه , المفروض يبان اسمي لكل الاعبين بس لا كل لاعب يشوف اسمه اذا انا كتبت local getAdmin = getPlayerName(localPlayer) function rdx(message) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin: "..getAdmin..":",4,215,42,15,tocolor(255,255,0,255),1.12,"default-bold","left","top",false,false,false) dxDrawText(tostring(message),197, 215, 925, 256,tocolor(255,255,255,255),1.12,"default-bold","left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), dx) end addEvent(Manster", true ) addEventHandler("Manster", getRootElement(), rdx) bindKey("o", "down", "chatbox","Admin") Link to comment
3NAD Posted June 7, 2013 Share Posted June 7, 2013 local getAdmin = getPlayerName(localPlayer) انت قاعد تجيب اسم اللاعب نفسه سو تحويل من سيرفر Link to comment
Stranger Posted June 7, 2013 Author Share Posted June 7, 2013 local getAdmin = getPlayerName(localPlayer) انت قاعد تجيب اسم اللاعب نفسه سو تحويل من سيرفر كيف يعني؟ Link to comment
#DRAGON!FIRE Posted June 7, 2013 Share Posted June 7, 2013 زي ما قلك عنأد سوي تريقر للسيرفر والفنكشنات المطلوبة # لقروب محدد isObjectInACLGroup وجيب اسم اللاعب # هو بكون في القروب . ! Link to comment
Stranger Posted June 7, 2013 Author Share Posted June 7, 2013 هذا السيرفر + فيه تريقر function check(thePlayer, commandName,...) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Head Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Manster" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Danger" ) ) then local veve = {...} local message = table.concat(veve, " ") triggerClientEvent("Manster", getRootElement(),message) end end addCommandHandler("Admin", check) Link to comment
#DRAGON!FIRE Posted June 7, 2013 Share Posted June 7, 2013 (edited) function rdx(message) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin: "..ZA7F..":",4,215,42,15,tocolor(255,255,0,255),1.12,"default-bold","left","top",false,false,false) dxDrawText(tostring(message),197,215,925,256,tocolor(255,255,255,255),1.12,"defaultbold","left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), dx) end addEvent("Manster", true ) addEventHandler("Manster", getRootElement(), rdx) bindKey("o", "down", "chatbox","Admin") function check(thePlayer, commandName,...) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Big.admin" ) ) then local veve = {...} local message = table.concat(veve, " ") local ZA7F = "..getPlayerName(playerSource).." triggerClientEvent("Manster", getRootElement(),message) end end addCommandHandler("Admin", check) علا ما أعتقد كذا جرب و رد لي خبر Edited June 7, 2013 by Guest Link to comment
New programmer Posted June 7, 2013 Share Posted June 7, 2013 (edited) function rdx(message) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin: "..ZA7F..":",4,215,42,15,tocolor(255,255,0,255),1.12,"default-bold","left","top",false,false,false) dxDrawText(tostring(message),197,215,925,256,tocolor(255,255,255,255),1.12,"defaultbold","left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), dx) end addEvent(Manster", true ) addEventHandler("Manster", getRootElement(), rdx) bindKey("o", "down", "chatbox","Admin") function check(thePlayer, commandName,...) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Big.admin" ) ) then local veve = {...} local message = table.concat(veve, " ") local ZA7F = "..getPlayerName(playerSource).." triggerClientEvent("Manster", getRootElement(),message) end end addCommandHandler("Admin", check) علا ما أعتقد كذا جرب و رد لي خبر wrong ------------------------------- server function check(thePlayer, commandName,...) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Head Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Manster" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Danger" ) ) then local veve = {...} local message = table.concat(veve, " ") local getAdmin = getPlayerName(thePlayer) triggerClientEvent("Manster", getRootElement(),message,getAdmin) end end addCommandHandler("Admin", check) client function rdx(message,name) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin: "..name..":",4,215,42,15,tocolor(255,255,0,255),1.12,"default-bold","left","top",false,false,false) dxDrawText(tostring(message),197, 215, 925, 256,tocolor(255,255,255,255),1.12,"default-bold","left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), dx) end addEvent("Manster", true ) addEventHandler("Manster", getRootElement(), rdx) bindKey("o", "down", "chatbox","Admin") Edited June 7, 2013 by Guest Link to comment
iMr.Dawix~# Posted June 7, 2013 Share Posted June 7, 2013 Client Side: function rdx(message,getAdmin) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin: "..getAdmin..":",4,215,42,15,tocolor(255,255,0,255),1.12,"default-bold","left","top",false,false,false) dxDrawText(tostring(message),197, 215, 925, 256,tocolor(255,255,255,255),1.12,"default-bold","left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), dx) end addEvent("Manster", true ) addEventHandler("Manster", getRootElement(), rdx) bindKey("o", "down", "chatbox","Admin") Server Side : function check(thePlayer, commandName,...) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Head Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Manster" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Danger" ) ) then local veve = {...} local message = table.concat(veve, " ") triggerClientEvent("Manster",root,message,getPlayerName(thePlayer)) end end addCommandHandler("Admin", check) ياالي فوق ترا كلكم غلطتوا في سطر11 Link to comment
#DRAGON!FIRE Posted June 7, 2013 Share Posted June 7, 2013 ضاوي انت متحقق من البلاير وقت التريقر بس منت حاتطه في كلنت الاسم يعني Link to comment
New programmer Posted June 7, 2013 Share Posted June 7, 2013 Client Side: function rdx(message,getAdmin) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin: "..getAdmin..":",4,215,42,15,tocolor(255,255,0,255),1.12,"default-bold","left","top",false,false,false) dxDrawText(tostring(message),197, 215, 925, 256,tocolor(255,255,255,255),1.12,"default-bold","left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), dx) end addEvent("Manster", true ) addEventHandler("Manster", getRootElement(), rdx) bindKey("o", "down", "chatbox","Admin") Server Side : function check(thePlayer, commandName,...) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Head Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Manster" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Danger" ) ) then local veve = {...} local message = table.concat(veve, " ") triggerClientEvent("Manster",root,message,getPlayerName(thePlayer)) end end addCommandHandler("Admin", check) ياالي فوق ترا كلكم غلطتوا في سطر11 شكرا مالك المووضوع قم بتجربت كودي الأن Link to comment
Stranger Posted June 7, 2013 Author Share Posted June 7, 2013 Client Side: function rdx(message,getAdmin) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin: "..getAdmin..":",4,215,42,15,tocolor(255,255,0,255),1.12,"default-bold","left","top",false,false,false) dxDrawText(tostring(message),197, 215, 925, 256,tocolor(255,255,255,255),1.12,"default-bold","left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), dx) end addEvent("Manster", true ) addEventHandler("Manster", getRootElement(), rdx) bindKey("o", "down", "chatbox","Admin") Server Side : function check(thePlayer, commandName,...) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Head Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Manster" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Danger" ) ) then local veve = {...} local message = table.concat(veve, " ") triggerClientEvent("Manster",root,message,getPlayerName(thePlayer)) end end addCommandHandler("Admin", check) ياالي فوق ترا كلكم غلطتوا في سطر11 مشكور يا داوي Link to comment
iMr.Dawix~# Posted June 7, 2013 Share Posted June 7, 2013 مشكور يا داوي العفوو ضاوي انت متحقق من البلاير وقت التريقر بس منت حاتطه في كلنت الاسم يعني ما تختلف اقدر اضيفه بالكلنت بأي اسم بس اهم شيء مكانه Link to comment
#DRAGON!FIRE Posted June 7, 2013 Share Posted June 7, 2013 مشكور يا داوي العفوو ضاوي انت متحقق من البلاير وقت التريقر بس منت حاتطه في كلنت الاسم يعني ما تختلف اقدر اضيفه بالكلنت بأي اسم بس اهم شيء مكانه # أهــأ مششكور على الأفأدة Link to comment
iMr.Dawix~# Posted June 7, 2013 Share Posted June 7, 2013 مشكور يا داوي العفوو ضاوي انت متحقق من البلاير وقت التريقر بس منت حاتطه في كلنت الاسم يعني ما تختلف اقدر اضيفه بالكلنت بأي اسم بس اهم شيء مكانه # أهــأ مششكور على الأفأدة العفووو تو :] 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