Jump to content

kingdom

Members
  • Posts

    20
  • Joined

  • Last visited

Posts posted by kingdom

  1. يعني الاسم يجي مع الهكس كود ؟ ولا كيف #

    وشو الهكس كود مافهمته والله

    يعني الآسم يجي ملون ولا يجي قبله كود اللون ؟

    #FFF000King#FFFFF0dom

    ايه يجي قبله كود اللون

    مثل #FFF000King#FFFFF0dom

  2. addCommandHandler ( "supernick", 
        function ( player, _, nick ) 
            if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) ) then 
                if ( nick ) and ( string.len ( nick ) <= 80 ) then 
                    setElementData  ( player, "CustomTag", tostring ( nick ) ) 
                    outputChatBox ( "[superNick]#FFFFFF Your SuperNick is: " .. tostring ( nick ) .. " #FFFFFF.", player, 255, 136, 0, true ) 
                end 
            else 
                outputChatBox ( "[ERROR] #ffffffOops! You are not allowed to do this.", player, 255, 0, 0, true ) 
            end 
        end 
    ) 
      
    addEventHandler ( "onPlayerChat", root, 
        function ( msg ) 
            local r, g, b = getPlayerNametagColor ( source ) 
            local value = getElementData ( source, "CustomTag" ) 
            if ( value ) then 
                cancelEvent ( ) 
                outputChatBox( value .. " : #FFFFFF" .. msg, root, r, g, b, true ) 
            end 
        end 
    ) 
      
    addEventHandler ( "onResourceStart", resourceRoot, 
        function ( ) 
            exports.scoreboard:addScoreboardColumn( "CustomTag" ) 
            for _, player in ipairs ( getElementsByType ( "player" ) ) do 
                local acc = getPlayerAccount ( player ) 
                if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getAccountData ( acc, "CustomTag" ) ) then 
                    setElementData ( player, "CustomTag", getAccountData( acc, "CustomTag" ) ) 
                end 
            end 
        end 
    ) 
      
    addEventHandler ( "onPlayerLogin", root, 
        function ( _, acc ) 
            if ( getAccountData ( acc, "CustomTag" ) ) then 
                setElementData ( source, "CustomTag", getAccountData ( acc, "CustomTag" ) ) 
            end 
        end 
    ) 
      
    addEventHandler ( "onPlayerQuit", root, 
        function ( ) 
            local acc = getPlayerAccount ( source ) 
            if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getElementData ( source, "CustomTag" ) ) then 
                setAccountData ( acc, "CustomTag", getElementData ( source, "CustomTag" ) ) 
            end 
        end 
    ) 
    

    معليش كانت عندي مشكلة بالتاب وضبطت معي هذي بس المشكلة ماتطلع مع الالوان

  3. addCommandHandler ( "supernick", 
        function ( player, _, nick ) 
            if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) ) then 
                if ( nick ) and ( string.len ( nick ) <= 80 ) then 
                    setElementData  ( player, "CustomTag", tostring ( nick ) ) 
                    outputChatBox ( "[superNick]#FFFFFF Your SuperNick is: " .. tostring ( nick ) .. " #FFFFFF.", player, 255, 136, 0, true ) 
                end 
            else 
                outputChatBox ( "[ERROR] #ffffffOops! You are not allowed to do this.", player, 255, 0, 0, true ) 
            end 
        end 
    ) 
      
    addEventHandler ( "onPlayerChat", root, 
        function ( msg ) 
            local r, g, b = getPlayerNametagColor ( source ) 
            local value = getElementData ( source, "CustomTag" ) 
            if ( value ) then 
                cancelEvent ( ) 
                outputChatBox( value .. " : #FFFFFF" .. msg, root, r, g, b, true ) 
            end 
        end 
    ) 
      
    addEventHandler ( "onResourceStart", resourceRoot, 
        function ( ) 
            exports.scoreboard:addScoreboardColumn( "CustomTag" ) 
            for _, player in ipairs ( getElementsByType ( "player" ) ) do 
                local acc = getPlayerAccount ( player ) 
                if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getAccountData ( acc, "CustomTag" ) ) then 
                    setElementData ( player, "CustomTag", getAccountData( acc, "CustomTag" ) ) 
                end 
            end 
        end 
    ) 
      
    addEventHandler ( "onPlayerLogin", root, 
        function ( _, acc ) 
            if ( getAccountData ( acc, "CustomTag" ) ) then 
                setElementData ( source, "CustomTag", getAccountData ( acc, "CustomTag" ) ) 
            end 
        end 
    ) 
      
    addEventHandler ( "onPlayerQuit", root, 
        function ( ) 
            local acc = getPlayerAccount ( source ) 
            if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getElementData ( source, "CustomTag" ) ) then 
                setAccountData ( acc, "CustomTag", getElementData ( source, "CustomTag" ) ) 
            end 
        end 
    ) 
    

    للاسف ماضبطت , :(

  4. السلام عليكم ..

    ياجماعة انا عندي سكربت لتعديل وزخرفه النك في السيرفر , اذا زخرفت اسمي يطلع بالشات مزخرف بس انا ابيه يطلع بالتاب وبالادمن عشان اعرف من اللي جالس يتكلم او اذا بصك باند

    اتمنى انكم فهمتوني وهذي الاكواد

    addCommandHandler ( "supernick", 
        function ( player, _, nick ) 
            if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) ) then 
                if ( nick ) and ( string.len ( nick ) <= 80 ) then 
                    setElementData  ( player, "CustomTag", tostring ( nick ) ) 
                    outputChatBox ( "[superNick]#FFFFFF Your SuperNick is: " .. tostring ( nick ) .. " #FFFFFF.", player, 255, 136, 0, true ) 
                end 
            else 
                outputChatBox ( "[ERROR] #ffffffOops! You are not allowed to do this.", player, 255, 0, 0, true ) 
            end 
        end 
    ) 
      
    addEventHandler ( "onPlayerChat", root, 
        function ( msg ) 
            local r, g, b = getPlayerNametagColor ( source ) 
            local value = getElementData ( source, "CustomTag" ) 
            if ( value ) then 
                cancelEvent ( ) 
                outputChatBox( value .. " : #FFFFFF" .. msg, root, r, g, b, true ) 
            end 
        end 
    ) 
      
    addEventHandler ( "onResourceStart", resourceRoot, 
        function ( ) 
            for _, player in ipairs ( getElementsByType ( "player" ) ) do 
                local acc = getPlayerAccount ( player ) 
                if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getAccountData ( acc, "CustomTag" ) ) then 
                    setElementData ( player, "CustomTag", getAccountData( acc, "CustomTag" ) ) 
                end 
            end 
        end 
    ) 
      
    addEventHandler ( "onPlayerLogin", root, 
        function ( _, acc ) 
            if ( getAccountData ( acc, "CustomTag" ) ) then 
                setElementData ( source, "CustomTag", getAccountData ( acc, "CustomTag" ) ) 
            end 
        end 
    ) 
      
    addEventHandler ( "onPlayerQuit", root, 
        function ( ) 
            local acc = getPlayerAccount ( source ) 
            if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getElementData ( source, "CustomTag" ) ) then 
                setAccountData ( acc, "CustomTag", getElementData ( source, "CustomTag" ) ) 
            end 
        end 
    ) 
    

  5. Hi everyone ..

    guys i want to edit this script for the scoreboard and admin players list ..

    example : i set my super nick to "кιηg∂σм" its ok in the chat , But i want this nickname in the scoreboard and admin players list too , because i want to know who really is ..

    addCommandHandler ( "supernick", 
        function ( player, _, nick ) 
            if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) ) then 
                if ( nick ) and ( string.len ( nick ) <= 80 ) then 
                    setElementData  ( player, "CustomTag", tostring ( nick ) ) 
                    outputChatBox ( "[superNick]#FFFFFF Your SuperNick is: " .. tostring ( nick ) .. " #FFFFFF.", player, 255, 136, 0, true ) 
                end 
            else 
                outputChatBox ( "[ERROR] #ffffffOops! You are not allowed to do this.", player, 255, 0, 0, true ) 
            end 
        end 
    ) 
      
    addEventHandler ( "onPlayerChat", root, 
        function ( msg ) 
            local r, g, b = getPlayerNametagColor ( source ) 
            local value = getElementData ( source, "CustomTag" ) 
            if ( value ) then 
                cancelEvent ( ) 
                outputChatBox( value .. " : #FFFFFF" .. msg, root, r, g, b, true ) 
            end 
        end 
    ) 
      
    addEventHandler ( "onResourceStart", resourceRoot, 
        function ( ) 
            for _, player in ipairs ( getElementsByType ( "player" ) ) do 
                local acc = getPlayerAccount ( player ) 
                if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getAccountData ( acc, "CustomTag" ) ) then 
                    setElementData ( player, "CustomTag", getAccountData( acc, "CustomTag" ) ) 
                end 
            end 
        end 
    ) 
      
    addEventHandler ( "onPlayerLogin", root, 
        function ( _, acc ) 
            if ( getAccountData ( acc, "CustomTag" ) ) then 
                setElementData ( source, "CustomTag", getAccountData ( acc, "CustomTag" ) ) 
            end 
        end 
    ) 
      
    addEventHandler ( "onPlayerQuit", root, 
        function ( ) 
            local acc = getPlayerAccount ( source ) 
            if ( acc ) and not ( isGuestAccount ( acc ) ) and ( getElementData ( source, "CustomTag" ) ) then 
                setAccountData ( acc, "CustomTag", getElementData ( source, "CustomTag" ) ) 
            end 
        end 
    ) 
    

×
×
  • Create New...