- Joined
- Jul 14, 2011
- Messages
- 3,213
Hi!
I'm making an RPG that requires a lot of team play, which means that if one of the players stays AFK, the rest just get stucked. I need to make a simple '-afk #' system to send the AFK player to town (not kick him). I tried to modify one of the existings vote-kick system, but was too hard for me.
Example:
- Any player types: "-afk 2" -> Starts a 10 sec countdown timer for player 2.
- AFK Timer reaches 0 -> Player 2 units are sent to town.
- Player 2 types anything (<Empty String>) during the AFK Timer -> the timer stops.
- To prevent abuses, when a player starts a timer (typing "-afk #") it's unable to do it again for 30 secs.
Gen Info:
- Max players is 5.
- I don't need it completely done. Just a generic base system so I can customize the actions over the AFK player.
Thanks!
I'm making an RPG that requires a lot of team play, which means that if one of the players stays AFK, the rest just get stucked. I need to make a simple '-afk #' system to send the AFK player to town (not kick him). I tried to modify one of the existings vote-kick system, but was too hard for me.
Example:
- Any player types: "-afk 2" -> Starts a 10 sec countdown timer for player 2.
- AFK Timer reaches 0 -> Player 2 units are sent to town.
- Player 2 types anything (<Empty String>) during the AFK Timer -> the timer stops.
- To prevent abuses, when a player starts a timer (typing "-afk #") it's unable to do it again for 30 secs.
Gen Info:
- Max players is 5.
- I don't need it completely done. Just a generic base system so I can customize the actions over the AFK player.
Thanks!