Jump to content

طلب كود


Recommended Posts

  • Replies 60
  • Created
  • Last Reply

Top Posters In This Topic

Posted
السلام عليكم ورحمه الله وبركاته

شباب ابي كود اي واحد يدخل السيرفر يطلع له صوت

انا احطه

لاهنتم

"onClientPlayerJoin" 
playSound 
  

ahmadsig1.png

Nobody is perfect , I'm nobody.

22771qw7.jpg

Skype : ahmad.nasser37

Posted
function playerJoin (thePlayer)  
    local sound = playSound("sound.mp3") 
    setSoundVolume(sound, 0.9) 
end 
  
addEventHandler("onClientPlayerJoin", getLocalPlayer(), playerJoin) 

sound بس غير

الى اسم السوند الي انت مسميه

ahmadsig1.png

Nobody is perfect , I'm nobody.

22771qw7.jpg

Skype : ahmad.nasser37

Posted
السلام عليكم ورحمه الله وبركاته

شباب ابي كود اي واحد يدخل السيرفر يطلع له صوت

انا احطه

لاهنتم

تبي الصوت يشتغل إلى الي دخل السيرفر أو إلى اللاعبين الي بالسيرفر لما يدخل لاعب؟

CiTLh.png
Posted
السلام عليكم ورحمه الله وبركاته

شباب ابي كود اي واحد يدخل السيرفر يطلع له صوت

انا احطه

لاهنتم

تبي الصوت يشتغل إلى الي دخل السيرفر أو إلى اللاعبين الي بالسيرفر لما يدخل لاعب؟

ahmadsig1.png

Nobody is perfect , I'm nobody.

22771qw7.jpg

Skype : ahmad.nasser37

Posted
function playerJoin (thePlayer)  
    local sound = playSound("sound.mp3") 
    setSoundVolume(sound, 0.9) 
end 
  
addEventHandler("onClientPlayerJoin", getLocalPlayer(), playerJoin) 

sound بس غير

الى اسم السوند الي انت مسميه

ahmadsig1.png

Nobody is perfect , I'm nobody.

22771qw7.jpg

Skype : ahmad.nasser37

Posted
اذا دخل السيرفر يطلع له صوت

طبعاً ما بيشتغل الصوت إلا إذا خلص التحميل

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.
CiTLh.png
Posted

هذا الكود له بدايتين

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) 

ابي للتيم الاول شخصيه واسلحه كيف

لخبطه الحربي

قناتي على اليوتوب

https://www.youtube.com/user/L5B6H1

SuB And LIke

Posted
ضيف ذذ تحت التايمر
setTimer(setElementModel,15000,1,source,id) 
setTimer(giveWeapon,15000,1,Id,ammo) 

setTimer(giveWeapon,15000,1,source,Id,ammo) 

CiTLh.png

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