iMr.3a[Z]eF Posted June 6, 2013 Author Share Posted June 6, 2013 ايه سويت كل اللي طلبت مني برضه نفس المشكلة Link to comment
iPrestege Posted June 6, 2013 Share Posted June 6, 2013 تمام عندي اصلا بدون ماتشيلة من اول كود تأكد لا يكون فية مود ثاني .. Link to comment
iMr.3a[Z]eF Posted June 6, 2013 Author Share Posted June 6, 2013 #بيروح بعد دقايق ولآ نص الدقيقة Link to comment
فاّرس Posted June 6, 2013 Share Posted June 6, 2013 function rdx( message,getAdmin ) removeEventHandler("onClientRender", getRootElement(), dx) end function dx( ) dxDrawText("Admin : " .. getAdmin .. ":",13.0,167.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) dxDrawText(message,58.0,168.0,799.0,224.0,tocolor(255,255,255,255),1.0,"default-bold","left","top",false,false,false) addEventHandler("onClientRender", getRootElement(), dx) end addEvent("3azef", true ) addEventHandler("3azef", getRootElement(), rdx) bindKey("u", "down", "chatbox","Admin") خل الكود كذا احسن Link to comment
فاّرس Posted June 6, 2013 Share Posted June 6, 2013 local getAdmin = getPlayerName(localPlayer) function rdx(message) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin: "..getAdmin..":",13.0,167.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) dxDrawText(message,58.0,168.0,799.0,224.0,tocolor(255,255,255,255),1.0,"default-bold","left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), dx) end addEvent("3azef", true ) addEventHandler("3azef", getRootElement(), rdx) bindKey("u", "down", "chatbox","Admin") Edit # : 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 ( "abodi-only" ) ) then local veve = {...} local message = table.concat(veve, " ") triggerClientEvent("3azef", getRootElement(),message) end end addCommandHandler("Admin", check) Link to comment
فاّرس Posted June 6, 2013 Share Posted June 6, 2013 لول ؟ مجربه وشغآل 100% جرب طف سيرفرك وشغله... Link to comment
iMr.3a[Z]eF Posted June 6, 2013 Author Share Posted June 6, 2013 المشكلة بيروح الدي أكس والله Link to comment
فاّرس Posted June 6, 2013 Share Posted June 6, 2013 انسخ حقي زي ماهو لا تغير في الدي اكس وبإذن الله يشتغل, Link to comment
iMr.3a[Z]eF Posted June 6, 2013 Author Share Posted June 6, 2013 طيب زبط !!! معقولة أنا سويت زي كذا بدل الأول myFont = dxCreateFont( "3NAD.ttf", 20 ) dxDrawText("Admin " .. getAdmin .. ": #FFFFFF" .. message .. "",13.0,167.0,55.0,182.0,tocolor(255,0,0,255),1.0,myFont,"left","top", false, false, true, true, false) ويرووح الدي أكس في أقل من دقيقة Link to comment
فاّرس Posted June 6, 2013 Share Posted June 6, 2013 ^ انا يوم جربته طلع اخطاء كثير بالديبوق, وبعدين ما يحتاج تحط الاسم سيرفر وتنقله بالترايقر, خليه كلنت مره وحده , + اكوادي فوق مجربها وشغاله, لو في مشكله ضيفه بقروب الادمن وجرب, لو ما ضبط المشكله من عندك... Link to comment
iMr.3a[Z]eF Posted June 6, 2013 Author Share Posted June 6, 2013 أنا همي أحط خط جديد للدي أكس بس يخرب Link to comment
iMr.3a[Z]eF Posted June 6, 2013 Author Share Posted June 6, 2013 يب يروح الدي أكس في أقل من دقيقة Link to comment
فاّرس Posted June 6, 2013 Share Posted June 6, 2013 غلطآن انت انا مجربه كذآ , وشغال 100% local myFont = dxCreateFont( "3NAD.ttf", 20 ) local getAdmin = getPlayerName(localPlayer) function rdx(message) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin: "..getAdmin..":",13.0,167.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) dxDrawText(message,58.0,168.0,799.0,224.0,tocolor(255,255,255,255),1.0,myFont,"left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), dx) end addEvent("3azef", true ) addEventHandler("3azef", getRootElement(), rdx) bindKey("u", "down", "chatbox","Admin") Link to comment
فاّرس Posted June 6, 2013 Share Posted June 6, 2013 الكود مو شغال local getAdmin = getPlayerName(localPlayer) function rdx(message) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin: "..getAdmin..":",13.0,167.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) dxDrawText(message,58.0,168.0,799.0,224.0,tocolor(255,255,255,255),1.0,"default-bold","left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), dx) end addEvent("3azef", true ) addEventHandler("3azef", getRootElement(), rdx) bindKey("u", "down", "chatbox","Admin") Edit # : 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 ( "abodi-only" ) ) then local veve = {...} local message = table.concat(veve, " ") triggerClientEvent("3azef", getRootElement(),message) end end addCommandHandler("Admin", check) ؟ لول ؟ مجربه شغآل 100%, وش قصتكم Link to comment
فاّرس Posted June 6, 2013 Share Posted June 6, 2013 (edited) جرب ضيفه لقروب الادمن؟ وجرب كذآ , لازم تكون بقروب كونسل او ادمن او عبودي اونلي !! Client : local getAdmin = getPlayerName(localPlayer) function rdx(message) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin: "..getAdmin..":",13.0,167.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) dxDrawText(tostring(message),58.0,168.0,799.0,224.0,tocolor(255,255,255,255),1.0,"default-bold","left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), dx) end addEvent("3azef", true ) addEventHandler("3azef", getRootElement(), rdx) bindKey("u", "down", "chatbox","Admin") 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 ( "abodi-only" ) ) then local veve = {...} local message = table.concat(veve, " ") triggerClientEvent("3azef", getRootElement(),message) end end addCommandHandler("Admin", check) Edited June 6, 2013 by Guest Link to comment
فاّرس Posted June 6, 2013 Share Posted June 6, 2013 اوك مشكوووووووووور احلي بوسة للفنان ذا بست العفوا, ويآريت تجرب وترد لي خبر ي حلو... Link to comment
فاّرس Posted June 6, 2013 Share Posted June 6, 2013 ما يصلح تحط في اسم المود مسافات... Link to comment
فاّرس Posted June 6, 2013 Share Posted June 6, 2013 بضغط حرف uماتظهر شيء الي يحتاج تعديل احداثيات الكلام... Link to comment
فاّرس Posted June 6, 2013 Share Posted June 6, 2013 ياخي شغآل عندي؟ تاكد انك بقروب Admin or Console or abodi-only ? واذا ما اشتغل المشكله من عندكم ._. Link to comment
iMr.Dawix~# Posted June 6, 2013 Share Posted June 6, 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