Jump to content

كود Download


Recommended Posts

--- سيرفر

addEvent( "onClientSend", true ) 
addEventHandler( "onClientSend", root, 
function(player) 
    spawnPlayer(player,365 + math.random(1,5),2537 - math.random(1,5), 17,90) 
    outputChatBox("test") 
end) 

--- كلينت

function checkTransfer() 
    if isTransferBoxActive() then 
        local timer = setTimer(checkTransfer,2000,0) 
    else  
    triggerServerEvent("onClientSend",localPlayer) 
        killTimer(timer) 
    end 
end 
addEventHandler("onClientResourceStart",resourceRoot,checkTransfer) 
Link to comment
--- سيرفر

addEvent( "onClientSend", true ) 
addEventHandler( "onClientSend", root, 
function(player) 
    spawnPlayer(player,365 + math.random(1,5),2537 - math.random(1,5), 17,90) 
    outputChatBox("test") 
end) 

--- كلينت

function checkTransfer() 
    if isTransferBoxActive() then 
        local timer = setTimer(checkTransfer,2000,0) 
    else  
    triggerServerEvent("onClientSend",localPlayer) 
        killTimer(timer) 
    end 
end 
addEventHandler("onClientResourceStart",resourceRoot,checkTransfer) 

وقسم بالله انت احسن واحد :)

بس ابي اذا معه تحميل يجي في الشات Download <

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

اخوي زاحف هذا يجي في الشات Donwnload هذا ضبط معي

انا ابي اذا معه تحميل ينقله ل مكان معين :)

Link to comment
بجانب سيرفر ضيف لحدث دخول اللاعب استخدم سبوان بلير

مشكور زآحف

Server

addEventHandler( "onPlayerJoin", root, function(  ) 
 setElementData( source, "download", "Download" ) 
   spawnPlayer(player,326.87582397461 + math.random(1,5),2542.5478515625 - math.random(1,5), 16.806928634644) 
end ) 

الكود صحيح ! ؟

Link to comment
addEventHandler( "onPlayerJoin", root,  
function(  ) 
    setElementData( source, "download", "Download" ) 
    spawnPlayer( source,326.87582397461,2542.5478515625,16.806928634644,0,IDSkin) 
end 
) 

IDSkin = رقم الشخصية

واذا تبي بدون شخصيه احذفه +احذف رقم صفر اخر شي و ما عندك مشكله

Link to comment
addEventHandler( "onPlayerJoin", root,  
function(  ) 
    setElementData( source, "download", "Download" ) 
    spawnPlayer( source,326.87582397461,2542.5478515625,16.806928634644,0,IDSkin) 
end 
) 

IDSkin = رقم الشخصية

واذا تبي بدون شخصيه احذفه +احذف رقم صفر اخر شي و ما عندك مشكله

ماضبط :cry:

Link to comment
fadeCamera

+

setCameraTarget

addEventHandler( "onPlayerJoin", root, 
function(  ) 
fadeCamera(source,false) 
    setElementData( source, "download", "Download" ) 
    spawnPlayer( source,326.87582397461,2542.5478515625,16.806928634644,0,46) 
setCameraTarget(source,source) 
  
end 
) 

الكود صحيح ولا في خطأ ؟؟

Link to comment

يخلي الكاميرا السودا حقتك الى عادية يعني يمديك تلعب

مثل اول م تخش سسيرفر م فيه قيم مود تلققى الشاشة لونها سودة

هذا يخليها عادية يعني كانك جالس تلعب

Link to comment
يخلي الكاميرا السودا حقتك الى عادية يعني يمديك تلعب

مثل اول م تخش سسيرفر م فيه قيم مود تلققى الشاشة لونها سودة

هذا يخليها عادية يعني كانك جالس تلعب

يخلي الشاشة سودة

ولا يخليها سودة وما اقدر العب ؟

يعني هي شبيهة بالكاميرا ماتركس ولا لا

Link to comment

ماله دخل بالكاميرا متركس

انت رح للمربع الابيض في الادمنية واكتب

fadeCamera ( false )

وحطها كلنت

اذا صارت الشاشة سوده اكتب

fadeCamera ( true )

وحطها كلنت

وتعرف وش فايدتها :)

Link to comment
ماله دخل بالكاميرا متركس

انت رح للمربع الابيض في الادمنية واكتب

fadeCamera ( false )

وحطها كلنت

اذا صارت الشاشة سوده اكتب

fadeCamera ( true )

وحطها كلنت

وتعرف وش فايدتها :)

مهو ال

spawnPlayer 

فية خاصية

fadeCamera  

ليش يعاود يستخدمها ؟؟

Link to comment
ماله دخل بالكاميرا متركس

انت رح للمربع الابيض في الادمنية واكتب

fadeCamera ( false )

وحطها كلنت

اذا صارت الشاشة سوده اكتب

fadeCamera ( true )

وحطها كلنت

وتعرف وش فايدتها :)

مهو ال

spawnPlayer 

فية خاصية

fadeCamera  

ليش يعاود يستخدمها ؟؟

https://wiki.multitheftauto.com/wiki/SpawnPlayer

افتح الرابط و اقرأ الملاحظة

Link to comment

تروح الفيد كاميرا (Play) اها انا فكري انة فيها لانو لما ارسبن في

Note: setCameraTarget must be used to focus on the player. Also, all players have their camera initially faded out after connect. To ensure that the camera is faded in, please do a fadeCamera after. 

Link to comment

حتى في بلاي موجود

شوف الكود

function spawn(player) 
    if not isElement(player) then return end 
    if get("spawnreset") == "onSpawn" then 
        spawnpoint = getRandomSpawnPoint() 
    end 
    exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) 
    repeat until setElementModel(player,math.random(312)) 
    fadeCamera(player, true) -- هنا 
    setCameraTarget(player, player) 
    showChat(player, true) 
end 

Link to comment
حتى في بلاي موجود

شوف الكود

function spawn(player) 
    if not isElement(player) then return end 
    if get("spawnreset") == "onSpawn" then 
        spawnpoint = getRandomSpawnPoint() 
    end 
    exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) 
    repeat until setElementModel(player,math.random(312)) 
    fadeCamera(player, true) -- هنا 
    setCameraTarget(player, player) 
    showChat(player, true) 
end 

يب شفتها انا كنت افكرها من السبون

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