kingdom Posted September 30, 2014 Share Posted September 30, 2014 (edited) السلام عليكم .. ياجماعة انا عندي سكربت لتعديل وزخرفه النك في السيرفر , اذا زخرفت اسمي يطلع بالشات مزخرف بس انا ابيه يطلع بالتاب وبالادمن عشان اعرف من اللي جالس يتكلم او اذا بصك باند اتمنى انكم فهمتوني وهذي الاكواد 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 ) Edited October 5, 2014 by Guest Link to comment
Simple. Posted September 30, 2014 Share Posted September 30, 2014 للتآب setElementData -- مثآل setElementData ( player, "NAME", tostring ( nick ) ) آو آنك تسوي كولمن جديد , وتحط فيه آلكستم نك Link to comment
kingdom Posted September 30, 2014 Author Share Posted September 30, 2014 للتآبsetElementData -- مثآل setElementData ( player, "NAME", tostring ( nick ) ) آو آنك تسوي كولمن جديد , وتحط فيه آلكستم نك ي ليت توضح اكثر لاني مافهمت Link to comment
#DRAGON!FIRE Posted September 30, 2014 Share Posted September 30, 2014 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 ) Link to comment
kingdom Posted September 30, 2014 Author Share Posted September 30, 2014 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 ) للاسف ماضبطت , Link to comment
فاّرس Posted September 30, 2014 Share Posted September 30, 2014 (edited) exports.scoreboard.scoreboardAddColumn ( 'CustomTag' ) Edited September 30, 2014 by Guest Link to comment
#DRAGON!FIRE Posted September 30, 2014 Share Posted September 30, 2014 وش اللي ما ضبط ؟ .. شفت بالتاب كولمن اسمه كاستوم تاج ؟ Link to comment
KING-_-HOHO Posted October 1, 2014 Share Posted October 1, 2014 وش اللي ما ضبط ؟ .. شفت بالتاب كولمن اسمه كاستوم تاج ؟ يمكن آسم مود آلتآب عندهـ غير -- وش آسم مود آلتآب آللي عندك Link to comment
kingdom Posted October 1, 2014 Author Share Posted October 1, 2014 وش اللي ما ضبط ؟ .. شفت بالتاب كولمن اسمه كاستوم تاج ؟ لا للاسف Link to comment
kingdom Posted October 1, 2014 Author Share Posted October 1, 2014 وش اللي ما ضبط ؟ .. شفت بالتاب كولمن اسمه كاستوم تاج ؟ يمكن آسم مود آلتآب عندهـ غير -- وش آسم مود آلتآب آللي عندك scoreboard Link to comment
#DRAGON!FIRE Posted October 1, 2014 Share Posted October 1, 2014 امم المفروض يشتغل .. طيب جرب حق ذا بيست . Link to comment
kingdom Posted October 1, 2014 Author Share Posted October 1, 2014 exports.scoreboard.scoreboardAddColumn ( 'CustomTag' ) ماضبط للاسف .. Link to comment
kingdom Posted October 1, 2014 Author Share Posted October 1, 2014 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 ) معليش كانت عندي مشكلة بالتاب وضبطت معي هذي بس المشكلة ماتطلع مع الالوان Link to comment
kingdom Posted October 1, 2014 Author Share Posted October 1, 2014 ابيه مع الالوان ياجماعة الخير , Link to comment
#DRAGON!FIRE Posted October 1, 2014 Share Posted October 1, 2014 والاسم حقكـ .. حق اللعبة يعني الاصلي .. كيف يجي بالتاب ؟ مع كود الهكس ولا باللون ؟ Link to comment
i,xAhmed Posted October 2, 2014 Share Posted October 2, 2014 فك آللوحة حرف P ثم روح المودآت , آو الريسورس ثم اضغط ضغطة ع مود scoreboard وروح الستنق , وحط بجانب الالوان true Link to comment
kingdom Posted October 2, 2014 Author Share Posted October 2, 2014 والاسم حقكـ .. حق اللعبة يعني الاصلي .. كيف يجي بالتاب ؟ مع كود الهكس ولا باللون ؟ والله مادري ياخوك Link to comment
kingdom Posted October 2, 2014 Author Share Posted October 2, 2014 فك آللوحة حرف P ثم روح المودآت , آو الريسورس ثم اضغط ضغطة ع مود scoreboard وروح الستنق , وحط بجانب الالوان true هي true من اول Link to comment
kingdom Posted October 2, 2014 Author Share Posted October 2, 2014 والاسم حقكـ .. حق اللعبة يعني الاصلي .. كيف يجي بالتاب ؟ مع كود الهكس ولا باللون ؟ والله مادري ياخوك الاسم الاصلي يجي بالتاب ملون بس السكربت ذا مايجي ملون Link to comment
#DRAGON!FIRE Posted October 3, 2014 Share Posted October 3, 2014 يعني الاسم يجي مع الهكس كود ؟ ولا كيف # Link to comment
kingdom Posted October 3, 2014 Author Share Posted October 3, 2014 يعني الاسم يجي مع الهكس كود ؟ ولا كيف # وشو الهكس كود مافهمته والله Link to comment
Simple. Posted October 3, 2014 Share Posted October 3, 2014 يعني الاسم يجي مع الهكس كود ؟ ولا كيف # وشو الهكس كود مافهمته والله يعني الآسم يجي ملون ولا يجي قبله كود اللون ؟ #FFF000King#FFFFF0dom Link to comment
kingdom Posted October 3, 2014 Author Share Posted October 3, 2014 يعني الاسم يجي مع الهكس كود ؟ ولا كيف # وشو الهكس كود مافهمته والله يعني الآسم يجي ملون ولا يجي قبله كود اللون ؟ #FFF000King#FFFFF0dom ايه يجي قبله كود اللون مثل #FFF000King#FFFFF0dom 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