Jump to content

تمت الافادة يغلق


i S6O

Recommended Posts

بسم الله الرحمن الرحيم

إبي فنكشن و حدث

اذا خلص تحميل الاعب

+ اذا الاعب عنده تحميل

لاهنتو محتاج فنكشات و حدث

Edited by Guest
Link to comment

-- يسوي ماتريكس لادخل اللاعب  
  
addEventHandler("onResourceStart",resourceRoot, 
function( ) 
        setCameraMatrix ( source , x , y , z ) 
  end) 

  
-- يظهر النافذة لاخلص التحميل 
addEventHandler ("onClientDownloadFinish",root, 
function (   ) 
guiSetVisible ( wnd , true ) 
end 
) 
-- عموما تقدر تستخدم " onClientResourceStart " 
Edited by Guest
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

طيب كودي صحيح ولا لا

وهل يجيب بقات ولا لا

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

طيب الحين الكود صحيح ولا لا ؟

* 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 by Guest
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...