S4MuEL Posted July 4, 2013 Share Posted July 4, 2013 آلسسلآم عليكم , حبيت آعرف كيف آسوي ChatBox لـ الأدمنية .. توضيح : مود تآبل يلي بـ حرب آلعصآبآت ، إذآ آنت منضم بـ قروب يمديكـ تتكلم مع أعضآء آلقروب بـ حرف هـ بس آنآ آبغى آلحركة ع آلأدمنية ! ^ + آلتيمآت ، آدري آن آلشآت بوكس موجود ، بس الفنكشنآت مطلوبة وآلله يقويكم <3 Link to comment
فاّرس Posted July 4, 2013 Share Posted July 4, 2013 isObjectInACLGroup aclGetGroup getPlayerAccount getAccountName table.concat triggerClientEvent bindKey addEvent addEventHandler Link to comment
S4MuEL Posted July 4, 2013 Author Share Posted July 4, 2013 آلكل فآهمهم ^ بس table.concat جديدة علي .. ممكن مثآل آللهه لآ يهيـنكـ ؟ ! Link to comment
./BlackBird# Posted July 4, 2013 Share Posted July 4, 2013 الي تحتاجه bindKey getElementsByType getPlayerAccount getAccountName isObjectInACLGroup aclGetGroup outputChatBox Link to comment
فاّرس Posted July 4, 2013 Share Posted July 4, 2013 آلكل فآهمهم ^بس table.concat جديدة علي .. ممكن مثآل آللهه لآ يهيـنكـ ؟ ! هذي تدمج السلسله , Link to comment
فاّرس Posted July 4, 2013 Share Posted July 4, 2013 (edited) function () local arg = {...} local message = table.concat(arg, " ") triggerClientEvent("Chat",root,message) end function MSG(message) dxDrawText(message,40,180.123,800.23,21.82,tocolor(255,255,255,255),1.0,"default-bold","left","top",false,false,false) end addEventHandler("onClientRender",root,MSG) addEvent("Chat",true) addEventHandler("Chat",root,MSG) bindKey("i", "down", "chatbox","Players") ^ مو مجرب , Edited July 4, 2013 by Guest Link to comment
iMr.3a[Z]eF Posted July 4, 2013 Share Posted July 4, 2013 function rdx(message) removeEventHandler ( "onClientRender", getRootElement(), dx ) function dx() dxDrawText("Admin :",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("Sora", true ) addEventHandler("Sora", getRootElement(), rdx) bindKey("u", "down", "chatbox","Admin") function check(thePlayer, commandName,...) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then local veve = {...} local message = table.concat(veve, " ") triggerClientEvent("Sora", getRootElement(),message) end end addCommandHandler("Admin", check) مثال للمود العاجل حق سورا Link to comment
./BlackBird# Posted July 4, 2013 Share Posted July 4, 2013 جرب ذذ addCommandHandler("Admins", function (player,cmd,text) if text then local accName = getAccountName ( getPlayerAccount ( player) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then for _,v in ipairs(getElementsByType("player")) do local account= getAccountName ( getPlayerAccount ( v) ) if isObjectInACLGroup ("user."..account, aclGetGroup ( "Admin" ) ) then outputChatBox(getPlayerName(player)..":"..text,v) end end end end end) addEventHandler("onResourceStart",resourceRoot, function () for _,v in ipairs(getElementsByType("player")) do bindKey(v,"u","down","chatbox","Admins") end end) Link to comment
فاّرس Posted July 4, 2013 Share Posted July 4, 2013 جرب ذذ addCommandHandler("Admins", function (player,cmd,text) if text then local accName = getAccountName ( getPlayerAccount ( player) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then for _,v in ipairs(getElementsByType("player")) do local account= getAccountName ( getPlayerAccount ( v) ) if isObjectInACLGroup ("user."..account, aclGetGroup ( "Admin" ) ) then outputChatBox(getPlayerName(player)..":"..text,v) end end end end end) addEventHandler("onResourceStart",resourceRoot, function () for _,v in ipairs(getElementsByType("player")) do bindKey(v,"u","down","chatbox","Admins") end end) تخبيص تايم , Link to comment
iMr.3a[Z]eF Posted July 4, 2013 Share Posted July 4, 2013 جرب ذذ addCommandHandler("Admins", function (player,cmd,text) if text then local accName = getAccountName ( getPlayerAccount ( player) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then for _,v in ipairs(getElementsByType("player")) do local account= getAccountName ( getPlayerAccount ( v) ) if isObjectInACLGroup ("user."..account, aclGetGroup ( "Admin" ) ) then outputChatBox(getPlayerName(player)..":"..text,v) end end end end end) addEventHandler("onResourceStart",resourceRoot, function () for _,v in ipairs(getElementsByType("player")) do bindKey(v,"u","down","chatbox","Admins") end end) ههههههههههههه هذا كله عشان الأوت بوت شات ذذذ,, Link to comment
S4MuEL Posted July 4, 2013 Author Share Posted July 4, 2013 فشلت من ورآ آلـ table concat خلآص يعطيكم آلعآفيةة .. Link to comment
./BlackBird# Posted July 4, 2013 Share Posted July 4, 2013 جرب ذذ addCommandHandler("Admins", function (player,cmd,text) if text then local accName = getAccountName ( getPlayerAccount ( player) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then for _,v in ipairs(getElementsByType("player")) do local account= getAccountName ( getPlayerAccount ( v) ) if isObjectInACLGroup ("user."..account, aclGetGroup ( "Admin" ) ) then outputChatBox(getPlayerName(player)..":"..text,v) end end end end end) addEventHandler("onResourceStart",resourceRoot, function () for _,v in ipairs(getElementsByType("player")) do bindKey(v,"u","down","chatbox","Admins") end end) ههههههههههههه هذا كله عشان الأوت بوت شات ذذذ,, اول شي هذا يتحقق اذا كان ادمن بعدين يجيب كل الاعبين و يجيب الادمنين منهم بعدين يطلع الكلام الي كتبه الاعب طيب ورنا كودكك # Link to comment
3NAD Posted July 4, 2013 Share Posted July 4, 2013 addCommandHandler ( "Admins", function ( player, cmd, text ) if text then local playerAccount = getPlayerAccount ( player ) if playerAccount and not isGuestAccount ( playerAccount ) then if isObjectInACLGroup ( "user."..getAccountName ( playerAccount ), aclGetGroup ( "Admin" ) ) then for _, v in ipairs ( getElementsByType ( "player" ) ) do local playersAccount = getPlayerAccount ( v ) if playersAccount and not isGuestAccount ( playersAccount ) then if isObjectInACLGroup ( "user."..getAccountName ( playersAccount ), aclGetGroup ( "Admin" ) ) then outputChatBox ( getPlayerName ( player )..": "..text, v ) end end end end end end end ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, "u", "down", "chatbox", "Admins" ) end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "u", "down", "chatbox", "Admins" ) end ) Link to comment
S4MuEL Posted July 4, 2013 Author Share Posted July 4, 2013 مآ آبغى آلكود .. آبي آفهم table.concat Link to comment
iPrestege Posted July 4, 2013 Share Posted July 4, 2013 مالها داعي بس ذا بست مدري لية حطها ؟ تقدر تسويها كذا بسيطة مثل 3NAD < > Link to comment
فاّرس Posted July 4, 2013 Share Posted July 4, 2013 (edited) مالها داعي بس ذا بست مدري لية حطها ؟تقدر تسويها كذا بسيطة مثل 3NAD < > كيف مالها داعي؟ بكذا اظن ما بتطلع الا اول كلمه !! Edited September 23, 2013 by Guest Link to comment
PaiN^ Posted July 5, 2013 Share Posted July 5, 2013 مالها داعي بس ذا بست مدري لية حطها ؟تقدر تسويها كذا بسيطة مثل 3NAD < > كيف مالها داعي, بطريقة عناد ما راح يطلع بالشات إلا أول كلمة جرب كذا : addCommandHandler( "Admins", function( player, cmd, ... ) if ... then local msg = table.concat( { ... }, " " ) local playerAccount = getPlayerAccount( player ) if playerAccount and not isGuestAccount( playerAccount ) then if isObjectInACLGroup( "user."..getAccountName( playerAccount ), aclGetGroup( "Admin" ) ) then for _, v in ipairs( getElementsByType( "player" ) ) do local playersAccount = getPlayerAccount( v ) if playersAccount and not isGuestAccount( playersAccount ) then if isObjectInACLGroup( "user."..getAccountName( playersAccount ), aclGetGroup( "Admin" ) ) then outputChatBox( getPlayerName( player )..": "..msg, v, 255, 255, 255, true ) end end end end end end end ) addEventHandler( "onResourceStart", resourceRoot, function( ) for _, v in ipairs( getElementsByType( "player" ) ) do bindKey( v, "u", "down", "chatbox", "Admins" ) end end ) addEventHandler( "onPlayerJoin", root, function( ) bindKey( source, "u", "down", "chatbox", "Admins" ) end ) Link to comment
POWR Posted July 5, 2013 Share Posted July 5, 2013 يا الاخو بلا تطويل سالفةة ! خذ مود تابل بعد موافقةة منه ..~ وادرسةة ونتهت السالفةة !! Link to comment
iMr.Dawix~# Posted July 6, 2013 Share Posted July 6, 2013 SoRa جميع الحقوق محفوظه لـ تفضل تعديل بسيط بث --[[ Admin Message Script Fixed by |S.s|SoRa visit us : [url=http://www.gta-arabs.com]http://www.gta-arabs.com[/url] --]] function check(thePlayer, commandName,...) local accName = local veve = {...} local message = table.concat(veve, " ") for k,v in ipairs (getElementsByType("player")) do if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(v)),aclGetGroup("Admin")) and not isGuestAccount(v) then outputChatBox("* "..getPlayerName(thePlayer)..": "..message,v,255,255,255,true) end end end addCommandHandler("AM", check) bindKey("u", "down", "chatbox","AM") Link to comment
iMr.Dawix~# Posted July 6, 2013 Share Posted July 6, 2013 كودي شغال يا ضاوي Sorry ,, خله احتياط 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