Jump to content

طلب فنكشنات


Recommended Posts

السلام عليكم ورحمة الله تعالى وبركاته

كيف حالكم يا شباب

شباب ابي اسوي مود

لما يكون الشخص تتحمل المودات معاه يححطه بقروب اسمه download

علشان اسوي له تاج واعرف انه يحمل

وبس يخلص تحميل يشيله من القروب

اتمنى لو في احد يعرف شلون يقولي

والسلام خير ختام

Link to comment
function chatbox( text, type) 
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#AF0000*ஐمسؤول السيرفرًஐ |-»#FF0000[#FF0000S#00FF00.#0000007]   " .. getPlayerName ( source ) .. ":#A5A5A5 " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: *ஐمسؤول السيرفرًஐ |-»" .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("adarh")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* ░♥أ♥لإدآرهـ العامة░ |-»#FF0000[#FF0000S#00FF00.#0000007]   " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:░♥أ♥لإدآرهـ العامة░ |-»" .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Mr3gb")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#00F50B*ღღღمرآقبُღღღ |-»#FF0000[#FF0000S#00FF00.#0000007]   " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:ღღღمرآقبُღღღ |-»" .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Msr3f")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#CC00FF*๑๑๑-][ مشرفُ عام๑][-๑๑ |-»#FF0000[#FF0000S#00FF00.#0000007]    " .. getPlayerName ( source ) .. ":#ffFFff" .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:๑๑๑-][ مشرفُ عام๑][-๑๑ |-»" .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF239F* ♠♣كبـآر آلشخصيآت ً♣♠ |-»#FF0000[#FF0000S#00FF00.#0000007]   " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: ♠♣كبـآر آلشخصيآت ً♣♠ |-» " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFAE00* ··¤(`×[¤ شِرِطْﮯ ¤]×´)¤·· |-»#FF0000[#FF0000S#00FF00.#0000007]   " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:··¤(`×[¤ شِرِطْﮯ ¤]×´)¤·· |-» " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("wats")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#000000*♥(¯` صاحب الورشة '¯)♥ |-»#FF0000[#FF0000S#00FF00.#0000007]     " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:♥(¯` صاحب الورشة '¯)♥ |-» " .. getPlayerName ( source ) .. ": " .. text) 
         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("wats-2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#000000*♥(¯`  نــائب صاحب الورشه '¯)♥ |-»#FF0000[#FF0000S#00FF00.#0000007]   " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:♥(¯` صاحب الورشة '¯)♥ |-» " .. getPlayerName ( source ) .. ": " .. text) 
         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KingDrift")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#0000FF*♥(¯` كنج الدرفت '¯)♥ |-»#FF0000[#FF0000S#00FF00.#0000007]    " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:♥(¯` كنج الدرفت '¯)♥ |-» " .. getPlayerName ( source ) .. ": " .. text) 
         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Voto")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#8D8D8F§][مسؤول ادمنيات][§ |-»#FF0000[#FF0000S#00FF00.#0000007]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:§][مسؤول ادمنيات][§ |-»  " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#00FFEE* ੀ҉°▐░صـآحبُ آلسيرفرُ▒▐ੀ҉° |-»#FF0000[#FF0000S#00FF00.#0000007] " .. getPlayerName ( source ) .. ":#FFFF00 " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: ੀ҉°▐░صـآحبُ آلسيرفرُ▒▐ੀ҉° |-»  " .. getPlayerName ( source ) .. ": " .. text) 
         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("naeb")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFAE00* ¤~|~¤~»نائب صاحب السيرفر«~¤~|~¤|-»#FF0000[#FF0000S#00FF00.#0000007]    " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:¤~|~¤~»نائب صاحب السيرفر«~¤~|~¤|-» " .. getPlayerName ( source ) .. ": " .. text) 
         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("msmm")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#28AB00* §][مصمم الماب][§ |-»#FF0000[#FF0000S#00FF00.#0000007]     " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:§][مصمم الماب][§ |-» " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("░▐زائر كفو▐░|-»#FF0000[#FF0000S#00FF00.#0000007]      " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [زائر] " .. getPlayerName ( source ) .. ": " .. text) 
         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("town")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#AEFF00§][صاحب الونش][§ |-»#FF0000[#FF0000S#00FF00.#0000007]     " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:§][صاحب الونش][§ |-»  " .. getPlayerName ( source ) .. ": " .. text) 
  
        elseif type == 0 then 
        cancelEvent ( ) 
        local r, g, b = getPlayerNametagColor(source) 
            if getElementData(source,"download") == false then 
                outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
                outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text ) 
            else 
                outputChatBox("#ffffff* [ #ff0000Downloading #ffffff] #999999" .. getPlayerName(source) .. ": #ffffff" .. text,root,r,g,b,true) 
            end 
        end 
