Jump to content

وضع كلمة داونلود بالتاج


Recommended Posts

السلام عليكم

ابي احد يسوي لي بالتاج لما الشخص يكون عندة تحميل يظهر قبل اسمة 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
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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...