need help with an /afk cmd :)
#2

You don't need a timer in a /AFK command. Setting TogglePlayerControllable to 0 will freeze the player's position and health on its own. What you should do is force a player to stand still for 30 seconds with no interuptions (Change in health, position or key state) so the player can't abuse invulnerability.

Also you have placed your 'afktimer' inside of the callback, it has to be a global variable (outside of all callbacks).
Reply


Messages In This Thread
need help with an /afk cmd :) - by Tyler_Idy - 23.10.2009, 02:42
Re: need help with an /afk cmd :) - by Joe Staff - 23.10.2009, 06:20

Forum Jump:


Users browsing this thread: 1 Guest(s)