24.08.2012, 13:44
(
Last edited by NoahF; 21/09/2012 at 11:33 AM.
Reason: Update v1.2!
)
Hey guys.
I have made a very simple AFK script that is very easy to use, and is perfect for beginning scripters. I have explained everything in the code in comments so that new scripters know exactly what each part does.
What it does is, when a player types /afk, it will freeze them making it so they can't move and it will send a message to all players saying "So & So has gone AFK." When the player types /back it will unfreeze them and then send another message to all the players saying "So & So is now back from being AFK." There is a feature that makes it so people can't spam the /afk and /back commands. I hope you enjoy! Feel free to post constructive criticism in the replies to this topic so I can make the script better! Also, please don't remove the credits!
COMMANDS:
/afk
/back
/afklist
NOTE:
This FilterScript HAS been tested by me and works perfectly.
v1.0 Pastebin:
http://pastebin.com/rYSz3esY
v1.0 Download:
http://www.mediafire.com/?58w25dyc9az6o9u
v1.1 Pastebin:
http://pastebin.com/m2dmikFx
v1.1 Download:
http://www.mediafire.com/?yi7jrojilcc9xaj
v1.2 Pastebin:
http://pastebin.com/YLDWQYn3
v1.2 Download:
http://www.mediafire.com/?etrej8ctet38pnf
v1.1 CHANGE-LOG:
CREDITS:
Zeex for the zCmd include.
Thanks iGetty for a little help
I have made a very simple AFK script that is very easy to use, and is perfect for beginning scripters. I have explained everything in the code in comments so that new scripters know exactly what each part does.
What it does is, when a player types /afk, it will freeze them making it so they can't move and it will send a message to all players saying "So & So has gone AFK." When the player types /back it will unfreeze them and then send another message to all the players saying "So & So is now back from being AFK." There is a feature that makes it so people can't spam the /afk and /back commands. I hope you enjoy! Feel free to post constructive criticism in the replies to this topic so I can make the script better! Also, please don't remove the credits!
COMMANDS:
/afk
/back
/afklist
NOTE:
This FilterScript HAS been tested by me and works perfectly.
v1.0 Pastebin:
http://pastebin.com/rYSz3esY
v1.0 Download:
http://www.mediafire.com/?58w25dyc9az6o9u
v1.1 Pastebin:
http://pastebin.com/m2dmikFx
v1.1 Download:
http://www.mediafire.com/?yi7jrojilcc9xaj
v1.2 Pastebin:
http://pastebin.com/YLDWQYn3
v1.2 Download:
http://www.mediafire.com/?etrej8ctet38pnf
v1.1 CHANGE-LOG:
- Added an AFK List command.
- Added some embedded colors.
- Fixed some indentation issues.
- Added so when a player tries to talk, while AFK, they get a message saying they cannot talk, and their message won't be sent.
- Made it so the AFK Variable is set to 0 when the player disconnects.
- Pruned the script.
CREDITS:
Zeex for the zCmd include.
Thanks iGetty for a little help