d43dr4 Posted December 16, 2012 Share Posted December 16, 2012 السلام عليكم و رحمة الله تعالى و بركاته شباب كثرت عليكم شوي المهم ، ابيكم تضيفون شيء في سكربت العاجل حق سورا --[[ Admin Message Script Fixed by |S.s|SoRa visit us : [url=http://www.gta-arab.com]www.gta-arab.com[/url] --]] function rdx(message) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin :",13.0,189.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) dxDrawText(message,58.0,189.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("sora", true ) addEventHandler("sora", getRootElement(), rdx) bindKey("u", "down", "chatbox","AM") هي في الاصل تجي ادمن حمراء ، و انا ابيها يجي بعد ادمن اسم اللي كتب هناك حاولت كثير و ما عرفت كل مرة اخرب السكربت بسبب التخريب ولعب الاطفال ( انا فلان و انا غبي ومدري وش ) ، اففف المهم اتمنى انكم فهمتم قصدي Link to comment
abu5lf Posted December 16, 2012 Share Posted December 16, 2012 getPlayerName - استخدم هذي Link to comment
d43dr4 Posted December 16, 2012 Author Share Posted December 16, 2012 استخدمتها و خربت السكربت خخخخخخخ ممكن تصلح الكود ياخي Link to comment
abu5lf Posted December 16, 2012 Share Posted December 16, 2012 استخدمتها و خربت السكربتخخخخخخخ ممكن تصلح الكود ياخي ورني وش سويت Link to comment
d43dr4 Posted December 16, 2012 Author Share Posted December 16, 2012 --[[ Admin Message Script Fixed by |S.s|SoRa visit us : [url=http://www.gta-arab.com]www.gta-arab.com[/url] --]] function rdx(message) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin : ( getPlayerName ( player ) "#ffffff[ .. PlayerName .. ]"",13.0,189.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) dxDrawText(message,58.0,189.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("sora", true ) addEventHandler("sora", getRootElement(), rdx) bindKey("u", "down", "chatbox","AM") Link to comment
abu5lf Posted December 16, 2012 Share Posted December 16, 2012 --[[ Admin Message Script Fixed by |S.s|SoRa visit us : [url=http://www.gta-arab.com]http://www.gta-arab.com[/url] --]] function rdx(message) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin :" .. getPlayerName( localPlayer ),13.0,189.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) dxDrawText(message,58.0,189.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("sora", true ) addEventHandler("sora", getRootElement(), rdx) bindKey("u", "down", "chatbox","AM") جرب Link to comment
d43dr4 Posted December 16, 2012 Author Share Posted December 16, 2012 كفووو بارك الله فيك عاشق الشرق ^^ Link to comment
d43dr4 Posted December 16, 2012 Author Share Posted December 16, 2012 طلب ثاني ، وش الخطوط اللي اقدر استعملها مكان default-bold Link to comment
iPrestege Posted December 16, 2012 Share Posted December 16, 2012 font: Either a custom DX font element or the name of a built-in DX font: "default": Tahoma "default-bold": Tahoma Bold "clear": Verdana "arial": Arial "sans": Microsoft Sans Serif "pricedown": Pricedown (GTA's theme text) "bankgothic": Bank Gothic Medium "diploma": Diploma Regular "beckett": Beckett Regular Link to comment
./BlackBird# Posted December 16, 2012 Share Posted December 16, 2012 https://wiki.multitheftauto.com/wiki/Sta ... Font_Names Link to comment
d43dr4 Posted December 16, 2012 Author Share Posted December 16, 2012 العاشق ، مشكل اخر عند كل واحد يجي اسمه اننا ابيها يجي عند الكل اسم اللاعب الل كتبها بس Link to comment
abu5lf Posted December 16, 2012 Share Posted December 16, 2012 العاشق ، مشكل اخرعند كل واحد يجي اسمه اننا ابيها يجي عند الكل اسم اللاعب الل كتبها بس ورني الكود السيرفر والكلنت Link to comment
d43dr4 Posted December 16, 2012 Author Share Posted December 16, 2012 Client side : --[[ Admin Message Script Fixed by |S.s|SoRa visit us : [url=http://www.gta-arab.com]http://www.gta-arab.com[/url] --]] function rdx(message) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin :" .. getPlayerName( localPlayer ),13.0,189.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) dxDrawText(message,58.0,189.0,799.0,224.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), dx) end addEvent("sora", true ) addEventHandler("sora", getRootElement(), rdx) bindKey("u", "down", "chatbox","AM") Server side : --[[ Admin Message Script Fixed by |S.s|SoRa visit us : [url=http://www.gta-arab.com]www.gta-arab.com[/url] --]] function check(thePlayer, commandName,...) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) then local veve = {...} local message = table.concat(veve, " ") triggerClientEvent("sora", getRootElement(),message) elseif isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then local veve = {...} local message = table.concat(veve, " ") triggerClientEvent("sora", getRootElement(),message) elseif isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Big.Admin" ) ) then local veve = {...} local message = table.concat(veve, " ") triggerClientEvent("sora", getRootElement(),message) end end addCommandHandler("AM", check) مع العلم السكربت كان شغال بشكل ممتاز الحين كل واحد يجي اسمه مو اسم اللي كتب Link to comment
./BlackBird# Posted December 16, 2012 Share Posted December 16, 2012 --[[ Admin Message Script Fixed by |S.s|SoRa visit us : [url=http://www.gta-arab.com]http://www.gta-arab.com[/url] --]] function check(thePlayer, commandName,...) player = getPlayerName(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) then local veve = {...} local message = table.concat(veve, " ") triggerClientEvent("sora", getRootElement(),message,player) elseif isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then local veve = {...} local message = table.concat(veve, " ") triggerClientEvent("sora", getRootElement(),message,player) elseif isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Big.Admin" ) ) then local veve = {...} local message = table.concat(veve, " ") triggerClientEvent("sora", getRootElement(),message,player) end end addCommandHandler("AM", check) --[[ Admin Message Script Fixed by |S.s|SoRa visit us : [url=http://www.gta-arab.com]http://www.gta-arab.com[/url] --]] function rdx(message,player) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText(player,13.0,189.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) dxDrawText(message,58.0,189.0,799.0,224.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), dx) end addEvent("sora", true ) addEventHandler("sora", getRootElement(), rdx) bindKey("u", "down", "chatbox","AM") Link to comment
abu5lf Posted December 16, 2012 Share Posted December 16, 2012 Client side : --[[ Admin Message Script Fixed by |S.s|SoRa visit us : [url=http://www.gta-arab.com]http://www.gta-arab.com[/url] --]] function rdx(message, Name) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin :" .. Name,13.0,189.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) dxDrawText(message,58.0,189.0,799.0,224.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) end addEventHandler("onClientRender", getRootElement(), dx) end addEvent("sora", true ) addEventHandler("sora", getRootElement(), rdx) bindKey("u", "down", "chatbox","AM") [/lua] + ServerSide addCommandHandler( 'AM', function( playerSource, commandName, ... ) if ( hasObjectPermissionTo ( playerSource, 'general.adminpanel', true ) ) then triggerClientEvent( 'sora', getRootElement( ), table.concat( {...}, ' '), getPlayerName( playerSource ) ) end end ) Link to comment
d43dr4 Posted December 16, 2012 Author Share Posted December 16, 2012 شكرا ي حلوين ^^ 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