end 
addEventHandler("onPlayerChat", getRootElement(), chatbox) 
  
function s3d() 
    outputChatBox ( "~|#0000ffTAG#FFFF00|~ ADMIN #D4A017 BY #C38EC7 ~|#FF00FFMJ#000000NON#C38EC7|~", source, 0, 0, 0, true ) 
end 
addEventHandler("onPlayerJoin", getRootElement(), s3d) 
  
addEventHandler("onPlayerJoin",root, 
    function () 
        setElementData(source,"download",true) 
    end 
) 
  
addEventHandler("onPlayerWasted",root, 
    function () 
        setElementData(source,"download",false) 
    end 
) 

Link to comment

--- جرب ,

----------ClientSide 
addEventHandler('onClientPlayerJoin', root, 
function ( ) 
    if ( isTransferBoxActive() == true ) then 
    outputChatBox( ' * You Will Be Moved to Download Group * ' , 255, 255, 0 ) 
    triggerServerEvent('Move', localPlayer) 
    elseif ( isTransferBoxActive() == false ) then 
    triggerServerEvent('Back', localPlayer) 
  end 
end 
) 
  
  
------------------------------------------------ 
-----ServerSide, 
addEvent('Move', true ) 
addEventHandler('Move', root,  
function ( account ) 
    if ( account ) then 
    aclGroupAddObject (aclGetGroup("Download"), "user."..account) 
    outputChatBox( ' * Your Now in Download Group You Will Be Moved after the download finsh', source, 255, 255, 0 ) 
  end 
end 
) 
  
  
  
addEvent('Back', true) 
addEventHandler('Back', root, 
function ( account )  
    if ( account ) then 
    aclGroupRemoveObject (aclGetGroup("Download"), "user."..account) 
    outputChatBox('You have Been Remove From Download Group Thanks For Waiting', source, 255, 0, 0) 
  end 
end 
) 
Link to comment
--- جرب ,

----------ClientSide 
addEventHandler('onClientPlayerJoin', root, 
function ( ) 
    if ( isTransferBoxActive() == true ) then 
    outputChatBox( ' * You Will Be Moved to Download Group * ' , 255, 255, 0 ) 
    triggerServerEvent('Move', localPlayer) 
    elseif ( isTransferBoxActive() == false ) then 
    triggerServerEvent('Back', localPlayer) 
  end 
end 
) 
  
  
------------------------------------------------ 
-----ServerSide, 
addEvent('Move', true ) 
addEventHandler('Move', root,  
function ( account ) 
    if ( account ) then 
    aclGroupAddObject (aclGetGroup("Download"), "user."..account) 
    outputChatBox( ' * Your Now in Download Group You Will Be Moved after the download finsh', source, 255, 255, 0 ) 
  end 
end 
) 
  
  
  
addEvent('Back', true) 
addEventHandler('Back', root, 
function ( account )  
    if ( account ) then 
    aclGroupRemoveObject (aclGetGroup("Download"), "user."..account) 
    outputChatBox('You have Been Remove From Download Group Thanks For Waiting', source, 255, 0, 0) 
  end 
end 
) 

:bazooka::bazooka::bazooka::bazooka::bazooka::bazooka::bazooka::bazooka:

Edited by Guest
Link to comment
--- جرب ,

