Mr.Mostafa Posted May 7, 2018 Share Posted May 7, 2018 سلام عليكم ابي لو احد مات بعالم رقم 2 يطلع بالشات اسمه محاولتي : function player_Wasted () if getElementDimension(source) == 2 then outputChatBox (""..getPlayerName ( source ).." died !", root,255,0,0,true ) end addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted ) لما اضيف if getElementDimension(source) == 2 then الكود يخرب Link to comment
LoOs Posted May 7, 2018 Share Posted May 7, 2018 السلام عليكم ورحمة الله وبركاته التحقق يحتاج نهاية ناقص لك نهاية! function player_Wasted () if getElementDimension(source) == 2 then outputChatBox (""..getPlayerName ( source ).." died !", root,255,0,0,true ) end end addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted ) Link to comment
Mr.Mostafa Posted May 7, 2018 Author Share Posted May 7, 2018 51 minutes ago, LoOs said: السلام عليكم ورحمة الله وبركاته التحقق يحتاج نهاية ناقص لك نهاية! function player_Wasted () if getElementDimension(source) == 2 then outputChatBox (""..getPlayerName ( source ).." died !", root,255,0,0,true ) end end addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted ) لما احط عالم 0 تظهر الرسالة بالشات عادي - لكن عالم 2 وادخله واسوي سلاب ما تظهر Link to comment
LoOs Posted May 7, 2018 Share Posted May 7, 2018 3 hours ago, Mr.Mostafa said: لما احط عالم 0 تظهر الرسالة بالشات عادي - لكن عالم 2 وادخله واسوي سلاب ما تظهر مع اني مالحظت شيء .. بس جرب غير حدث onPlayerWasted إلى onPedWasted Link to comment
Mr.Mostafa Posted May 7, 2018 Author Share Posted May 7, 2018 (edited) 6 minutes ago, LoOs said: مع اني مالحظت شيء .. بس جرب غير حدث onPlayerWasted إلى onPedWasted تسلم # يغلق Edited May 7, 2018 by Mr.Mostafa 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