abo_7mod Posted June 20, 2015 Share Posted June 20, 2015 السلام عليكم ابي اضيف للتاج حقي , تاج الداونلود يعني اذا كان الاعب لسه يحمل Downloading يكون every one يصير التاج حقه مو ممكن مُسـآعدـة وش هي الفنكشنات؟ Link to comment
Mr.English Posted June 20, 2015 Share Posted June 20, 2015 دا انت تقدر تعمله من الاسل تسوي رتبة في الاسل وبعدين تعمل تاج وبالتوفيق Link to comment
N3xT Posted June 20, 2015 Share Posted June 20, 2015 * Server addEventHandler( "onPlayerJoin", root, function( ) setElementData( source, "download", "Download" ) end ) function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) if ( getElementData ( source, "download" ) == "Download" ) then cancelEvent ( ) outputChatBox("[ Downloading ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", root, chatbox) * Client addEventHandler( "onClientResourceStart", resourceRoot, function( ) TimerDownload = setTimer( function( ) if ( isTransferBoxActive ( ) ~= true ) then setElementData( localPlayer, "download", false ) killTimer( TimerDownload ) end end, 10000, 0 ) end ) Link to comment
TAPL Posted June 21, 2015 Share Posted June 21, 2015 * Server addEventHandler( "onPlayerJoin", root, function( ) setElementData( source, "download", "Download" ) end ) function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) if ( getElementData ( source, "download" ) == "Download" ) then cancelEvent ( ) outputChatBox("[ Downloading ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", root, chatbox) * Client addEventHandler( "onClientResourceStart", resourceRoot, function( ) TimerDownload = setTimer( function( ) if ( isTransferBoxActive ( ) ~= true ) then setElementData( localPlayer, "download", false ) killTimer( TimerDownload ) end end, 10000, 0 ) end ) ممكن توضح لنا ايش الهدف من سطر 6 في السيرفر سايد؟ Link to comment
N3xT Posted June 21, 2015 Share Posted June 21, 2015 * Server addEventHandler( "onPlayerJoin", root, function( ) setElementData( source, "download", "Download" ) end ) function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) if ( getElementData ( source, "download" ) == "Download" ) then cancelEvent ( ) outputChatBox("[ Downloading ] " .. name .. ":#ffffff " .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", root, chatbox) * Client addEventHandler( "onClientResourceStart", resourceRoot, function( ) TimerDownload = setTimer( function( ) if ( isTransferBoxActive ( ) ~= true ) then setElementData( localPlayer, "download", false ) killTimer( TimerDownload ) end end, 10000, 0 ) end ) ممكن توضح لنا ايش الهدف من سطر 6 في السيرفر سايد؟ ماله هدف , كنت مستخدمه عندي ونسيت احذفه من الكود Link to comment
#DRAGON!FIRE Posted June 21, 2015 Share Posted June 21, 2015 iBlack.NexT ثاني مرهـ اذكر ع الاقل من سوا الكود 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
N3xT Posted June 21, 2015 Share Posted June 21, 2015 iBlack.NexT ثاني مرهـ اذكر ع الاقل من سوا الكود 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
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