Jump to content

تعديل كود


Recommended Posts

السلام عليكم شباب

الحين الكود ذا المفروض يجيب اسم الي كتب تحت لكل الاعبين , بس لا , اذا انا كتبت , كل واحد يشوف اسمه , المفروض يبان اسمي لكل الاعبين

بس لا كل لاعب يشوف اسمه اذا انا كتبت

local getAdmin = getPlayerName(localPlayer) 
function rdx(message) 
    removeEventHandler ( "onClientRender", getRootElement(), dx ) 
    function dx() 
  
        dxDrawText("Admin: "..getAdmin..":",4,215,42,15,tocolor(255,255,0,255),1.12,"default-bold","left","top",false,false,false) 
        dxDrawText(tostring(message),197, 215, 925, 256,tocolor(255,255,255,255),1.12,"default-bold","left","top",false,false,false) 
  
    end 
    addEventHandler("onClientRender", getRootElement(), dx) 
end 
addEvent(Manster", true ) 
addEventHandler("Manster", getRootElement(), rdx) 
bindKey("o", "down", "chatbox","Admin") 
 

Link to comment

هذا السيرفر

+

فيه تريقر

function check(thePlayer, commandName,...) 
    local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
       if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Head Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Manster" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Danger" ) ) then 
        local veve = {...} 
        local message = table.concat(veve, " ") 
        triggerClientEvent("Manster", getRootElement(),message) 
    end 
end 
addCommandHandler("Admin", check) 

Link to comment

function rdx(message) 
    removeEventHandler ( "onClientRender", getRootElement(), dx ) 
    function dx() 
        dxDrawText("Admin: "..ZA7F..":",4,215,42,15,tocolor(255,255,0,255),1.12,"default-bold","left","top",false,false,false)          dxDrawText(tostring(message),197,215,925,256,tocolor(255,255,255,255),1.12,"defaultbold","left","top",false,false,false) 
  
    end 
    addEventHandler("onClientRender", getRootElement(), dx) 
end 
addEvent("Manster", true ) 
addEventHandler("Manster", getRootElement(), rdx) 
bindKey("o", "down", "chatbox","Admin") 
  

function check(thePlayer, commandName,...) 
    local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
    if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Big.admin" ) ) then 
        local veve = {...} 
        local message = table.concat(veve, " ") 
                local ZA7F = "..getPlayerName(playerSource).." 
        triggerClientEvent("Manster", getRootElement(),message) 
    end 
end 
addCommandHandler("Admin", check) 

 

علا ما أعتقد كذا جرب و رد لي خبر

Edited by Guest
Link to comment
function rdx(message) 
    removeEventHandler ( "onClientRender", getRootElement(), dx ) 
    function dx() 
        dxDrawText("Admin: "..ZA7F..":",4,215,42,15,tocolor(255,255,0,255),1.12,"default-bold","left","top",false,false,false)          dxDrawText(tostring(message),197,215,925,256,tocolor(255,255,255,255),1.12,"defaultbold","left","top",false,false,false) 
  
    end 
    addEventHandler("onClientRender", getRootElement(), dx) 
end 
addEvent(Manster", true ) 
addEventHandler("Manster", getRootElement(), rdx) 
bindKey("o", "down", "chatbox","Admin") 
  
  
 

function check(thePlayer, commandName,...) 
    local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
    if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Big.admin" ) ) then 
        local veve = {...} 
        local message = table.concat(veve, " ") 
                local ZA7F = "..getPlayerName(playerSource).." 
        triggerClientEvent("Manster", getRootElement(),message) 
    end 
end 
addCommandHandler("Admin", check) 

 

علا ما أعتقد كذا جرب و رد لي خبر

wrong

-------------------------------

server

function check(thePlayer, commandName,...) 
    local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
       if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Head Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Manster" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Danger" ) ) then 
        local veve = {...} 
        local message = table.concat(veve, " ") 
        local getAdmin = getPlayerName(thePlayer) 
        triggerClientEvent("Manster", getRootElement(),message,getAdmin) 
    end 
end 
addCommandHandler("Admin", check) 

client

function rdx(message,name) 
    removeEventHandler ( "onClientRender", getRootElement(), dx ) 
    function dx() 
  
        dxDrawText("Admin: "..name..":",4,215,42,15,tocolor(255,255,0,255),1.12,"default-bold","left","top",false,false,false) 
        dxDrawText(tostring(message),197, 215, 925, 256,tocolor(255,255,255,255),1.12,"default-bold","left","top",false,false,false) 
  
    end 
    addEventHandler("onClientRender", getRootElement(), dx) 