----------ClientSide 
addEventHandler('onClientPlayerJoin', root, 
function ( ) 
    if ( isTransferBoxActive() == true ) then 
    outputChatBox( ' * You Will Be Moved to Download Group * ' , 255, 255, 0 ) 
    triggerServerEvent('Move', localPlayer) 
    elseif ( isTransferBoxActive() == false ) then 
    triggerServerEvent('Back', localPlayer) 
  end 
end 
) 
  
  
------------------------------------------------ 
-----ServerSide, 
addEvent('Move', true ) 
addEventHandler('Move', root,  
function ( account ) 
    if ( account ) then 
    aclGroupAddObject (aclGetGroup("Download"), "user."..account) 
    outputChatBox( ' * Your Now in Download Group You Will Be Moved after the download finsh', source, 255, 255, 0 ) 
  end 
end 
) 
  
  
  
addEvent('Back', true) 
addEventHandler('Back', root, 
function ( account )  
    if ( account ) then 
    aclGroupRemoveObject (aclGetGroup("Download"), "user."..account) 
    outputChatBox('You have Been Remove From Download Group Thanks For Waiting', source, 255, 0, 0) 
  end 
end 
) 

يا ماكس هذا للاعب المسجل

انا ابيه يكون مو مسجل

Link to comment
function chatbox( text, type) 
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Big.Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#AF0000*ஐمسؤول السيرفرًஐ |-»#FF0000[#FF0000S#00FF00.#0000007]   " .. getPlayerName ( source ) .. ":#A5A5A5 " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: *ஐمسؤول السيرفرًஐ |-»" .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("adarh")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* ░♥أ♥لإدآرهـ العامة░ |-»#FF0000[#FF0000S#00FF00.#0000007]   " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:░♥أ♥لإدآرهـ العامة░ |-»" .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Mr3gb")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#00F50B*ღღღمرآقبُღღღ |-»#FF0000[#FF0000S#00FF00.#0000007]   " .. getPlayerName ( source ) ..":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:ღღღمرآقبُღღღ |-»" .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Msr3f")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#CC00FF*๑๑๑-][ مشرفُ عام๑][-๑๑ |-»#FF0000[#FF0000S#00FF00.#0000007]    " .. getPlayerName ( source ) .. ":#ffFFff" .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:๑๑๑-][ مشرفُ عام๑][-๑๑ |-»" .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF239F* ♠♣كبـآر آلشخصيآت ً♣♠ |-»#FF0000[#FF0000S#00FF00.#0000007]   " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: ♠♣كبـآر آلشخصيآت ً♣♠ |-» " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFAE00* ··¤(`×[¤ شِرِطْﮯ ¤]×´)¤·· |-»#FF0000[#FF0000S#00FF00.#0000007]   " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:··¤(`×[¤ شِرِطْﮯ ¤]×´)¤·· |-» " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("wats")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#000000*♥(¯` صاحب الورشة '¯)♥ |-»#FF0000[#FF0000S#00FF00.#0000007]     " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:♥(¯` صاحب الورشة '¯)♥ |-» " .. getPlayerName ( source ) .. ": " .. text) 
         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("wats-2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#000000*♥(¯`  نــائب صاحب الورشه '¯)♥ |-»#FF0000[#FF0000S#00FF00.#0000007]   " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:♥(¯` صاحب الورشة '¯)♥ |-» " .. getPlayerName ( source ) .. ": " .. text) 
         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("KingDrift")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#0000FF*♥(¯` كنج الدرفت '¯)♥ |-»#FF0000[#FF0000S#00FF00.#0000007]    " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:♥(¯` كنج الدرفت '¯)♥ |-» " .. getPlayerName ( source ) .. ": " .. text) 
         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Voto")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#8D8D8F§][مسؤول ادمنيات][§ |-»#FF0000[#FF0000S#00FF00.#0000007]  " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:§][مسؤول ادمنيات][§ |-»  " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#00FFEE* ੀ҉°▐░صـآحبُ آلسيرفرُ▒▐ੀ҉° |-»#FF0000[#FF0000S#00FF00.#0000007] " .. getPlayerName ( source ) .. ":#FFFF00 " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: ੀ҉°▐░صـآحبُ آلسيرفرُ▒▐ੀ҉° |-»  " .. getPlayerName ( source ) .. ": " .. text) 
         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("naeb")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFAE00* ¤~|~¤~»نائب صاحب السيرفر«~¤~|~¤|-»#FF0000[#FF0000S#00FF00.#0000007]    " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:¤~|~¤~»نائب صاحب السيرفر«~¤~|~¤|-» " .. getPlayerName ( source ) .. ": " .. text) 
         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("msmm")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#28AB00* §][مصمم الماب][§ |-»#FF0000[#FF0000S#00FF00.#0000007]     " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:§][مصمم الماب][§ |-» " .. getPlayerName ( source ) .. ": " .. text) 
  
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("░▐زائر كفو▐░|-»#FF0000[#FF0000S#00FF00.#0000007]      " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT: [زائر] " .. getPlayerName ( source ) .. ": " .. text) 
         
    elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("town")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#AEFF00§][صاحب الونش][§ |-»#FF0000[#FF0000S#00FF00.#0000007]     " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
        outputServerLog("CHAT:§][صاحب الونش][§ |-»  " .. getPlayerName ( source ) .. ": " .. text) 
  
        elseif type == 0 then 
        cancelEvent ( ) 
        local r, g, b = getPlayerNametagColor(source) 
            if getElementData(source,"download") == false then 
                outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
                outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text ) 
            else 
                outputChatBox("#ffffff* [ #ff0000Downloading #ffffff] #999999" .. getPlayerName(source) .. ": #ffffff" .. text,root,r,g,b,true) 
            end 
        end 
end 
addEventHandler("onPlayerChat", getRootElement(), chatbox) 
  
function s3d() 
    outputChatBox ( "~|#0000ffTAG#FFFF00|~ ADMIN #D4A017 BY #C38EC7 ~|#FF00FFMJ#000000NON#C38EC7|~", source, 0, 0, 0, true ) 
end 
addEventHandler("onPlayerJoin", getRootElement(), s3d) 
  
addEventHandler("onPlayerJoin",root, 
    function () 
        setElementData(source,"download",true) 
    end 
) 
  
addEventHandler("onPlayerWasted",root, 
    function () 
        setElementData(source,"download",false) 
    end 
) 

يا فيسبوك هذا المود يختلف عن اللي انا مركبه بالسيرفر

يعني ما ينفع اعيد التاجات مرة ثانية هنا لانه يبي وقت ><

Link to comment
ليه ياكنق بازوكا مره وحده : (

لاتقول لي تحقق من حساب الاعب ؟

+ تزوير استخدم ,

isGuestAccount 

">< مدري وش أقول ووش أخلي

---

: بالنسبة لصاحب الموضوع، إستخدم

-- At Server Side: 
Event: "onPlayerJoin" 
setElementData 
  
-- At Client Side: 
Event: "onClientResourceStart" 
isTransferBoxActive 
setElementData 
setTimer 

.. للتحقق من أن اللاعب انتهى من تحميل المودات أم لا getElementData وفي مود التاج حقكـ إستخدم وظيفة

Link to comment
  
        elseif type == 0 then 
        cancelEvent ( ) 
        local r, g, b = getPlayerNametagColor(source) 
            if getElementData(source,"download") == false then 
                outputChatBox ( " " .. getPlayerName ( source ) .. ":#ffFFff " .. text, getRootElement(), r, g, b, true ) 
                outputServerLog( "CHAT: " .. getPlayerName ( source ) .. ": " .. text ) 
            else 
                outputChatBox("#ffffff* [ #ff0000Downloading #ffffff] #999999" .. getPlayerName(source) .. ": #ffffff" .. text,root,r,g,b,true) 
            end 
        end 
end 
addEventHandler("onPlayerChat", root, chatbox) 
  
function s3d() 
    outputChatBox ( "~|#0000ffTAG#FFFF00|~ ADMIN #D4A017 BY #C38EC7 ~|#FF00FFMJ#000000NON#C38EC7|~", source, 0, 0, 0, true ) 
end 
addEventHandler("onPlayerJoin", getRootElement(), s3d) 
  
addEventHandler("onPlayerJoin",root, 
    function () 
        setElementData(source,"download",true) 
    end 
) 
  
addEventHandler("onPlayerWasted",root, 
    function () 
        setElementData(source,"download",false) 
    end 
) 

Link to comment
الايفنت غلط المفروض

onPlayerSpawn

عشان على طول يتغير الاسم بعد مايحمل

مو بعد مايموت !

onPlayerWasted لا هذا ولا ذاك، كلها غلط .. لنفرض انا ماخلص تحميلي ومتت ورحت للبداية وقتها رح يوصل إشارة إلى حدث

! وانا مازلت احمل المودات onPlayerSpawn وحدث

Link to comment

معك حق بذي ,

اجل يسوي

Custom Event

ويسميه اللي يسميه ,

ويتحقق من التحميل اذا خلص يسوي تريقر له , ويسوي

setElementData ( source, 'download', false ) 
Link to comment
السلام عليكم ورحمة الله تعالى وبركاته

كيف حالكم يا شباب

شباب ابي اسوي مود

لما يكون الشخص تتحمل المودات معاه يححطه بقروب اسمه download

علشان اسوي له تاج واعرف انه يحمل

وبس يخلص تحميل يشيله من القروب

اتمنى لو في احد يعرف شلون يقولي

والسلام خير ختام

و ضيف اللاعب في تيبل onPlayerJoin اول ما يدخل لاعب السيرفر استخدم الأفنت

و تحقق ان كان موجود في التيبلonPlayerChat لما يتكلم في الشات استخدم الأفنت

outputChatBox و cancelEvent و سوي له تاج بـ

isTransferBoxActive في الكلينت استخدم الفنكشن ذا عشان تعرف في تحميل شغال ولا لا

إذا مافيه تحميل سوي تريقر للسيرفر و احذف اللاعب من التيبل إذا ما فيه تحميل شغال سوي تايمر يتحقق مره ثانية

Link to comment
معك حق بذي ,

اجل يسوي

Custom Event

ويسميه اللي يسميه ,

ويتحقق من التحميل اذا خلص يسوي تريقر له , ويسوي

setElementData ( source, 'download', false ) 

: مافهمت وش تقصد، لكن بغض النظر هذه أبسط طريقة للي طلبه

: بالنسبة لصاحب الموضوع، إستخدم
-- At Server Side: 
Event: "onPlayerJoin" 
setElementData 
  
-- At Client Side: 
Event: "onClientResourceStart" 
isTransferBoxActive 
setElementData 
setTimer 

.. للتحقق من أن اللاعب انتهى من تحميل المودات أم لا getElementData وفي مود التاج حقكـ إستخدم وظيفة

--------

و ضيف اللاعب في تيبل onPlayerJoin اول ما يدخل لاعب السيرفر استخدم الأفنت

و تحقق ان كان موجود في التيبلonPlayerChat لما يتكلم في الشات استخدم الأفنت

outputChatBox و cancelEvent و سوي له تاج بـ

isTransferBoxActive في الكلينت استخدم الفنكشن ذا عشان تعرف في تحميل شغال ولا لا

إذا مافيه تحميل سوي تريقر للسيرفر و احذف اللاعب من التيبل إذا ما فيه تحميل شغال سوي تايمر يتحقق مره ثانية

:mrgreen: قصدكـ إذا فيه تحميل شغال يسوي تايمر يتحقق مره ثانية

إذا مافيه تحميل سوي تريقر للسيرفر و احذف اللاعب من التيبل إذا ما فيه تحميل شغال سوي تايمر يتحقق مره ثانية
Link to comment

اقصد ايفنت من كتابته , يعني

addEvent('Remove', true) 
addEventHandler('Remove', root, 
function ( ) 
setElementData(source,'download', false) 
..... 

ويستخدم وظيفة

getElementData  

بسكربت التاج ,

Link to comment
اقصد ايفنت من كتابته , يعني

addEvent('Remove', true) 
addEventHandler('Remove', root, 
function ( ) 
setElementData(source,'download', false) 
..... 

ويستخدم وظيفة

getElementData  

بسكربت التاج ,

وكيف يبي يعرف ان التحميل خلص عشان يوصل اشارة لهالحدث؟

Link to comment

يسوي التايمر والتحقق بسكربت كلاينت لحال , حلو ,

setTimer --- to update the check 
if isTransferBoxActive()  == false  then  ---- to check 
triggerServerEvent('Remove', localPlayer ) 
  

او ,

يستخدم نفس الخطوات ,

ويغير التريقر ,

triggerEvent  

اذا يبي بنفس السكربت

بس الطريقة معقده شوي

طريقتك وطريقة تابل اسهل له ,

Link to comment

و ضيف اللاعب في تيبل onPlayerJoin اول ما يدخل لاعب السيرفر استخدم الأفنت

و تحقق ان كان موجود في التيبلonPlayerChat لما يتكلم في الشات استخدم الأفنت

outputChatBox و cancelEvent و سوي له تاج بـ

isTransferBoxActive في الكلينت استخدم الفنكشن ذا عشان تعرف في تحميل شغال ولا لا

إذا مافيه تحميل سوي تريقر للسيرفر و احذف اللاعب من التيبل إذا ما فيه تحميل شغال سوي تايمر يتحقق مره ثانية

:mrgreen: قصدكـ إذا فيه تحميل شغال يسوي تايمر يتحقق مره ثانية

إذا مافيه تحميل سوي تريقر للسيرفر و احذف اللاعب من التيبل إذا ما فيه تحميل شغال سوي تايمر يتحقق مره ثانية

._. لوول خطأ مطبعي صراحه حوسة لما تكتب حرف انجليزي و تبي تكتب جنبة كلام عربي

Link to comment
السلام عليكم ورحمة الله تعالى وبركاته

كيف حالكم يا شباب

شباب ابي اسوي مود

لما يكون الشخص تتحمل المودات معاه يححطه بقروب اسمه download

علشان اسوي له تاج واعرف انه يحمل

وبس يخلص تحميل يشيله من القروب

اتمنى لو في احد يعرف شلون يقولي

والسلام خير ختام

و ضيف اللاعب في تيبل onPlayerJoin اول ما يدخل لاعب السيرفر استخدم الأفنت

و تحقق ان كان موجود في التيبلonPlayerChat لما يتكلم في الشات استخدم الأفنت

outputChatBox و cancelEvent و سوي له تاج بـ

isTransferBoxActive في الكلينت استخدم الفنكشن ذا عشان تعرف في تحميل شغال ولا لا

إذا مافيه تحميل سوي تريقر للسيرفر و احذف اللاعب من التيبل إذا ما فيه تحميل شغال سوي تايمر يتحقق مره ثانية

وليش اضيفه بتيبل ؟ :?:

Link to comment
السلام عليكم ورحمة الله تعالى وبركاته

كيف حالكم يا شباب

شباب ابي اسوي مود

لما يكون الشخص تتحمل المودات معاه يححطه بقروب اسمه download

علشان اسوي له تاج واعرف انه يحمل

وبس يخلص تحميل يشيله من القروب

اتمنى لو في احد يعرف شلون يقولي

والسلام خير ختام

و ضيف اللاعب في تيبل onPlayerJoin اول ما يدخل لاعب السيرفر استخدم الأفنت

و تحقق ان كان موجود في التيبلonPlayerChat لما يتكلم في الشات استخدم الأفنت

outputChatBox و cancelEvent و سوي له تاج بـ

isTransferBoxActive في الكلينت استخدم الفنكشن ذا عشان تعرف في تحميل شغال ولا لا

إذا مافيه تحميل سوي تريقر للسيرفر و احذف اللاعب من التيبل إذا ما فيه تحميل شغال سوي تايمر يتحقق مره ثانية

وليش اضيفه بتيبل ؟ :?:

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...