xTeacherx Posted March 24, 2012 Share Posted March 24, 2012 السلام عليكم ورحمة الله وبركاته :~ الكود : function outputMessage(text) outputChatBox ("Admin :"..text, 155, 50, 255, true ) --output that text end addEvent("ServerOutput",true) addEventHandler("ServerOutput", getRootElement(),outputMessage) مشكلتي انو حطيت كذا كود لي اسم الادمن وماجا :~ هاذا الكود الاصلي وابي اذا تكلمت يجي بدل كلمة ( admin ) اسم اللي تكلم وربي تعبت وانا احاااول مساعدتكم ياعرب Link to comment
TAPL Posted March 24, 2012 Share Posted March 24, 2012 function outputMessage(text) for _,v in ipairs(getElementsByType("player")) do if hasObjectPermissionTo(v,"general.adminpanel",false) then outputChatBox(getPlayerName(source)..":"..text,v,155,50,255,true) end end end addEvent("ServerOutput",true) addEventHandler("ServerOutput",root,outputMessage) Link to comment
faisl2002 Posted March 24, 2012 Share Posted March 24, 2012 والله قبل مااضغط اضافة المشاركة ماكان في اي رد دايم تسبق ياتابل هذا دليل على حرصك ماشاء الله عليك كفوؤو Link to comment
xTeacherx Posted March 24, 2012 Author Share Posted March 24, 2012 لا مو التاج يا صاحب Link to comment
X-SHADOW Posted March 24, 2012 Share Posted March 24, 2012 اتوقع تقصد الادمن يكتب كلام بالشات زي مثلا انا ادمن اكتب مرحبآ يطلع للجميع بالشات الادمن قال : مرحبآ زي كذا قصدك ؟ Link to comment
xTeacherx Posted March 25, 2012 Author Share Posted March 25, 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