Jump to content

onPlayerChat


Recommended Posts

Posted

سلام عليكم

آبي لو شخص تكلم وهو ميوت

يطلع له رسآلة تقوله آنت ميوت لآ يمكنك آلتكلم

آقدر آسويهآ ولآ لآ عشآن رسآلة


say: You are muted

330xum0.jpg

p_862d3zvf1.png

* تم آلآفتتآح مرة اخري , حياكم الله *

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

Posted
1 hour ago, Trefeor said:

ايوة تقدر 

onPlayerChat

isPlayerMuted

يب مآ تطلع

function onChat()
		if isPlayerMuted(source) then
		outputChatBox("mute",source,255,0,0)
		end
	end
addEventHandler("onPlayerChat", getRootElement(), onChat)

تطلع say : you are muted فقط

330xum0.jpg

p_862d3zvf1.png

* تم آلآفتتآح مرة اخري , حياكم الله *

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

Posted

لو مركب مود تاجات , 
اكيد م رح تجي ..

لأن بالإيفنت نفسه الي بمود التاجات يتسوى 
cancelEvent( )

وتجي رسالة ..
فأنت تقدربهذي الحالة تعدل ع لوحة الادمنية تروح السطر الي يطلع هذي الرسالة وحط الي تبيهه ..

أفدتك بشيء ؟ , لا تنسى اللايك ^^
p_801ngdps1.gif

Posted
3 hours ago, [T]|O|[P]George said:

حاطط تاجات؟

يب

2 hours ago, #Ram said:

لو مركب مود تاجات , 
اكيد م رح تجي ..

لأن بالإيفنت نفسه الي بمود التاجات يتسوى 
cancelEvent( )

وتجي رسالة ..
فأنت تقدربهذي الحالة تعدل ع لوحة الادمنية تروح السطر الي يطلع هذي الرسالة وحط الي تبيهه ..

آقدر آعدل علي رسآلة say : you are muted ?

330xum0.jpg

p_862d3zvf1.png

* تم آلآفتتآح مرة اخري , حياكم الله *

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

Posted (edited)
function onPreEvent( _, _, source)
	if( isPlayerMuted( source ) ) then
		outputChatBox("You're muted!", source, 255, 0, 0)
	end
end
addDebugHook( "preEvent", onPreEvent, { "onPlayerChat" } )

جرب هذا : )

Edited by iMr.WiFi..!

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted
36 minutes ago, iMr.WiFi..! said:

function onPreEvent( _, _, source)
	if( isPlayerMuted( source ) ) then
		outputChatBox("You're muted!", source, 255, 0, 0)
	end
end
addDebugHook( "preEvent", onPreEvent, { "onPlayerChat" } )

جرب هذا : )

مآ ظبطت ض1

 

330xum0.jpg

p_862d3zvf1.png

* تم آلآفتتآح مرة اخري , حياكم الله *

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

Posted
if ( isPlayerMuted( source ) ) then 
outputChatBox( 'لا تستطيع التكلم الأن يجب عليك لإنتظار الميوت !', source, 255, 0, 0 ) return end

سوتلك الكود من الهاتف
فاعذرني لو في خطا

________________

My new Script Log Admin :

حصريا : لوق او حفظ سجيلات السيرفر : الموضوع

Be optimistic and you will succeed
______________________________________

 

Posted (edited)
function OutMuted ( source, &--variable state
    ,&--varible tagsource)
    while( onPreEvent || source ) then
    bool OutMutedServer ( string text [, element visibleTo = getRootElement(), int r = 231, int g = 217, int b = 176, bool colorCoded = false ] )
    bool OutMutedClient ( string text [, int r = 231, int g = 217, int b = 176, bool colorCoded = false ] )
    end
  addEventHandler("onPlayerChat", getRootElement(), OutMuted)
    

stepbystep.

Edited by NmLa
  • Like 1

works at MCC

p_11078thil1.jpg

@NmLa

Posted
1 hour ago, NmLa said:

function OutMuted ( source, &--variable state
    ,&--varible tagsource)
    while( onPreEvent || source ) then
    bool OutMutedServer ( string text [, element visibleTo = getRootElement(), int r = 231, int g = 217, int b = 176, bool colorCoded = false ] )
    bool OutMutedClient ( string text [, int r = 231, int g = 217, int b = 176, bool colorCoded = false ] )
    end
  addEventHandler("onPlayerChat", getRootElement(), OutMuted)
    

stepbystep.

اشوف أنك ناسي  ')'

  • Like 1

IT Projet Manager

 

Posted (edited)

لو مش مركب تاجات حتي

لو انتا مصكوك ميوت الايفينت حق 

onPlayerChat

بيتكنسل تلقائي

عشان كدا عدل الرسالة 

من ملفات اللعبه نفسها

علي حسب تجربتي 

والله اعلم

Edited by KillerX

                                                         هل ساعدتك في شئ ؟؟؟؟

                                                Mmpe7Jm.gif

                                                   latest?cb=20170707023932                 

                                            KillerX#9078

Posted
5 hours ago, KillerX said:

لو مش مركب تاجات حتي

لو انتا مصكوك ميوت الايفينت حق 

onPlayerChat

بيتكنسل تلقائي

عشان كدا عدل الرسالة 

من ملفات اللعبه نفسها

علي حسب تجربتي 

والله اعلم

يب وش آلملف آلآصلي عشآن آعدله ض1

330xum0.jpg

p_862d3zvf1.png

* تم آلآفتتآح مرة اخري , حياكم الله *

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

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