local playerHealth = getElementHealth ( getLocalPlayer() )
if playerHealth = -<99 then
setElementHealth ( getLocalPlayer(), 100)
end
function afkstart ( player )
local name = getPlayerName ( player )
local x,y,z = getElementPosition ( player )
if isElementFrozen ( player ) then
setElementFrozen ( player, false )
destroyElement ( znak )
outputChatBox ( "#ffffffGracz #ff0000"..name.."#ffffff wraca do gry, można w niego strzelać !", getRootElement(), 255, 0, 0, true )
else
setElementFrozen ( player, true )
znak = createMarker ( x, y, z+2, "checkpoint", 1.5, 0, 255, 0 )
outputChatBox ( "#ffffffGracz #ff0000"..name.."#ffffff przechodzi w tryb AFK, nie strzelac do niego !", getRootElement(), 255, 0, 0, true )
end
end
addCommandHandler ( "afk", afkstart )
not good. script error: afksystem/afk.lua:2: 'then' expected near '='