#StrOnG_,) Posted January 24, 2016 Share Posted January 24, 2016 السلام عليكم شباب الحين اغلب السيرفر لما تركب موتر تعلق اللعبة عنده وبعد 10 ثواني او 15 ثانية ترجع كان عندي فنكشن يحذف التعليق لما يركب موتر بس نسيته, ابي الفنكشن ومشكورين Link to comment
#|_oskar_|# Posted January 24, 2016 Share Posted January 24, 2016 اذا كنت تقصد التعليق عند ركوب السياره بسبب الراديو تقدر تطفيه ب استخدام الكود ذا setRadioChannel Link to comment
#StrOnG_,) Posted January 24, 2016 Author Share Posted January 24, 2016 اذا كنت تقصد التعليق عند ركوب السياره بسبب الراديوتقدر تطفيه ب استخدام الكود ذا setRadioChannel يب بالضبط هذا هو الفنكشن , مشكور <3 الكود للافادة addEventHandler("onClientResourceStart", resourceRoot,function() setRadioChannel ( 0 ) end ) Link to comment
Jupi Posted January 24, 2016 Share Posted January 24, 2016 اذا كنت تقصد التعليق عند ركوب السياره بسبب الراديوتقدر تطفيه ب استخدام الكود ذا setRadioChannel يب بالضبط هذا هو الفنكشن , مشكور <3 الكود للافادة addEventHandler("onClientResourceStart", resourceRoot,function() setRadioChannel ( 0 ) end ) فلواقع كودك لن يعمل @_@ انت مسويه يحط القناة 0 عند بداية المود فبلتالي لو خرجت او دخلت من السيارة بيبقا شغال استعمل 'onVehicleEnter' و getRadioChannel Link to comment
#StrOnG_,) Posted January 25, 2016 Author Share Posted January 25, 2016 اذا كنت تقصد التعليق عند ركوب السياره بسبب الراديوتقدر تطفيه ب استخدام الكود ذا setRadioChannel يب بالضبط هذا هو الفنكشن , مشكور <3 الكود للافادة addEventHandler("onClientResourceStart", resourceRoot,function() setRadioChannel ( 0 ) end ) فلواقع كودك لن يعمل @_@ انت مسويه يحط القناة 0 عند بداية المود فبلتالي لو خرجت او دخلت من السيارة بيبقا شغال استعمل 'onVehicleEnter' و getRadioChannel اها مشكور Link to comment
بويكا Posted January 25, 2016 Share Posted January 25, 2016 function RadioOff () setRadioChannel ( 0 ) end addEventHandler ( "onVehicleEnter", getRootElement(), RadioOff) Link to comment
#|_oskar_|# Posted January 25, 2016 Share Posted January 25, 2016 function RadioOff () setRadioChannel ( 0 ) end addEventHandler ( "onVehicleEnter", getRootElement(), RadioOff) onClientVehicleEnter Link to comment
#StrOnG_,) Posted January 25, 2016 Author Share Posted January 25, 2016 function RadioOff () setRadioChannel ( 0 ) end addEventHandler ( "onVehicleEnter", getRootElement(), RadioOff) addEventHandler ( "onVehicleEnter", root, ) function ( ) setRadioChannel ( 0 ) end ) onVehicleEnter Only Server !! onClientVehicleEnter Link to comment
بويكا Posted January 25, 2016 Share Posted January 25, 2016 function RadioOff () setRadioChannel ( 0 ) end addEventHandler ( "onClientVehicleEnter", getRootElement(), RadioOff) تمام Link to comment
بويكا Posted January 25, 2016 Share Posted January 25, 2016 getRootElement اختصارهأ root ?? Link to comment
#|_oskar_|# Posted January 25, 2016 Share Posted January 25, 2016 getRootElement اختصارهأ root ?? يب Link to comment
بويكا Posted January 25, 2016 Share Posted January 25, 2016 function PlayerSpawn ( ) local NamePlayer = getPlayerName( source ) outputChatBox ( NamePlayer .. " has spawned!" ) end addEventHandler( "onPlayerSpawn", root, PlayerSpawn ) كذذأ ؟ Link to comment
#|_oskar_|# Posted January 25, 2016 Share Posted January 25, 2016 ايوه روت يعني للكل تقدر تستخدمها بحيث انها تظهر الكلام فى الشات لكل اللاعبين outputChatBox ( NamePlayer .. " has spawned!", root,255,0,0) 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