end 
addEvent("Manster", true ) 
addEventHandler("Manster", getRootElement(), rdx) 
bindKey("o", "down", "chatbox","Admin") 
  
  

Edited by Guest
Link to comment

Client Side:

function rdx(message,getAdmin) 
    removeEventHandler ( "onClientRender", getRootElement(), dx ) 
    function dx() 
  
        dxDrawText("Admin: "..getAdmin..":",4,215,42,15,tocolor(255,255,0,255),1.12,"default-bold","left","top",false,false,false) 
        dxDrawText(tostring(message),197, 215, 925, 256,tocolor(255,255,255,255),1.12,"default-bold","left","top",false,false,false) 
  
    end 
    addEventHandler("onClientRender", getRootElement(), dx) 
end 
addEvent("Manster", true ) 
addEventHandler("Manster", getRootElement(), rdx) 
bindKey("o", "down", "chatbox","Admin") 

Server Side :

function check(thePlayer, commandName,...) 
    local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
       if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Head Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Manster" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Danger" ) ) then 
        local veve = {...} 
        local message = table.concat(veve, " ") 
        triggerClientEvent("Manster",root,message,getPlayerName(thePlayer)) 
    end 
end 
addCommandHandler("Admin", check) 

ياالي فوق ترا كلكم غلطتوا في سطر11 :mrgreen:

Link to comment
Client Side:

function rdx(message,getAdmin) 
    removeEventHandler ( "onClientRender", getRootElement(), dx ) 
    function dx() 
  
        dxDrawText("Admin: "..getAdmin..":",4,215,42,15,tocolor(255,255,0,255),1.12,"default-bold","left","top",false,false,false) 
        dxDrawText(tostring(message),197, 215, 925, 256,tocolor(255,255,255,255),1.12,"default-bold","left","top",false,false,false) 
  
    end 
    addEventHandler("onClientRender", getRootElement(), dx) 
end 
addEvent("Manster", true ) 
addEventHandler("Manster", getRootElement(), rdx) 
bindKey("o", "down", "chatbox","Admin") 

Server Side :

function check(thePlayer, commandName,...) 
    local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
       if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Head Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Manster" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Danger" ) ) then 
        local veve = {...} 
        local message = table.concat(veve, " ") 
        triggerClientEvent("Manster",root,message,getPlayerName(thePlayer)) 
    end 
end 
addCommandHandler("Admin", check) 

ياالي فوق ترا كلكم غلطتوا في سطر11 :mrgreen:

شكرا

مالك المووضوع قم بتجربت كودي الأن

Link to comment
Client Side:

function rdx(message,getAdmin) 
    removeEventHandler ( "onClientRender", getRootElement(), dx ) 
    function dx() 
  
        dxDrawText("Admin: "..getAdmin..":",4,215,42,15,tocolor(255,255,0,255),1.12,"default-bold","left","top",false,false,false) 
        dxDrawText(tostring(message),197, 215, 925, 256,tocolor(255,255,255,255),1.12,"default-bold","left","top",false,false,false) 
  
    end 
    addEventHandler("onClientRender", getRootElement(), dx) 
end 
addEvent("Manster", true ) 
addEventHandler("Manster", getRootElement(), rdx) 
bindKey("o", "down", "chatbox","Admin") 

Server Side :

function check(thePlayer, commandName,...) 
    local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
       if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Head Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Manster" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Danger" ) ) then 
        local veve = {...} 
        local message = table.concat(veve, " ") 
        triggerClientEvent("Manster",root,message,getPlayerName(thePlayer)) 
    end 
end 
addCommandHandler("Admin", check) 

ياالي فوق ترا كلكم غلطتوا في سطر11 :mrgreen:

مشكور يا داوي

Link to comment

مشكور يا داوي

العفوو :mrgreen:

ضاوي انت متحقق من البلاير وقت التريقر بس منت حاتطه في كلنت الاسم يعني

ما تختلف اقدر اضيفه بالكلنت بأي اسم بس اهم شيء مكانه

# أهــأ مششكور على الأفأدة

Link to comment

مشكور يا داوي

العفوو :mrgreen:

ضاوي انت متحقق من البلاير وقت التريقر بس منت حاتطه في كلنت الاسم يعني

ما تختلف اقدر اضيفه بالكلنت بأي اسم بس اهم شيء مكانه

# أهــأ مششكور على الأفأدة

العفووو تو :]

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