Jump to content

مساعدة في سكربت


Recommended Posts

السلام عليكم و رحمة الله تعالى و بركاته

شباب كثرت عليكم شوي

المهم ، ابيكم تضيفون شيء في سكربت العاجل حق سورا

--[[ 
Admin Message Script Fixed by |S.s|SoRa 
visit us : [url=http://www.gta-arab.com]www.gta-arab.com[/url] 
--]] 
function rdx(message) 
    removeEventHandler ( "onClientRender", getRootElement(), dx ) 
    function dx() 
  
        dxDrawText("Admin :",13.0,189.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) 
        dxDrawText(message,58.0,189.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","AM") 
  

هي في الاصل تجي ادمن حمراء ، و انا ابيها يجي بعد ادمن اسم اللي كتب هناك

حاولت كثير و ما عرفت كل مرة اخرب السكربت

بسبب التخريب ولعب الاطفال ( انا فلان و انا غبي ومدري وش ) ، اففف

المهم اتمنى انكم فهمتم قصدي

Link to comment
--[[ 
Admin Message Script Fixed by |S.s|SoRa 
visit us : [url=http://www.gta-arab.com]www.gta-arab.com[/url] 
--]] 
function rdx(message) 
    removeEventHandler ( "onClientRender", getRootElement(), dx ) 
    function dx() 
  
        dxDrawText("Admin : ( getPlayerName ( player ) "#ffffff[ .. PlayerName .. ]"",13.0,189.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) 
        dxDrawText(message,58.0,189.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","AM") 
  

Link to comment
--[[ 
Admin Message Script Fixed by |S.s|SoRa 
visit us : [url=http://www.gta-arab.com]http://www.gta-arab.com[/url] 
--]] 
function rdx(message) 
    removeEventHandler ( "onClientRender", getRootElement(), dx ) 
    function dx() 
  
        dxDrawText("Admin :" .. getPlayerName( localPlayer ),13.0,189.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) 
        dxDrawText(message,58.0,189.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","AM") 
  

جرب

Link to comment

font: Either a custom DX font element or the name of a built-in DX font:

"default": Tahoma

"default-bold": Tahoma Bold

"clear": Verdana

"arial": Arial

"sans": Microsoft Sans Serif

"pricedown": Pricedown (GTA's theme text)

"bankgothic": Bank Gothic Medium

"diploma": Diploma Regular

"beckett": Beckett Regular

Link to comment

Client side :

    --[[ 
    Admin Message Script Fixed by |S.s|SoRa 
    visit us : [url=http://www.gta-arab.com]http://www.gta-arab.com[/url] 
    --]] 
    function rdx(message) 
        removeEventHandler ( "onClientRender", getRootElement(), dx ) 
        function dx() 
      
            dxDrawText("Admin :" .. getPlayerName( localPlayer ),13.0,189.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) 
            dxDrawText(message,58.0,189.0,799.0,224.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) 
      
        end 
        addEventHandler("onClientRender", getRootElement(), dx) 
    end 
    addEvent("sora", true ) 
    addEventHandler("sora", getRootElement(), rdx) 
    bindKey("u", "down", "chatbox","AM") 
      

Server side :

--[[ 
Admin Message Script Fixed by |S.s|SoRa 
visit us : [url=http://www.gta-arab.com]www.gta-arab.com[/url] 
--]] 
function check(thePlayer, commandName,...) 
    local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
    if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) then 
        local veve = {...} 
        local message = table.concat(veve, " ") 
        triggerClientEvent("sora", getRootElement(),message) 
    elseif isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then 
        local veve = {...} 
        local message = table.concat(veve, " ") 
        triggerClientEvent("sora", getRootElement(),message) 
    elseif isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Big.Admin" ) ) then 
        local veve = {...} 
        local message = table.concat(veve, " ") 
        triggerClientEvent("sora", getRootElement(),message) 
    end 
end 
addCommandHandler("AM", check) 

مع العلم السكربت كان شغال بشكل ممتاز

الحين كل واحد يجي اسمه مو اسم اللي كتب

Link to comment
    --[[ 
    Admin Message Script Fixed by |S.s|SoRa 
    visit us : [url=http://www.gta-arab.com]http://www.gta-arab.com[/url] 
    --]] 
    function check(thePlayer, commandName,...) 
       player = getPlayerName(thePlayer) 
        local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) then 
            local veve = {...} 
            local message = table.concat(veve, " ") 
            triggerClientEvent("sora", getRootElement(),message,player) 
        elseif isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then 
            local veve = {...} 
            local message = table.concat(veve, " ") 
            triggerClientEvent("sora", getRootElement(),message,player) 
        elseif isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Big.Admin" ) ) then 
            local veve = {...} 
            local message = table.concat(veve, " ") 
            triggerClientEvent("sora", getRootElement(),message,player) 
        end 
    end 
    addCommandHandler("AM", check) 

        --[[ 
        Admin Message Script Fixed by |S.s|SoRa 
        visit us : [url=http://www.gta-arab.com]http://www.gta-arab.com[/url] 
        --]] 
        function rdx(message,player) 
            removeEventHandler ( "onClientRender", getRootElement(), dx ) 
            function dx() 
          
                dxDrawText(player,13.0,189.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) 
                dxDrawText(message,58.0,189.0,799.0,224.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) 
          
            end 
            addEventHandler("onClientRender", getRootElement(), dx) 
        end 
        addEvent("sora", true ) 
        addEventHandler("sora", getRootElement(), rdx) 
        bindKey("u", "down", "chatbox","AM") 
  

Link to comment
Client side :
    --[[ 
    Admin Message Script Fixed by |S.s|SoRa 
    visit us : [url=http://www.gta-arab.com]http://www.gta-arab.com[/url] 
    --]] 
    function rdx(message, Name) 
        removeEventHandler ( "onClientRender", getRootElement(), dx ) 
        function dx() 
      
            dxDrawText("Admin :" .. Name,13.0,189.0,55.0,182.0,tocolor(255,0,0,255),1.0,"default-bold","left","top",false,false,false) 
            dxDrawText(message,58.0,189.0,799.0,224.0,tocolor(255,255,255,255),1.0,"default","left","top",false,false,false) 
      
        end 
        addEventHandler("onClientRender", getRootElement(), dx) 
    end 
    addEvent("sora", true ) 
    addEventHandler("sora", getRootElement(), rdx) 
    bindKey("u", "down", "chatbox","AM") 
      

[/lua]

+

ServerSide

addCommandHandler( 'AM', 
    function( playerSource, commandName, ... ) 
        if ( hasObjectPermissionTo ( playerSource, 'general.adminpanel', true ) ) then 
            triggerClientEvent( 'sora', getRootElement( ), table.concat( {...}, ' '), getPlayerName( playerSource ) ) 
        end 
    end 
) 

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