Waleed_A Posted August 31, 2013 Share Posted August 31, 2013 (edited) السلام عليكم ورحمة الله و بركاته ابي اطلب منكم اكواد الي هو اذا الواحد ضغط حرف 'L' يطلع له بالشات Arabic: و يكتب الكلام الي يبيه و الكلام ذا يظهر فقط عند العرب زي ماتقول مثل اف اف اس Edited September 3, 2013 by Guest Link to comment
PaiN^ Posted August 31, 2013 Share Posted August 31, 2013 يعني انت تبغى نظام اللغات ولا بس اللغة العربية ؟ Link to comment
Waleed_A Posted August 31, 2013 Author Share Posted August 31, 2013 يعني انت تبغى نظام اللغات ولا بس اللغة العربية ؟ العربية فقط Link to comment
S4MuEL Posted August 31, 2013 Share Posted August 31, 2013 على حسب علمي ، هذآ آللي رآح تستعملة ذذ getElementsByType bindKey getPlayerCountry -- exports ! outputChatBox Link to comment
PaiN^ Posted August 31, 2013 Share Posted August 31, 2013 setElementData getElementsByType bindKey -- chatbox ! getElementData outputChatBox أحسن من انه يتحقق من البلد, يستخدم الداتا Link to comment
S4MuEL Posted August 31, 2013 Share Posted August 31, 2013 مآفي فرق بس آختصآر يمكن آلسيت آلمنت دآتآ بـ إيش يحتآجهآ ؟ ! Link to comment
PaiN^ Posted September 1, 2013 Share Posted September 1, 2013 أحسن من انه يتحقق من البلد, يستخدم الداتا + chatbox عشان كذا قلتله FFS هو طلب زي Link to comment
Blaawee Posted September 3, 2013 Share Posted September 3, 2013 #مومججرب = ) function arabicChat( thePlayer, cmd, ... ) local msg = table.concat( { ... }, ' ' ); for _, players in ipairs( getElementsByType( 'player' ) ) do if ( exports.admin:getPlayerCountry( players ) == 'SA' and msg and msg ~= '' ) then outputChatBox('Arabic | '..getPlayerName( thePlayer )..': #FFFFFF'..msg..'', players, 255, 255, 255, true ); end end end addCommandHandler( 'Arabic', arabicChat ); addEventHandler( 'onPlayerJoin',root, function( ) bindKey( source, 'l', 'down', 'chatbox', 'Arabic' ); end ); addEventHandler( 'onResourceStart', resourceRoot, function ( ) for _, player in ipairs( getElementsByType( 'player' ) ) do bindKey( player, 'l', 'down', 'chatbox', 'Arabic' ); end end ); Link to comment
Waleed_A Posted September 3, 2013 Author Share Posted September 3, 2013 #مومججرب = ) function arabicChat( thePlayer, cmd, ... ) local msg = table.concat( { ... }, ' ' ); for _, players in ipairs( getElementsByType( 'player' ) ) do if ( exports.admin:getPlayerCountry( players ) == 'SA' and msg and msg ~= '' ) then outputChatBox('Arabic | '..getPlayerName( thePlayer )..': #FFFFFF'..msg..'', players, 255, 255, 255, true ); end end end addCommandHandler( 'Arabic', arabicChat ); addEventHandler( 'onPlayerJoin',root, function( ) bindKey( source, 'l', 'down', 'chatbox', 'Arabic' ); end ); addEventHandler( 'onResourceStart', resourceRoot, function ( ) for _, player in ipairs( getElementsByType( 'player' ) ) do bindKey( player, 'l', 'down', 'chatbox', 'Arabic' ); end end ); مشكور ضبط 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