sultantion Posted September 30, 2015 Share Posted September 30, 2015 السلام عليكم , هذا سكربت تقدر تحط نك مزخرف بالشات بس ابيه بالادمنية والتاب والتاج يكون مزخرف 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 ) فيدوني ي عيال Link to comment
' A F . Posted October 1, 2015 Share Posted October 1, 2015 بالادمنيه لأزم تعدل عليهآ , نك مزخرف اكتب بأف 8 supernick والتأج الي تبيه .. بـ التأب تسوي . setTimer getElementsByType -- player scoreboardAddColumn setElementData getElementData Link to comment
sultantion Posted October 1, 2015 Author Share Posted October 1, 2015 بالادمنيه لأزم تعدل عليهآ , نك مزخرف اكتب بأف 8 supernick والتأج الي تبيه .. بـ التأب تسوي . setTimer getElementsByType -- player scoreboardAddColumn setElementData getElementData مافهمت للاسف Link to comment
' A F . Posted October 1, 2015 Share Posted October 1, 2015 يعني انت تبي جآهز ؟ مثلأ ؟ سوي واذا فيه خطأ نصححه لك ,, Link to comment
sultantion Posted October 1, 2015 Author Share Posted October 1, 2015 يعني انت تبي جآهز ؟ مثلأ ؟ سوي واذا فيه خطأ نصححه لك ,, مابي جاهز بس اشرح زي الناس Link to comment
' A F . Posted October 1, 2015 Share Posted October 1, 2015 عطيتك الي انت تحتآجه وبعدين متى شرحتلك ؟ Link to comment
Me[Z]oO Posted October 23, 2015 Share Posted October 23, 2015 Up Up اختصار هو يبي جاهز Link to comment
3NAD Posted October 23, 2015 Share Posted October 23, 2015 الأدمنية admin/client/gui/admin_main.lua ابحث عن هذا في سطر 439 guiSetText ( aTab1.Name, "Name: "..aPlayers[player]["name"] ) واستبدله بهذا local customTag = getElementData ( player, "CustomTag" ) guiSetText ( aTab1.Name, "Name: "..( ( customTag and customTag.." ("..aPlayers[player]["name"]..")" ) or aPlayers[player]["name"] ) ) طبعاً راح يظهر الإسم المزخرف في الليبل : إذا ضغطت على اللاعب من اللسته -- في التاب scoreboard/dxscoreboard.client ابحث عن هذا local playerName = getPlayerName( player ) if serverInfo.allowcolorcodes then if string.find( playerName, "#%x%x%x%x%x%x" ) then local colorCodes = {} while( string.find( playerName, "#%x%x%x%x%x%x" ) ) do local startPos, endPos = string.find( playerName, "#%x%x%x%x%x%x" ) if startPos then colorCode = string.sub( playerName, startPos, endPos ) table.insert( colorCodes, { { getColorFromString( colorCode ) }, startPos } ) playerName = string.gsub( playerName, "#%x%x%x%x%x%x", "", 1 ) end end content = { playerName, colorCodes } else content = playerName end else content = playerName end في سطر 346 واستبدله بهذا local playerName = getPlayerName( player ) local customTag = getElementData ( player, "CustomTag" ) if customTag then content = customTag else if serverInfo.allowcolorcodes then if string.find( playerName, "#%x%x%x%x%x%x" ) then local colorCodes = {} while( string.find( playerName, "#%x%x%x%x%x%x" ) ) do local startPos, endPos = string.find( playerName, "#%x%x%x%x%x%x" ) if startPos then colorCode = string.sub( playerName, startPos, endPos ) table.insert( colorCodes, { { getColorFromString( colorCode ) }, startPos } ) playerName = string.gsub( playerName, "#%x%x%x%x%x%x", "", 1 ) end end content = { playerName, colorCodes } else content = playerName end else content = playerName end end ثم تكرر العملية ب سطر 457 استبدل ب هذا local playerName = getPlayerName( player ) local customTag = getElementData ( player, "CustomTag" ) if customTag then content = customTag else if serverInfo.allowcolorcodes then if string.find( playerName, "#%x%x%x%x%x%x" ) then local colorCodes = {} while( string.find( playerName, "#%x%x%x%x%x%x" ) ) do local startPos, endPos = string.find( playerName, "#%x%x%x%x%x%x" ) if startPos then colorCode = string.sub( playerName, startPos, endPos ) table.insert( colorCodes, { { getColorFromString( colorCode ) }, startPos } ) playerName = string.gsub( playerName, "#%x%x%x%x%x%x", "", 1 ) end end content = { playerName, colorCodes } else content = playerName end else content = playerName end end --- Link to comment
sultantion Posted October 28, 2015 Author Share Posted October 28, 2015 الأدمنيةadmin/client/gui/admin_main.lua ابحث عن هذا في سطر 439 guiSetText ( aTab1.Name, "Name: "..aPlayers[player]["name"] ) واستبدله بهذا local customTag = getElementData ( player, "CustomTag" ) guiSetText ( aTab1.Name, "Name: "..( ( customTag and customTag.." ("..aPlayers[player]["name"]..")" ) or aPlayers[player]["name"] ) ) طبعاً راح يظهر الإسم المزخرف في الليبل : إذا ضغطت على اللاعب من اللسته -- في التاب scoreboard/dxscoreboard.client ابحث عن هذا local playerName = getPlayerName( player ) if serverInfo.allowcolorcodes then if string.find( playerName, "#%x%x%x%x%x%x" ) then local colorCodes = {} while( string.find( playerName, "#%x%x%x%x%x%x" ) ) do local startPos, endPos = string.find( playerName, "#%x%x%x%x%x%x" ) if startPos then colorCode = string.sub( playerName, startPos, endPos ) table.insert( colorCodes, { { getColorFromString( colorCode ) }, startPos } ) playerName = string.gsub( playerName, "#%x%x%x%x%x%x", "", 1 ) end end content = { playerName, colorCodes } else content = playerName end else content = playerName end في سطر 346 واستبدله بهذا local playerName = getPlayerName( player ) local customTag = getElementData ( player, "CustomTag" ) if customTag then content = customTag else if serverInfo.allowcolorcodes then if string.find( playerName, "#%x%x%x%x%x%x" ) then local colorCodes = {} while( string.find( playerName, "#%x%x%x%x%x%x" ) ) do local startPos, endPos = string.find( playerName, "#%x%x%x%x%x%x" ) if startPos then colorCode = string.sub( playerName, startPos, endPos ) table.insert( colorCodes, { { getColorFromString( colorCode ) }, startPos } ) playerName = string.gsub( playerName, "#%x%x%x%x%x%x", "", 1 ) end end content = { playerName, colorCodes } else content = playerName end else content = playerName end end ثم تكرر العملية ب سطر 457 استبدل ب هذا local playerName = getPlayerName( player ) local customTag = getElementData ( player, "CustomTag" ) if customTag then content = customTag else if serverInfo.allowcolorcodes then if string.find( playerName, "#%x%x%x%x%x%x" ) then local colorCodes = {} while( string.find( playerName, "#%x%x%x%x%x%x" ) ) do local startPos, endPos = string.find( playerName, "#%x%x%x%x%x%x" ) if startPos then colorCode = string.sub( playerName, startPos, endPos ) table.insert( colorCodes, { { getColorFromString( colorCode ) }, startPos } ) playerName = string.gsub( playerName, "#%x%x%x%x%x%x", "", 1 ) end end content = { playerName, colorCodes } else content = playerName end else content = playerName end end --- ي لبى قلبك ي شششيخ Link to comment
sultantion Posted October 28, 2015 Author Share Posted October 28, 2015 طيب اخر شي , اسم الاعب اللي يجي فوقه ابيه نفس المزخرف ولاهنت ياعناد Link to comment
3NAD Posted October 30, 2015 Share Posted October 30, 2015 اللي على الشخصية بسيط setPlayerNametagText 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