taha201100 Posted August 18, 2014 Share Posted August 18, 2014 السلام عليكم ابي احد يسوي لي بالتاج لما الشخص يكون عندة تحميل يظهر قبل اسمة DownLoad باللون الاحمر التااج local root = getRootElement() function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then cancelEvent() outputChatBox("#bd1c18* [ #424242Console#bd1c18 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Devlpor")) then cancelEvent() outputChatBox("#bd1c18* [ #424242Developer1#bd1c18 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader")) then cancelEvent() outputChatBox("#bd1c18* [ #FE2E2ELeader#bd1c18 ] " .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_1")) then cancelEvent() outputChatBox("#bd1c18* [ #04B4AELevel 1#bd1c18 ] #04B4AE" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_2")) then cancelEvent() outputChatBox("#bd1c18* [ #8A0868Level 2#bd1c18 ] #8A0868" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_3")) then cancelEvent() outputChatBox("#bd1c18* [ #298A08Level 3#bd1c18 ] #298A08" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_4")) then cancelEvent() outputChatBox("#bd1c18* [ #B18904Level 4#bd1c18 ] #B18904" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_5")) then cancelEvent() outputChatBox("#bd1c18* [ #8A0808Level 5#bd1c18 ] #8A0808" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Ex")) then cancelEvent() outputChatBox("#9c9a9c[ Admin - Ex ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("HeadLeaDer")) then cancelEvent() outputChatBox("#151B8D[ Head-Leader ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then cancelEvent() outputChatBox("#461B7E[ Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("HEAD-ADMIN")) then cancelEvent() outputChatBox("#F778A1[ Head-Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuPeR-ADMIN")) then cancelEvent() outputChatBox("#00FFFF[ Super Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("BIG-ADMIN")) then cancelEvent() outputChatBox("#617C58[ Big Admin] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("GA-1")) then cancelEvent() outputChatBox("#FF0000[ GA 1 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("GA-2")) then cancelEvent() outputChatBox("#FF0000[ GA 2 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("GM-1")) then cancelEvent() outputChatBox("#ECD672[ GM 1 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("GM-2")) then cancelEvent() outputChatBox("#ECD672[ GM 2 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SUPPORT")) then cancelEvent() outputChatBox("#ECD672[ Support ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", root, chatbox) بالأنتظار Link to comment
jafar Posted August 18, 2014 Share Posted August 18, 2014 طلبك موجود مسبقاً , لو تبحث راح تلقى Link to comment
#DRAGON!FIRE Posted August 18, 2014 Share Posted August 18, 2014 Client Side addEventHandler( "onClientResourceStart", resourceRoot, function( ) TimerDownload = setTimer( function( ) if ( isTransferBoxActive ( ) ~= true ) then setElementData( localPlayer, "download", false ) killTimer( TimerDownload ) end end, 10000, 0 ) end ) Server Side addEventHandler( "onPlayerJoin", root, function( ) setElementData( source, "download", "Download" ) end ) Link to comment
taha201100 Posted August 19, 2014 Author Share Posted August 19, 2014 طيب انا طرحت لك كود التاج حطه وارسلي كود التاج المعدل لانه معرف وين احطة Link to comment
HassoN Posted August 19, 2014 Share Posted August 19, 2014 طيب انا طرحت لك كود التاج حطه وارسلي كود التاج المعدل لانه معرف وين احطة مو ناقص غير يسون لك الميتا ويسوه سكربت ويركبوه لك Link to comment
Jey Posted August 19, 2014 Share Posted August 19, 2014 طيب انا طرحت لك كود التاج حطه وارسلي كود التاج المعدل لانه معرف وين احطة مو ناقص غير يسون لك الميتا ويسوه سكربت ويركبوه لك Link to comment
#DRAGON!FIRE Posted August 19, 2014 Share Posted August 19, 2014 function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then cancelEvent() outputChatBox("#bd1c18* [ #424242Console#bd1c18 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Devlpor")) then cancelEvent() outputChatBox("#bd1c18* [ #424242Developer1#bd1c18 ] " .. name .. ":#DBA901 " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader")) then cancelEvent() outputChatBox("#bd1c18* [ #FE2E2ELeader#bd1c18 ] " .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_1")) then cancelEvent() outputChatBox("#bd1c18* [ #04B4AELevel 1#bd1c18 ] #04B4AE" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_2")) then cancelEvent() outputChatBox("#bd1c18* [ #8A0868Level 2#bd1c18 ] #8A0868" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_3")) then cancelEvent() outputChatBox("#bd1c18* [ #298A08Level 3#bd1c18 ] #298A08" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_4")) then cancelEvent() outputChatBox("#bd1c18* [ #B18904Level 4#bd1c18 ] #B18904" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Level_5")) then cancelEvent() outputChatBox("#bd1c18* [ #8A0808Level 5#bd1c18 ] #8A0808" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Ex")) then cancelEvent() outputChatBox("#9c9a9c[ Admin - Ex ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("HeadLeaDer")) then cancelEvent() outputChatBox("#151B8D[ Head-Leader ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then cancelEvent() outputChatBox("#461B7E[ Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("HEAD-ADMIN")) then cancelEvent() outputChatBox("#F778A1[ Head-Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuPeR-ADMIN")) then cancelEvent() outputChatBox("#00FFFF[ Super Admin ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("BIG-ADMIN")) then cancelEvent() outputChatBox("#617C58[ Big Admin] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("GA-1")) then cancelEvent() outputChatBox("#FF0000[ GA 1 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("GA-2")) then cancelEvent() outputChatBox("#FF0000[ GA 2 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("GM-1")) then cancelEvent() outputChatBox("#ECD672[ GM 1 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("GM-2")) then cancelEvent() outputChatBox("#ECD672[ GM 2 ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SUPPORT")) then cancelEvent() outputChatBox("#ECD672[ Support ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) end if ( getElementData ( source, "download" ) == "Download" ) then cancelEvent ( ) outputChatBox("[ Downloading ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", root, chatbox) 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