Jump to content

طلب كود


Recommended Posts

local root = getRootElement () 
function HEALTH () 
local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
setElementHealth (source, 100) 
end 
end 
addCommandHandler ( "giveallhealth", root,  HEALTH ) 

Link to comment
addCommandHandler('ghtall', 
  function(thePlayer,cmd,health) 
local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
   if(health and tonumber(health))then 
     setElementHealth(root,health) 
          outputChatBox(thePlayer.." set Health to all player:"..health,root,255,0,0) 
        end 
     end 
end) 
  

و الكود الي فوقي اخطاااء

Link to comment
addCommandHandler('ghtall', 
  function(thePlayer,cmd,health) 
local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
   if(health and tonumber(health))then 
     setElementHealth(root,health) 
          outputChatBox(thePlayer.." set Health to all player:"..health,root,255,0,0) 
        end 
     end 
end) 
  

و الكود الي فوقي اخطاااء

outputChatBox(thePlayer.." set Health to all player:"..health,root,255,0,0) 

thePlayer = ??

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