xX|KeMo|Xx Posted July 6, 2012 Share Posted July 6, 2012 سلام عليكم شباب ابي اجيب لون تيم اللاعب في تاج exmpel *#ff0000]Admin] ابي لون الاسم يجي مو لون التاجname : msg ابي لون اسم الاعب يجي لون تيمه مو لون التاج وشكرا Link to comment
TAPL Posted July 6, 2012 Share Posted July 6, 2012 https://wiki.multitheftauto.com/wiki/GetPlayerTeam https://wiki.multitheftauto.com/wiki/GetTeamColor https://wiki.multitheftauto.com/wiki/RGBToHex Link to comment
xX|KeMo|Xx Posted July 6, 2012 Author Share Posted July 6, 2012 elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("* #ffff00[Admin]ابي لون التيم يجي مو لون التاج هنا " .. getPlayerName ( source ) .. ":#FFFFFF " .. text, getRootElement(), r, g, b, true ) Link to comment
TAPL Posted July 6, 2012 Share Posted July 6, 2012 Again. https://wiki.multitheftauto.com/wiki/GetPlayerTeam https://wiki.multitheftauto.com/wiki/GetTeamColor https://wiki.multitheftauto.com/wiki/RGBToHex Link to comment
UAEpro Posted July 7, 2012 Share Posted July 7, 2012 حط اول شي هذا الفنكشن في بداية الملف function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then cancelEvent() local playerTeam = getPlayerTeam( source ) r, g, b = getTeamColor ( playerTeam ) local r, g, b = getPlayerNametagColor(source) outputChatBox("* #ffff00[Admin] "..RGBToHex(r,g,b) .. getPlayerName ( source ) .. ":#FFFFFF " .. text, getRootElement(), r, g, b, true ) Link to comment
xX|KeMo|Xx Posted July 8, 2012 Author Share Posted July 8, 2012 مشكووووور كثير مشاء الله اكثر اتنين يساعدوني 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