Jump to content

حل مشكلة الصوت في الجيم مود


Recommended Posts

لو سمحتم انا كنت عايز احط صوت راجل يقول مثلآ خطأ لما تكتب باسورد خطأ وصممت الصوت وعملت الأضافة

وعملت الترايقر من السلينت للسيرفر

واشتغلت

جيت علشان اضيف لما مثلآ يعمل حساب وهوا مسجل يقولوا انت بالفعل قمت بالتسجيل

ولاكن ها المرة ما اشتغلت

وقالي في اف 8 bass error in load media

Client

  
local sound = playSound("ss.mp3") ---- هنا الأغنية 
addEvent ("soundW", true ) 
addEventHandler ( "soundW", root, ------ وذا كود انا عمله علشان يوطي صوت الأغنية 
    function () 
        setTimer( function() 
        setSoundVolume(sound, 0.9) 
        end, 50, 1) 
        setTimer( function() 
        setSoundVolume(sound, 0.-- s8) -->
        end, 100, 1) 
        setTimer( function() 
        setSoundVolume(sound, 0.7) 
        end, 150, 1) 
        setTimer( function() 
        setSoundVolume(sound, 0.6) 
        end, 200, 1) 
        setTimer( function() 
        setSoundVolume(sound, 0.5) 
        end, 250, 1) 
        setTimer( function() 
        setSoundVolume(sound, 0.4) 
        end, 300, 1) 
        setTimer( function() 
        setSoundVolume(sound, 0.3) 
        end, 350, 1) 
        setTimer( function() 
        setSoundVolume(sound, 0.2) 
        end, 400, 1) 
        setTimer( function() 
        setSoundVolume(sound, 0.3) 
        end, 2450, 1) 
        setTimer( function() 
        setSoundVolume(sound, 0.4) 
        end, 2500, 1) 
        setTimer( function() 
        setSoundVolume(sound, 0.5) 
        end, 2550, 1) 
        setTimer( function() 
        setSoundVolume(sound, 0.6) 
        end, 2600, 1) 
        setTimer( function() 
        setSoundVolume(sound, 0.7) 
        end, 2650, 1) 
        setTimer( function() 
        setSoundVolume(sound, 0.-- s8) -->
        end, 2700, 1) 
        setTimer( function() 
        setSoundVolume(sound, 0.9) 
        end, 2750, 1) 
        setTimer( function() 
        setSoundVolume(sound, 1) 
        end, 2800, 1) 
    end 
) 
  
addEvent ("W1", true ) ----- ودا صوت خطأ في الباصورد او الأسم الي شغال بنجاح 
addEventHandler ( "W1", root, 
    function () 
        setTimer( function() 
        sound2 = playSound("W1.mp3") 
        end, 50, 1) 
    end 
) 
  
انما الباقي خاطأ  
  
addEvent ("W2", true ) 
addEventHandler ( "W2", root, 
    function () 
        setTimer( function() 
        sound3 = playSound("W2.mp3") 
        end, 50, 1) 
    end 
) 
  
addEvent ("W3", true ) 
addEventHandler ( "W3", root, 
    function () 
        setTimer( function() 
        sound4 = playSound("W3.mp3") 
        end, 50, 1) 
    end 
) 
  
addEvent ("W4", true ) 
addEventHandler ( "W4", root, 
    function () 
        setTimer( function() 
        sound5 = playSound("W4.mp3") 
        end, 50, 1) 
    end 
) 
  

Server

  
addEvent("onLoginWith",true) 
addEventHandler("onLoginWith",root, 
    function (user,pass) 
        local acc = getAccount(user,pass) 
        local serial = getPlayerSerial(source) 
        if acc then 
            logIn(source,acc,pass) 
            outputChatBox("* لقد تم تسجيل الدخول بنجاح",source,0,255,0) 
            AddPlayer(serial,user,pass) 
            triggerClientEvent(source,"onCl",source) 
        else 
            outputChatBox("* خطأ في اسم المستخدم او كلمة المرور",source,255,0,0) 
            triggerClientEvent ("soundW", source) 
            triggerClientEvent ("W1", source) 
        end 
    end 
) 
  
addEvent("onLogin",true) 
addEventHandler("onLogin",root, 
    function (user,pass) 
        local acc = getAccount(user,pass) 
        if acc then 
            logIn(source,acc,pass) 
            outputChatBox("* لقد تم تسجيل الدخول بنجاح",source,0,255,0) 
            triggerClientEvent(source,"onCl",source) 
        else 
            triggerClientEvent ("soundW", source) 
            triggerClientEvent ("W1", source) 
            outputChatBox("* خطأ في اسم المستخدم او كلمة المرور",source,255,0,0) 
        end 
    end 
) 
  
addEvent("onReg", true) 
addEventHandler("onReg", root, 
    function (user,pass) 
        if not ( isGuestAccount ( getPlayerAccount ( source ) ) ) then 
        triggerClientEvent ("W2", source) 
        triggerClientEvent ("soundW", source) 
        return triggerClientEvent ( source, "onCl", source )  
        end 
        local account = getAccount ( user ) 
        if account then 
            triggerClientEvent ("soundW", source) 
            triggerClientEvent ("W4", source) 
        else 
            addAccount(user,pass) 
            logIn ( source, getAccount ( user, pass ), pass ) 
            triggerClientEvent(source,"onCl",source) 
            outputChatBox("* تم انشاء الحساب بنجاح",source,0,255,0) 
            outputChatBox("* اسم المستخدم = " .. user,source,0,255,0) 
            outputChatBox("* رقم المرور = " .. pass,source,0,255,0) 
        end 
    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...