ABO-SR777777A Posted November 20, 2012 Share Posted November 20, 2012 السلام عليكم ورحمه الله وبركاته شباب ابي كود اي واحد يدخل السيرفر يطلع له صوت انا احطه لاهنتم Link to comment
AhmadQTR Posted November 20, 2012 Share Posted November 20, 2012 السلام عليكم ورحمه الله وبركاتهشباب ابي كود اي واحد يدخل السيرفر يطلع له صوت انا احطه لاهنتم "onClientPlayerJoin" playSound Link to comment
iPrestege Posted November 20, 2012 Share Posted November 20, 2012 playSound https://wiki.multitheftauto.com/wiki/OnClientPlayerJoin https://wiki.multitheftauto.com/wiki/OnClientPlayerQuit Link to comment
ABO-SR777777A Posted November 20, 2012 Author Share Posted November 20, 2012 هذي حق وش https://wiki.multitheftauto.com/wiki/OnClientPlayerJoin https://wiki.multitheftauto.com/wiki/OnClientPlayerQuit اذا دخل وخرج ؟ Link to comment
AhmadQTR Posted November 20, 2012 Share Posted November 20, 2012 هذي حق وش https://wiki.multitheftauto.com/wiki/OnClientPlayerJoin https://wiki.multitheftauto.com/wiki/OnClientPlayerQuit اذا دخل وخرج ؟ يب Link to comment
iPrestege Posted November 20, 2012 Share Posted November 20, 2012 هذي حق وش https://wiki.multitheftauto.com/wiki/OnClientPlayerJoin https://wiki.multitheftauto.com/wiki/OnClientPlayerQuit اذا دخل وخرج ؟ الايفنت عند دخول وخروج الاعب Link to comment
AhmadQTR Posted November 20, 2012 Share Posted November 20, 2012 function playerJoin (thePlayer) local sound = playSound("sound.mp3") setSoundVolume(sound, 0.9) end addEventHandler("onClientPlayerJoin", getLocalPlayer(), playerJoin) sound بس غير الى اسم السوند الي انت مسميه Link to comment
./BlackBird# Posted November 20, 2012 Share Posted November 20, 2012 function playerJoin () setSoundVolume(playSound("sound.mp3"), 0.9) end addEventHandler("onClientPlayerJoin", getLocalPlayer(), playerJoin) Link to comment
TAPL Posted November 20, 2012 Share Posted November 20, 2012 السلام عليكم ورحمه الله وبركاتهشباب ابي كود اي واحد يدخل السيرفر يطلع له صوت انا احطه لاهنتم تبي الصوت يشتغل إلى الي دخل السيرفر أو إلى اللاعبين الي بالسيرفر لما يدخل لاعب؟ Link to comment
AhmadQTR Posted November 20, 2012 Share Posted November 20, 2012 السلام عليكم ورحمه الله وبركاتهشباب ابي كود اي واحد يدخل السيرفر يطلع له صوت انا احطه لاهنتم تبي الصوت يشتغل إلى الي دخل السيرفر أو إلى اللاعبين الي بالسيرفر لما يدخل لاعب؟ Link to comment
ABO-SR777777A Posted November 20, 2012 Author Share Posted November 20, 2012 اذا دخل السيرفر يطلع له صوت Link to comment
AhmadQTR Posted November 20, 2012 Share Posted November 20, 2012 function playerJoin (thePlayer) local sound = playSound("sound.mp3") setSoundVolume(sound, 0.9) end addEventHandler("onClientPlayerJoin", getLocalPlayer(), playerJoin) sound بس غير الى اسم السوند الي انت مسميه Link to comment
ABO-SR777777A Posted November 20, 2012 Author Share Posted November 20, 2012 اوكي باجرب Link to comment
TAPL Posted November 20, 2012 Share Posted November 20, 2012 اذا دخل السيرفر يطلع له صوت طبعاً ما بيشتغل الصوت إلا إذا خلص التحميل addEventHandler("onClientResourceStart", resourceRoot, function() playSound("اسم ملف الصوت هنا") end) function playerJoin (thePlayer) local sound = playSound("sound.mp3") setSoundVolume(sound, 0.9) end addEventHandler("onClientPlayerJoin", getLocalPlayer(), playerJoin) sound بس غير الى اسم السوند الي انت مسميه This event is triggered when a player joins a server. It is triggered for all players except the local player, as the local player joins the server before their client-side resources are started. It would also be possible for two players to join within a few seconds of each other and for the two players' scripts may not receive onClientPlayerJoin events as their scripts wouldn't have started yet. Link to comment
ABO-SR777777A Posted November 20, 2012 Author Share Posted November 20, 2012 جزاك الله خير تابل وجزاكم الله خير كلكم Link to comment
ABO-SR777777A Posted November 20, 2012 Author Share Posted November 20, 2012 عندي مشكله بكود ماله دخل في الموضوع عادي اطرحه Link to comment
AhmadQTR Posted November 20, 2012 Share Posted November 20, 2012 عندي مشكله بكود ماله دخل في الموضوع عادي اطرحه تفضل Link to comment
ABO-SR777777A Posted November 20, 2012 Author Share Posted November 20, 2012 هذا الكود له بدايتين addEventHandler("onPlayerWasted", root, function() outputChatBox("Wait 15 seconds.", source, 255, 255, 0, true) local Team = getPlayerTeam(source) if Team then if Team == getTeamFromName("team 1") then setTimer(spawnPlayer, 15000, 1, source, 2065.4340820313, 1540.9486083984, 10.671875) elseif Team == getTeamFromName("team 2") then setTimer(spawnPlayer, 15000, 1, source, 316.18728637695, -1774.7113037109, 4.764039516449) end else setTimer(spawnPlayer, 15000, 1, source, 2065.4340820313, 1453.8991699219, 10.671875) end end) ابي للتيم الاول شخصيه واسلحه كيف Link to comment
./BlackBird# Posted November 20, 2012 Share Posted November 20, 2012 ضيف ذذ تحت التايمر setTimer(setElementModel,15000,1,source,id) setTimer(giveWeapon,15000,1,Id,ammo) Link to comment
TAPL Posted November 20, 2012 Share Posted November 20, 2012 ضيف ذذ تحت التايمر setTimer(setElementModel,15000,1,source,id) setTimer(giveWeapon,15000,1,Id,ammo) setTimer(giveWeapon,15000,1,source,Id,ammo) Link to comment
ABO-SR777777A Posted November 20, 2012 Author Share Posted November 20, 2012 ممكن الكود جاهز Link to comment
ABO-SR777777A Posted November 20, 2012 Author Share Posted November 20, 2012 اوكي الحين باجرب Link to comment
ABO-SR777777A Posted November 20, 2012 Author Share Posted November 20, 2012 وش التايمر ذا 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