FRoTE-502 Posted July 29, 2014 Share Posted July 29, 2014 السلام عليكم ورحمة الله وبركاته ابي كود اذا واحد معه تحميل يوديه احداثيات معينة ياريت الكود جاهز + Download اذا معه تحميل يجي في الشات Link to comment
Max+ Posted July 29, 2014 Share Posted July 29, 2014 --- سيرفر 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
FRoTE-502 Posted July 29, 2014 Author Share Posted July 29, 2014 --- سيرفر 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
FRoTE-502 Posted July 30, 2014 Author Share Posted July 30, 2014 ي ماكس كود اذا معك تحميل ينقلك ماضبط ؟؟ ليش ! Link to comment
shwaeki Posted July 30, 2014 Share Posted July 30, 2014 شي طبيعي لانة مستخدم "onClientResourceStart" لما يشتغل المود و لما يشتغل يكون التحميل خلص Link to comment
FRoTE-502 Posted July 30, 2014 Author Share Posted July 30, 2014 شي طبيعي لانة مستخدم"onClientResourceStart" لما يشتغل المود و لما يشتغل يكون التحميل خلص +1 يب صحيح ض1 Link to comment
#DRAGON!FIRE Posted July 30, 2014 Share Posted July 30, 2014 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
FRoTE-502 Posted July 30, 2014 Author Share Posted July 30, 2014 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
#DRAGON!FIRE Posted July 30, 2014 Share Posted July 30, 2014 بجانب سيرفر ضيف لحدث دخول اللاعب استخدم سبوان بلير Link to comment
FRoTE-502 Posted July 30, 2014 Author Share Posted July 30, 2014 بجانب سيرفر ضيف لحدث دخول اللاعب استخدم سبوان بلير مشكور زآحف 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
The Don Posted July 30, 2014 Share Posted July 30, 2014 addEventHandler( "onPlayerJoin", root, function( ) setElementData( source, "download", "Download" ) spawnPlayer( source,326.87582397461,2542.5478515625,16.806928634644,0,IDSkin) end ) IDSkin = رقم الشخصية واذا تبي بدون شخصيه احذفه +احذف رقم صفر اخر شي و ما عندك مشكله Link to comment
FRoTE-502 Posted July 31, 2014 Author Share Posted July 31, 2014 addEventHandler( "onPlayerJoin", root, function( ) setElementData( source, "download", "Download" ) spawnPlayer( source,326.87582397461,2542.5478515625,16.806928634644,0,IDSkin) end ) IDSkin = رقم الشخصية واذا تبي بدون شخصيه احذفه +احذف رقم صفر اخر شي و ما عندك مشكله ماضبط Link to comment
AboShanab Posted July 31, 2014 Share Posted July 31, 2014 fadeCamera + setCameraTarget Link to comment
FRoTE-502 Posted July 31, 2014 Author Share Posted July 31, 2014 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
TAPL Posted July 31, 2014 Share Posted July 31, 2014 ليه ما تجربه و تكتشف بنفسك؟ true تحطه fadeCamera المفروض Link to comment
iMr.TZ[W]ER Posted July 31, 2014 Share Posted July 31, 2014 ليه ما تجربه و تكتشف بنفسك؟true تحطه fadeCamera المفروض ايش هو الفيد كاميرا Link to comment
AboShanab Posted July 31, 2014 Share Posted July 31, 2014 يخلي الكاميرا السودا حقتك الى عادية يعني يمديك تلعب مثل اول م تخش سسيرفر م فيه قيم مود تلققى الشاشة لونها سودة هذا يخليها عادية يعني كانك جالس تلعب Link to comment
iMr.TZ[W]ER Posted July 31, 2014 Share Posted July 31, 2014 يخلي الكاميرا السودا حقتك الى عادية يعني يمديك تلعبمثل اول م تخش سسيرفر م فيه قيم مود تلققى الشاشة لونها سودة هذا يخليها عادية يعني كانك جالس تلعب يخلي الشاشة سودة ولا يخليها سودة وما اقدر العب ؟ يعني هي شبيهة بالكاميرا ماتركس ولا لا Link to comment
AboShanab Posted July 31, 2014 Share Posted July 31, 2014 ماله دخل بالكاميرا متركس انت رح للمربع الابيض في الادمنية واكتب fadeCamera ( false ) وحطها كلنت اذا صارت الشاشة سوده اكتب fadeCamera ( true ) وحطها كلنت وتعرف وش فايدتها Link to comment
shwaeki Posted July 31, 2014 Share Posted July 31, 2014 ماله دخل بالكاميرا متركسانت رح للمربع الابيض في الادمنية واكتب fadeCamera ( false ) وحطها كلنت اذا صارت الشاشة سوده اكتب fadeCamera ( true ) وحطها كلنت وتعرف وش فايدتها مهو ال spawnPlayer فية خاصية fadeCamera ليش يعاود يستخدمها ؟؟ Link to comment
TAPL Posted July 31, 2014 Share Posted July 31, 2014 ماله دخل بالكاميرا متركسانت رح للمربع الابيض في الادمنية واكتب fadeCamera ( false ) وحطها كلنت اذا صارت الشاشة سوده اكتب fadeCamera ( true ) وحطها كلنت وتعرف وش فايدتها مهو ال spawnPlayer فية خاصية fadeCamera ليش يعاود يستخدمها ؟؟ https://wiki.multitheftauto.com/wiki/SpawnPlayer افتح الرابط و اقرأ الملاحظة Link to comment
shwaeki Posted July 31, 2014 Share Posted July 31, 2014 تروح الفيد كاميرا (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
TAPL Posted July 31, 2014 Share Posted July 31, 2014 حتى في بلاي موجود شوف الكود 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
shwaeki Posted July 31, 2014 Share Posted July 31, 2014 حتى في بلاي موجودشوف الكود 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
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