Jump to content

مساعده في مود التسجيل


nony

Recommended Posts

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

يا شباب انا سويت مود التسجيل

الي اول مايدخل الاعب يجيه

المهم ابي اول مايدخل الاعب تشتغل موسيقى واذا سجل دخول تروح

ان شاء الله فهمتوني ^^

playSound 

Link to comment

الصوت تمام يجي اول مايدخل الاعب

لاكن مايوقف اذا سجل دخول

وفيه كود ثاني ابي مساعده فيه

الكود في نفس مود التسجيل

اول مايدخل الاعب تجي الصوره في الاحداثيات الي انا احطها

والرادار يختفي

الكود

function setCameraOnPlayerJoin()  
     fadeCamera(source, true, 5) 
setTimer ( fadeCamera, 9000, 1, source, true, 0.5 )     
 setCameraMatrix(source, 1000.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) 
  
  
end 
addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin) 
  
  
  
function hudChangerOnJoin () 
     
    showPlayerHudComponent ( source, "radar", false )  
showChat( source, false) 
end 
  
addEventHandler ( "onPlayerJoin", getRootElement(), hudChangerOnJoin ) 

واذا ماتعبتكم معي ابي حتا الشات يختفي ^^

Link to comment
بنسبه لصوت استخدم
sound = playSound("wasted.mp3") 

واستخدم

stopSound( sound ) 

عند ضغط زر تسجيل دخول او عند ضغط زر التسجيل

وينسبه لـ اخفاء الشات

setClipboard ( "" .. showChat ( false )(source) .. "" ) 

مايوقف الصوت

Sound = playSound( "sounds/join.mp3", true ) 
GUIEditor_Button[1] = stopSound( sound ) 

وبالنسبه لاخفاء الشات والرادار والصوره الي احط مكانها بالاحداثيات

مايشتغل ولا واحد منها

Link to comment

:arrowdown:

GUIEditor_Button[1] = stopSound( sound )[/lua]

:arrowup:

:lol:

ماشاء الله لأ بالله رحنا فيها حبيبي مو كيذا

حطها كيذا يالحبيب

addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY) 
if ( source ==  GUIEditor_Button[1]) then 
stopSound( sound ) 
end 
) 

Link to comment
:arrowdown:

GUIEditor_Button[1] = stopSound( sound )[/lua]

:arrowup:

:lol:

ماشاء الله لأ بالله رحنا فيها حبيبي مو كيذا

حطها كيذا يالحبيب

addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY) 
if ( source ==  GUIEditor_Button[1]) then 
stopSound( sound ) 
end 
) 

:roll::shock:

يوم حطيت الكود ماشتغل المود

اضفت end بالاخير

واشتغل بس المشكله نفسها

مايوقف الصوت

Edited by Guest
Link to comment
:arrowdown:

GUIEditor_Button[1] = stopSound( sound )[/lua]

:arrowup:

:lol:

ماشاء الله لأ بالله رحنا فيها حبيبي مو كيذا

حطها كيذا يالحبيب

addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY) 
if ( source ==  GUIEditor_Button[1]) then 
stopSound( sound ) 
end 
) 

:roll::shock:

عسى ماشر :D

Link to comment

فيه خطأ ثاني

s حرف الـ

Sound = playSound( "sounds/join.mp3", true )

stopSound( sound )

بس على فكره الطريقة ذي خطأ

كذا أول ما تضغط على الزر حتى لو كان الباس خطأ بيوقف الصوت

المفروض تسوي ترقير من السيرفر للكلينت عشان توقف الصوت

Link to comment
انا عطيته الصح هو غير الحرف :o

وغير كيذا مادري اذا هو يبي اذا كان الباسورد صح هو قال لما يضغط الزر ! ماقال لما يكون صح او خطأ لسى هو ماكمل استفساره

هي 3 اصوات صوت اول مايدخل السيرفر

