ABO-SR777777A Posted November 20, 2012 Posted November 20, 2012 السلام عليكم ورحمه الله وبركاته شباب ابي كود اي واحد يدخل السيرفر يطلع له صوت انا احطه لاهنتم
AhmadQTR Posted November 20, 2012 Posted November 20, 2012 السلام عليكم ورحمه الله وبركاتهشباب ابي كود اي واحد يدخل السيرفر يطلع له صوت انا احطه لاهنتم "onClientPlayerJoin" playSound
iPrestege Posted November 20, 2012 Posted November 20, 2012 playSound https://wiki.multitheftauto.com/wiki/OnClientPlayerJoin https://wiki.multitheftauto.com/wiki/OnClientPlayerQuit
ABO-SR777777A Posted November 20, 2012 Author Posted November 20, 2012 هذي حق وش https://wiki.multitheftauto.com/wiki/OnClientPlayerJoin https://wiki.multitheftauto.com/wiki/OnClientPlayerQuit اذا دخل وخرج ؟
AhmadQTR Posted November 20, 2012 Posted November 20, 2012 هذي حق وش https://wiki.multitheftauto.com/wiki/OnClientPlayerJoin https://wiki.multitheftauto.com/wiki/OnClientPlayerQuit اذا دخل وخرج ؟ يب
iPrestege Posted November 20, 2012 Posted November 20, 2012 هذي حق وش https://wiki.multitheftauto.com/wiki/OnClientPlayerJoin https://wiki.multitheftauto.com/wiki/OnClientPlayerQuit اذا دخل وخرج ؟ الايفنت عند دخول وخروج الاعب
AhmadQTR Posted November 20, 2012 Posted November 20, 2012 function playerJoin (thePlayer) local sound = playSound("sound.mp3") setSoundVolume(sound, 0.9) end addEventHandler("onClientPlayerJoin", getLocalPlayer(), playerJoin) sound بس غير الى اسم السوند الي انت مسميه
./BlackBird# Posted November 20, 2012 Posted November 20, 2012 function playerJoin () setSoundVolume(playSound("sound.mp3"), 0.9) end addEventHandler("onClientPlayerJoin", getLocalPlayer(), playerJoin)
TAPL Posted November 20, 2012 Posted November 20, 2012 السلام عليكم ورحمه الله وبركاتهشباب ابي كود اي واحد يدخل السيرفر يطلع له صوت انا احطه لاهنتم تبي الصوت يشتغل إلى الي دخل السيرفر أو إلى اللاعبين الي بالسيرفر لما يدخل لاعب؟
AhmadQTR Posted November 20, 2012 Posted November 20, 2012 السلام عليكم ورحمه الله وبركاتهشباب ابي كود اي واحد يدخل السيرفر يطلع له صوت انا احطه لاهنتم تبي الصوت يشتغل إلى الي دخل السيرفر أو إلى اللاعبين الي بالسيرفر لما يدخل لاعب؟
AhmadQTR Posted November 20, 2012 Posted November 20, 2012 function playerJoin (thePlayer) local sound = playSound("sound.mp3") setSoundVolume(sound, 0.9) end addEventHandler("onClientPlayerJoin", getLocalPlayer(), playerJoin) sound بس غير الى اسم السوند الي انت مسميه
TAPL Posted November 20, 2012 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.
ABO-SR777777A Posted November 20, 2012 Author Posted November 20, 2012 جزاك الله خير تابل وجزاكم الله خير كلكم
ABO-SR777777A Posted November 20, 2012 Author Posted November 20, 2012 عندي مشكله بكود ماله دخل في الموضوع عادي اطرحه
AhmadQTR Posted November 20, 2012 Posted November 20, 2012 عندي مشكله بكود ماله دخل في الموضوع عادي اطرحه تفضل
ABO-SR777777A Posted November 20, 2012 Author 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) ابي للتيم الاول شخصيه واسلحه كيف
./BlackBird# Posted November 20, 2012 Posted November 20, 2012 ضيف ذذ تحت التايمر setTimer(setElementModel,15000,1,source,id) setTimer(giveWeapon,15000,1,Id,ammo)
TAPL Posted November 20, 2012 Posted November 20, 2012 ضيف ذذ تحت التايمر setTimer(setElementModel,15000,1,source,id) setTimer(giveWeapon,15000,1,Id,ammo) setTimer(giveWeapon,15000,1,source,Id,ammo)
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