d43dr4 Posted December 22, 2012 Share Posted December 22, 2012 (edited) السلام عليكم و رحمة الله تعالى و بركاته شباب سويت كود مشان اي ادمن يجي قبله شعار كانه تاغ ، مثل حق حرب العصابات تجي [Gta-Ar] قبل اسم الادمن مشان كذا حاولت اسويه و ذا اللي قدرت عليه ( تراني مقتبس شوي من التاغ العادي ) local root = getRootElement() function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() if hasObjectPermissionTo( player, "general.adminpanel", false ) then outputChatBox("#FF0000x[M.H] #FFFFFF#ffffff" .. name .. ":#919191 " .. text, root, 255, 255, 255, true) end addEventHandler("onPlayerChat", root, chatbox) بلييز ممكن الحل و شكرا ^^ Edited December 22, 2012 by Guest Link to comment
AhmadQTR Posted December 22, 2012 Share Posted December 22, 2012 function chatbox(text, msgtype) local name = getPlayerName(source) if hasObjectPermissionTo( source, "general.adminpanel", false ) then outputChatBox("#FF0000x[M.H] #FFFFFF#ffffff" .. name .. ":#919191 " .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", root, chatbox) Link to comment
d43dr4 Posted December 22, 2012 Author Share Posted December 22, 2012 شكرا بس فيه مشكل الحين صار يكرر الكلام وشو الحل ؟ Link to comment
abu5lf Posted December 22, 2012 Share Posted December 22, 2012 شكرابس فيه مشكل الحين صار يكرر الكلام وشو الحل ؟ onPlayerChat - انت مكرر الايفينت في مود ثاني Link to comment
|Mr|-Talal07-| Posted December 22, 2012 Share Posted December 22, 2012 جرب ذا addEventHandler("onPlayerChat",root, function (msg,type) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) and type == 0 then local name = getPlayerName(source) cancelEvent() outputChatBox("#FF0000x[M.H] #FFFFFF#ffffff" .. name .. ":#919191 ",root,255,0,0,true) end end ) Link to comment
d43dr4 Posted December 22, 2012 Author Share Posted December 22, 2012 لا مو شغال ذا الثاني سويته كذا صار ما يكرر لكن المشكل اللي مو ادمن ما يقدر يتكلم function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() --- هنا الاضافة if hasObjectPermissionTo( source, "general.adminpanel", false ) then outputChatBox("#FF0000x[M.H] #FFFFFF#ffffff" .. name .. ":#919191 " .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", root, chatbox) Link to comment
abu5lf Posted December 22, 2012 Share Posted December 22, 2012 function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() --- هنا الاضافة if hasObjectPermissionTo( source, "general.adminpanel", false ) then outputChatBox("#FF0000x[M.H] #FFFFFF#ffffff" .. name .. ":#919191 " .. text, root, 255, 255, 255, true) else outputChatBox("#FF0000#FFFFFF#ffffff" .. name .. ":#919191 " .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", root, chatbox) جرب Link to comment
|Mr|-Talal07-| Posted December 22, 2012 Share Posted December 22, 2012 جرب ذا function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent() --- هنا الاضافة if hasObjectPermissionTo( source, "general.adminpanel", false ) then outputChatBox("#FF0000x[M.H] #FFFFFF#ffffff" .. name .. ":#919191 " .. text, root, 255, 255, 255, true) else outputChatBox("" .. name .. ": " .. text,root,255,0,0,true) end end addEventHandler("onPlayerChat", root, chatbox) Link to comment
d43dr4 Posted December 22, 2012 Author Share Posted December 22, 2012 كفؤؤؤؤؤؤؤ طلال بارك الله فيك شكرا لكم شباب Link to comment
|Mr|-Talal07-| Posted December 22, 2012 Share Posted December 22, 2012 كفؤؤؤؤؤؤؤ طلال بارك الله فيكشكرا لكم شباب العفوو Link to comment
AhmadQTR Posted December 22, 2012 Share Posted December 22, 2012 كفؤؤؤؤؤؤؤ طلال بارك الله فيكشكرا لكم شباب العفوو Link to comment
abu5lf Posted December 22, 2012 Share Posted December 22, 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