Jump to content

x[مكشلة]xaddCommandHander


Recommended Posts

Posted

السلام عليكم ورحمة الله وبركاته

addCommandHandler("help",function(source)
for _,p in ipairs(getElementsByType("player")) do 
local accName = getAccountName ( getPlayerAccount ( p ) )
		if (getElementData(source,"help") == false) then
			setElementData(source,"help",true)
				if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Support" ) ) then
				outputChatBox(""..getPlayerName(source).." Need Help",p,255,255,0)
				end
		elseif (getElementData(source,"help") == true) then
			setElementData(source,"help",true)
				if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Support" ) ) then
				outputChatBox(""..getPlayerName(source).." Helped",p,0,255,0)
				end
		end
end
end)

help لما اكتب في اف8

ما يجي كلام بالشات او اي شيئ تأكدت من اني في رتبة سبورت

 

 

Posted
Just now, Jaer[X]Pro said:

السلام عليكم ورحمة الله وبركاته

Just now, Jaer[X]Pro said:

السلام عليكم ورحمة الله وبركاته



addCommandHandler("help",function(source)
for _,p in ipairs(getElementsByType("player")) do 
local accName = getAccountName ( getPlayerAccount ( p ) )
		if (getElementData(source,"help") == false) then
			setElementData(source,"help",true)
				if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Support" ) ) then
				outputChatBox(""..getPlayerName(source).." Need Help",p,255,255,0)
				end
		elseif (getElementData(source,"help") == true) then
			setElementData(source,"help",true)
				if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Support" ) ) then
				outputChatBox(""..getPlayerName(source).." Helped",p,0,255,0)
				end
		end
end
end)

مافهمتك انت تبي وش اذا تبي الي يكتب  شيء في اف8 يبي مساعده

اطريقتك ع مضن فيه اخطاء

Posted

انا مسوي لما الاعب يكتب في اف8 help

ان ما كانت معه الداتا

يخرج كلام بالشات لكل يلي معهم رتبة Support  بأنه يبي مساعدة ويعطيه الداتا

وان كانت معه الداتا

يخرج كلام بالشات بأنه تم مساعدته ويسحب الداتا

Posted

addCommandHandler("help",function()
for _,p in ipairs(getElementsByType("player")) do 
	if (getElementData(source,"help") == false) then
		setElementData(source,"help",true)
         local account = getPlayerAccount ( p )
          local accname = getAccountName ( account ) 
	        Player1 = getPlayerName(source)
			 if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Support" ) ) then
	           outputChatBox(""..Player1.." Need Help",source,255,255,0)
			   end
	elseif (getElementData(source,"help") == true) then
		    setElementData(source,"help",false)
			  if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Support" ) ) then
				outputChatBox(""..getPlayerName(source).." Helped",source,0,255,0)
				end
			end
		end
	end
)

جرب و اذا فيه مو شغال

هات الدي بق

Posted

كودك حوسة وش تبي تسوي بالضبط اذا كتب مساعدة يطلع رسالة لكل اللي موجودين في قروب سبورت انة الاعب يحتاج مساعدة وتكون داتا المساعدة ترو 

طيب بعد ماتصير ترو اذا طلعت الداتا ترو يعني تم مساعدتة وش يصير اذا طلب ثانية؟

Posted
4 minutes ago, iFaHaD said:

كودك حوسة وش تبي تسوي بالضبط اذا كتب مساعدة يطلع رسالة لكل اللي موجودين في قروب سبورت انة الاعب يحتاج مساعدة وتكون داتا المساعدة ترو 

طيب بعد ماتصير ترو اذا طلعت الداتا ترو يعني تم مساعدتة وش يصير اذا طلب ثانية؟

لما يكتب تصير الداتا ترو

ومسوي لوحة يلي عندهم الداتا يظهرون بها وهم اشخاص يحتاجون مساعدة

ولما يخلص المساعدة يكتب مرة اخرى تصير فولس ويختفي اسمه لأن تم مساعدته

Posted
addCommandHandler ( 'help',
    function (  source  )
        local data = getElementData ( source,'help' )
        local name = getPlayerName ( source )
    for _,p in ipairs ( getElementsByType ( 'player' ) ) do 
        local account = getAccountName ( getPlayerAccount ( p ) )
   if isObjectInACLGroup ( 'user.'..account..'',aclGetGroup ( 'Support' ) ) then
        if data == false then
                    outputChatBox( ''..name..' Need help',p,255,255,0 )
                    setElementData ( source,'help',true )
        else
                    outputChatBox( ''..name..'  Helped',p,0,255,0 )
                    setElementData ( source,'help',false )
                 end
             end
        end
    end
 )

 

Posted (edited)

متاكد انك في قروب سبورت؟

 

EDIT :

 

غير الكوماند لانة كوماند في اللعبه اساسي ضيف شيء عليه

 

مثلاً خلية

 

ahelp

Edited by iFaHaD
Posted (edited)
17 minutes ago, iFaHaD said:

متاكد انك في قروب سبورت؟

 

EDIT :

 

غير الكوماند لانة كوم شاند في اللعبه اساسي ضيف شيء عليه

 

مثلاً خلية

 

ahelp

شكراً لك عدلت الكوماند واشتغل

ما كنت اعرف هذه المعلومة مشكور

Edited by Ja[B]er[X]Pro
Posted
addCommandHandler ( 'ahelp',
    function (  source  )
        local data = getElementData ( source,'help' )
        local name = getPlayerName ( source )
    for _,p in ipairs ( getElementsByType ( 'player' ) ) do 
        local account = getAccountName ( getPlayerAccount ( p ) )
    if account and not isGuestAccount( account ) then
   if isObjectInACLGroup ( 'user.'..account..'',aclGetGroup ( 'Support' ) ) then
        if data == false then
                    outputChatBox( ''..name..' Need help',p,255,255,0 )
                    setElementData ( source,'help',true )
        else
                    outputChatBox( ''..name..'  Helped',p,0,255,0 )
                    setElementData ( source,'help',false )
                    end
                 end
             end
        end
    end
 )

 

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