change (playersource;theplayer) to spurceplayer.
Code:
function bless (spurceplayer)
if isElement (spurceplayer) then
local account = getPlayerAccount(spurceplayer)
if ( not account or isGuestAccount ( account ) ) then return end
if isObjectInACLGroup("user." .. getAccountName(account), aclGetGroup("Admin")) then
for id, player in ipairs(getElementsByType("player")) do
setElementData(player,"blood", 12000)
setElementData(player,"bleeding", 0)
setElementData(player,"cold", false)
setElementData(player,"temperature", 37)
setElementData(player,"pain", false)
setElementData(player,"brokenbone", false)
setElementData(player,"thirst", 100)
setElementData(player,"food", 100)
end
outputChatBox("#6495ED[DVOORN]#C0C0C0All players were cured.!", spurceplayer, 255, 255, 255, true)
end
end
end
addCommandHandler("aheall", bless)