Jump to content

استفسار


Ahmed Eka

Recommended Posts

addCommandHandler ( "killall",
   function ( thePlayer )   
   local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
killPed ( getRootElement() )
 local name = getPlayerName(thePlayer)
        outputChatBox ( "قام الكونسول بقتل جميع الاعبين ", getRootElement(), 255, 0, 0, true )
   end
	 
	  end  
)

Server. 

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

او اذا تبيها بسريال او حساب  تقدر تغيرها  .

Edited by #KraTos^_^
Link to comment
Just now, #KraTos^_^ said:

addCommandHandler ( "killall",
   function ( thePlayer )   
   local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
killPlayer ( getRootElement() )
 local name = getPlayerName(thePlayer)
        outputChatBox ( "قام الكونسول بقتل جميع الاعبين ", getRootElement(), 255, 0, 0, true )
   end
	 
	  end  
)

Server. 

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

او اذا تبيها بسريال او حساب  تقدر تغيرها  .

This function is deprecated. This means that its use is discouraged and that it might not exist in future versions.

Please use killPed instead.
Link to comment
addCommandHandler ( "killall",function ( thePlayer )   
local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then
setElementData(thePlayer,"Nokill",true) 
	for _,p in ipairs(getElementsByType("player")) do
	if getElementData(p,"Nokill") == false then
		killPed (p)
        outputChatBox ( "قام الكونسول بقتل جميع الاعبين ",root, 255, 0, 0, true )
		setElementData(thePlayer,"Nokill",false)
	end
	end  
end
end
)

 

Edited by Ja[B]er[X]Pro
Link to comment
  • Moderators

^

ليش تستعمل الداتا ؟ مع انك تقدر تسويها بدون داتا او اي شي 

مثال :

for _,p in ipairs(getElementsByType("player")) do
	if ( p ~= thePlayer ) then
		killPed (p)
		outputChatBox ( "قام الكونسول بقتل جميع الاعبين ",root, 255, 0, 0, true )
	end
end

 

  • Like 2
Link to comment
local group = "Console"

addCommandHandler ( "killall",
	function ( thePlayer )   
		local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
		if isObjectInACLGroup ("user."..accName, aclGetGroup ( group ) ) then
			for _,p in ipairs(getElementsByType("player")) do
				if ( p ~= thePlayer ) then
					killPed (p)
					outputChatBox ( "قام الكونسول بقتل جميع الاعبين ",root, 255, 0, 0, true )
				end
			end
		end
	end
)

 

  • Like 1
Link to comment
17 hours ago, NssoR said:

^

ليش تستعمل الداتا ؟ مع انك تقدر تسويها بدون داتا او اي شي 

مثال :

 


for _,p in ipairs(getElementsByType("player")) do
	if ( p ~= thePlayer ) then
		killPed (p)
		outputChatBox ( "قام الكونسول بقتل جميع الاعبين ",root, 255, 0, 0, true )
	end
end

 مشكور على المعلومة الجديدة ما كنت اعرف بأن هذه الطريقة تشتغل

Link to comment

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