Jump to content

AFK system


Fory

Recommended Posts

Hello everyone 1-2 ideas would be needed, how I shall begin it how new AFK to a system, this would be only so much that the chatboxba announces it that:

outputChatBox("#efad5f[AFK]: " Name " 5 of his minutes AFK", getRootElement(), 255, 255, 255, true)

else

outputChatBox("#efad5f[AFK]: "name" back up", getRootElement(), 255, 255, 255, true)

--------------------NEXT----------------------

outputChatBox("#efad5f[AFK]: " Name " 10 of his minutes AFK", getRootElement(), 255, 255, 255, true)

 

else

outputChatBox("#efad5f[AFK]: "name" back up", getRootElement(), 255, 255, 255, true)

 

For somebody, some idea? :/

 

Link to comment

Valami hibát ír a 12. Sorban

setTimer(
	function ()
		if getElementData(getLocalPlayer(),"afk") == false then
		local getLocalPlayer = targetPlayer
		           setElementData (getLocalPlayer(),"afk",true)
                         outputChatBox("#efad5f[AFK]: #42c2d2" .. targetPlayer .. "#ffffff 5 of his minutes AFK.", getRootElement(), 255, 255, 255, true)
		          else
				setElementData (getLocalPlayer(),"afk",false)
				outputChatBox("#efad5f[AFK]: #42c2d2" .. targetPlayer .. "#ffffff Back Up.", getRootElement(), 255, 255, 255, true)
			end
		end
	end
	2500, 0)

 

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