وصوت اذا الباسورد خطأ

وصوت اذا يبي يسجل والاسم موجود

"^^

Link to comment

لو تبي الصوت يظهر للاعب الي دخل وبس

استخدم

server

addEventHandler("onPlayerJoin", root, 
function( ) 
    triggerClientEvent(source, "playsound", source) 
end) 

client

addEvent("playsound", true) 
addEventHandler("playsound", root, 
function( ) 
    playSound("sound.mp3") 
end) 

Link to comment
لو تبي الصوت يظهر للاعب الي دخل وبس

استخدم

server

addEventHandler("onPlayerJoin", root, 
function( ) 
    triggerClientEvent(source, "playsound", source) 
end) 

client

addEvent("playsound", true) 
addEventHandler("playsound", root, 
function( ) 
    playSound("sound.mp3") 
end) 

تسلم يا شنب %100

Link to comment

يا شباب وش المشكله في ذا الكود؟؟؟

عرضته في الصفحه الاولى

function setCameraOnPlayerJoin()  
     fadeCamera(source, true, 5) 
setTimer ( fadeCamera, 9000, 1, source, true, 0.5 )     
 setCameraMatrix(source, 1000.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) 
  
  
end 
addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin) 
  
  
  
function hudChangerOnJoin () 
     
    showPlayerHudComponent ( source, "radar", false )  
showChat( source, false) 
end 
  
addEventHandler ( "onPlayerJoin", getRootElement(), hudChangerOnJoin ) 

Link to comment
يا شباب وش المشكله في ذا الكود؟؟؟

عرضته في الصفحه الاولى

function setCameraOnPlayerJoin()  
     fadeCamera(source, true, 5) 
setTimer ( fadeCamera, 9000, 1, source, true, 0.5 )     
 setCameraMatrix(source, 1000.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) 
  
  
end 
addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin) 
  
  
  
function hudChangerOnJoin () 
     
    showPlayerHudComponent ( source, "radar", false )  
showChat( source, false) 
end 
  
addEventHandler ( "onPlayerJoin", getRootElement(), hudChangerOnJoin ) 

أنصحك وانصح كل من يسوي مثلك للمرة المليون

اخي لا تنقل امثلة من الويكي وتقولنا صلوحها

addEventHandler("onPlayerJoin", root, 
function( ) 
    fadeCamera(source, true, 5) 
        setTimer ( fadeCamera, 9000, 1, source, true, 0.5 )     
            setCameraMatrix(source, 1000.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) 
                showPlayerHudComponent ( source, "radar", false ) 
                    showChat( source, false) 
end) 

اختصرت لك كل هذا , في حدث واحد

Link to comment
يا شباب وش المشكله في ذا الكود؟؟؟

عرضته في الصفحه الاولى

function setCameraOnPlayerJoin()  
     fadeCamera(source, true, 5) 
setTimer ( fadeCamera, 9000, 1, source, true, 0.5 )     
 setCameraMatrix(source, 1000.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) 
  
  
end 
addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin) 
  
  
  
function hudChangerOnJoin () 
     
    showPlayerHudComponent ( source, "radar", false )  
showChat( source, false) 
end 
  
addEventHandler ( "onPlayerJoin", getRootElement(), hudChangerOnJoin ) 

أنصحك وانصح كل من يسوي مثلك للمرة المليون

اخي لا تنقل امثلة من الويكي وتقولنا صلوحها

addEventHandler("onPlayerJoin", root, 
function( ) 
    fadeCamera(source, true, 5) 
        setTimer ( fadeCamera, 9000, 1, source, true, 0.5 )     
            setCameraMatrix(source, 1000.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) 
                showPlayerHudComponent ( source, "radar", false ) 
                    showChat( source, false) 
end) 

اختصرت لك كل هذا , في حدث واحد

لا والله ياخوي انا مانسختها من الويكي :|

Edited by Guest
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...