i S6O Posted July 23, 2015 Share Posted July 23, 2015 (edited) بسم الله الرحمن الرحيم إبي فنكشن و حدث اذا خلص تحميل الاعب + اذا الاعب عنده تحميل لاهنتو محتاج فنكشات و حدث Edited July 24, 2015 by Guest Link to comment
i S6O Posted July 23, 2015 Author Share Posted July 23, 2015 ابي مثال واضح ; اذا فيه تحميل عند الاعب , يسوي كاميرا ماتركس واذا خلص تطلع نافذه لإهنتو مثال واضح Link to comment
iMr.SFA7 Posted July 23, 2015 Share Posted July 23, 2015 (edited) -- يسوي ماتريكس لادخل اللاعب addEventHandler("onResourceStart",resourceRoot, function( ) setCameraMatrix ( source , x , y , z ) end) -- يظهر النافذة لاخلص التحميل addEventHandler ("onClientDownloadFinish",root, function ( ) guiSetVisible ( wnd , true ) end ) -- عموما تقدر تستخدم " onClientResourceStart " Edited July 24, 2015 by Guest Link to comment
#DRAGON!FIRE Posted July 23, 2015 Share Posted July 23, 2015 هذا زي طلبكـ حق تاج داون لود .. عدل عليه .. : 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
i S6O Posted July 23, 2015 Author Share Posted July 23, 2015 طيب كودي صحيح ولا لا وهل يجيب بقات ولا لا Client function OnFineshedDownload ( ) if isTransferBoxActive ( ) then setCameraMatrix ( localPlayer, 2484.6630859375, -1669.4694824219, 13.308799743652, 2484.7941894531, -1668.5093994141, 13.555681228638, 0, 70 ) else guiSetVisible ( wnd, true ) end end addEvent ( 'Download', true ) addEventHandler ( 'Download', root, OnFineshedDownload ) Server addEventHandler ( 'onPlayerJoin', root, function ( ) triggerClientEvent ( source, 'Download', source ) end ) واذا فيه اخطا علموني وينها Link to comment
#DRAGON!FIRE Posted July 23, 2015 Share Posted July 23, 2015 كودك من الاساس خطا لان يوم خش تحققت مره وحدة لو انتهى التحميل استخدم الكود حقي . Link to comment
i S6O Posted July 23, 2015 Author Share Posted July 23, 2015 (edited) طيب الحين الكود صحيح ولا لا ؟ * Client Side : addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) if ( isTransferBoxActive ( ) == true ) then setElementData ( localPlayer, "download", true ) setCameraMatrix ( 2484.0895996094, -1660.1328125, 14.580100059509, 2484.0778808594, -1659.1502685547, 14.394464492798, 0, 70 ) else setElementData( localPlayer, 'download', false ) guiSetVisible ( wnd, true ) end end ) * Server Side : addEventHandler( "onPlayerJoin", root, function ( ) setElementData( source, "download", "Download" ) end ) Edited July 24, 2015 by Guest 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