Jump to content

مساعدة بسيطة


Recommended Posts

Posted

ممكن تصليح للكود؟

addEventHandler("onClientPlayerQuit", root,
function (reason,player,target)
		 local targetplayer = getPlayerName(target)
		       if not (targetplayer == player) then
	if reason == "Kicked" then
 outputChatBox("• #FFFFFF"..getPlayerName(source):gsub("#%x%x%x%x%x%x","").."#22a9ed has left the game [#ffffffKicked by: "..name.."#22a9ed]", 0, 100, 0, true)
 end
 end
end)

الoutputchatbox ما يشتغل

Posted
2 hours ago, Outlaw said:

ممكن تصليح للكود؟


addEventHandler("onClientPlayerQuit", root,
function (reason,player,target)
		 local targetplayer = getPlayerName(target)
		       if not (targetplayer == player) then
	if reason == "Kicked" then
 outputChatBox("• #FFFFFF"..getPlayerName(source):gsub("#%x%x%x%x%x%x","").."#22a9ed has left the game [#ffffffKicked by: "..name.."#22a9ed]", 0, 100, 0, true)
 end
 end
end)

الoutputchatbox ما يشتغل

فنكشن onClientPlayerQuit

ماله غير ارقمنت واحد فقط , وهو سبب خروج الاعب من السيرفر , لاكن ممكن تعدل من لوحة الادمن , لما احد يصك شخص

يكتب الرسالة الي تبيها

330xum0.jpg

p_862d3zvf1.png

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

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

Posted
addEventHandler( "onClientPlayerQuit" , root , 
    function( Reason )
        if( Reason == "Kicked" ) then
            local Name = getPlayerName( source ):gsub( "#%x%x%x%x%x%x" , "" );
            outputChatBox( ". #ffffff" .. Name .. " #22a9ed has left the game " , 0 , 100 , 0 , true );
        end
    end
)

 

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

                                                Mmpe7Jm.gif

                                                   latest?cb=20170707023932                 

                                            KillerX#9078

Posted (edited)
1 hour ago, KillerX said:

addEventHandler( "onClientPlayerQuit" , root , 
    function( Reason )
        if( Reason == "Kicked" ) then
            local Name = getPlayerName( source ):gsub( "#%x%x%x%x%x%x" , "" );
            outputChatBox( ". #ffffff" .. Name .. " #22a9ed has left the game " , 0 , 100 , 0 , true );
        end
    end
)

 

أنا بدي أحط إسم الشخص الى صك مو الشخص المصكوك ض

مثال: KillerX has left the game [Kicked by Outlaw]

Edited by Outlaw
Posted (edited)

إذا انت تبي ترسل الرساله لكل اللاعبين ليش حاطها بالكلينت

 

SERVER :

addEventHandler("onPlayerQuit", root,
	function (typ,reason,element)
		if (typ == "Kicked") then
			local this = source;
			outputChatBox(getPlayerName(this):gsub("#%x%x%x%x%x%x","").." has left the game ["..typ.." by "..getPlayerName(element):gsub("#%x%x%x%x%x%x","").."]",root);
		end
	end
)

 

Edited by NX_CI

Discord ID : nxFairlywell#6895

 

Posted
1 hour ago, Outlaw said:

أنا بدي أحط إسم الشخص الى صك مو الشخص المصكوك ض

مثال: KillerX has left the game [Kicked by Outlaw]

 

3 hours ago, Mr.Mostafa said:

فنكشن onClientPlayerQuit

ماله غير ارقمنت واحد فقط , وهو سبب خروج الاعب من السيرفر , لاكن ممكن تعدل من لوحة الادمن , لما احد يصك شخص

يكتب الرسالة الي تبيها

 

330xum0.jpg

p_862d3zvf1.png

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

ip : * mtasa://145.239.212.62:22003 *

330xum0.jpg

Posted (edited)
2 hours ago, NX_CI said:

إذا انت تبي ترسل الرساله لكل اللاعبين ليش حاطها بالكلينت

 

SERVER :


addEventHandler("onPlayerQuit", root,
	function (typ,reason,element)
		if (typ == "Kicked") then
			local this = source;
			outputChatBox(getPlayerName(this):gsub("#%x%x%x%x%x%x","").." has left the game ["..typ.." by "..getPlayerName(element):gsub("#%x%x%x%x%x%x","").."]",root);
		end
	end
)

 

مشكور بس ممكن إستفسار بسيط؟

طول بالك معي شوي ضض

الأرقمنتات تبع الفنشكن مرتبين من البارامتر تبع الإيفينت 

في صورة بدي أضيف أرقمنت آخر وين احطه؟ لنو والله دايما تخرب معي 

و في صورة ما ضفت إيفينت آخر أو فنكشن كيف أضيف ارقمنتاتهم بدون ما اخرب الترتيب

 

 

 

Edited by Outlaw
Posted
triggerEvent

 

2 hours ago, Outlaw said:

مشكور بس ممكن إستفسار بسيط؟

طول بالك معي شوي ضض

الأرقمنتات تبع الفنشكن مرتبين من البارامتر تبع الإيفينت 

في صورة بدي أضيف أرقمنت آخر وين احطه؟ لنو والله دايما تخرب معي 

و في صورة ما ضفت إيفينت آخر أو فنكشن كيف أضيف ارقمنتاتهم بدون ما اخرب الترتيب

 

 

 

 

Discord ID : nxFairlywell#6895

 

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