Jump to content

Chat Box !


Recommended Posts

آلسسلآم عليكم ,

حبيت آعرف كيف آسوي ChatBox

لـ الأدمنية ..

توضيح : مود تآبل يلي بـ حرب آلعصآبآت ، إذآ آنت منضم بـ قروب يمديكـ تتكلم مع أعضآء آلقروب بـ حرف هـ

بس آنآ آبغى آلحركة ع آلأدمنية ! ^

+ آلتيمآت ، آدري آن آلشآت بوكس موجود ، بس الفنكشنآت مطلوبة

وآلله يقويكم

<3

Link to comment

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 by Guest
Link to comment

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

جرب ذذ

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
جرب ذذ
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) 

تخبيص تايم , :lol:

Link to comment
جرب ذذ
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
جرب ذذ
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
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
مالها داعي بس ذا بست مدري لية حطها :/ ؟

تقدر تسويها كذا بسيطة مثل

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

SoRa جميع الحقوق محفوظه لـ

تفضل :mrgreen: تعديل بسيط بث

--[[ 
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...