[FilterScript] AFK-System v1.0b
#1

This filterscript is made by Sim_sima.
This is my first filterscript, so i hope you guys like it.

This filterscript is very usefull for most servers. It allows the player to set his status to AFK mode, and his name-color changes to grey, he is invisible for other players, he is not able to type in chat, and he is not able to move.
When he is not afk anymore, his name-color changes back to the original color, and he is again able to move and chat.

COMMANDS:
/goafk = Puts player in AFK mode
/back = Returns the player from AFK mode
/afklist = Shows a list of AFK players
/afkhelp = Shows a list of commands related to this script

Version 1.0b:
This filterscript has 3 commands:
/goafk = If a player types this, he will be invisible for other non-afk players. He is also unable to move or chat. His color on the scoreboard also changes to grey.
/back = Returns the player from AFK mode. He can now move around again, and type in the chat. His color on the scoreboard also changes back to the normal color again.
/afkhelp = Just an extra command i added for information in-game.

*UPDDATE*
Version 1.0a released!
New features:
- /afklist command (Shows list of players in AFK mode).
- Rebuilded code structure.

*UPDATE*
Version 1.1b released!
Same system, same commands.
All (known) bugs are fixed!

*UPDATE*
Version 1.2b released!
Tetdraws added in stead of game text.
Same system, same commands.

Hope you like the script. Feel free to edit it in any way you want.
IMPORTANT: Read the "IMPORTANT NOTES! Read before installing.txt" before installing! IT CONTAINS VERY IMPORTANT INFORMATION!
Find it in attachmelts below

FUTURE PLANS WITH THIS SCRIPT:
I also want to make a timer on about 5-10 seconds when a player types /goafk, and if he moves, the /goafk will cancel. Ill made this in order to make players unable to abuse it.
I will also make a system, that automaticly turns the player AFK if he is not moving for 10-15 minutes.
Maybe i will change to zcmd in stead of strcmp in later versions.

DOWNLOAD HERE:
http://forum.sa-mp.com/attachment.ph...5&d=1300909573 <-- Or from attached files below.
PASTEBIN: http://pastebin.com/TR2TfRtj <-- Remember to read the TXT file from attachments below!

If you are using this script on your server, please let me know. Post the IP of your server in a comment here, or send a mail to simon.krogsgaard@hotmail.com. Thank you.

Enjoy.
- Sim_sima.
Reply
#2

There are alot of thoose, but not bad.
Just a suggestion:
pawn Код:
new afkmsg[MAX_PLAYERS];
Would be better because some people do a redefinition.
Reply
#3

Quote:
Originally Posted by Mean
Посмотреть сообщение
There are alot of thoose, but not bad.
Just a suggestion:
pawn Код:
new afkmsg[MAX_PLAYERS];
Would be better because some people do a redefinition.
Yea, thats right...
Reply
#4

Quote:
Originally Posted by Mean
Посмотреть сообщение
There are alot of thoose, but not bad.
Just a suggestion:
pawn Код:
new afkmsg[MAX_PLAYERS];
Would be better because some people do a redefinition.
@Fixed in v1.0a or newer
Reply
#5

All known bugs are now fixed. Enjoy.
Reply
#6

Upload on PasteBin
Reply
#7

Quote:
Originally Posted by black_dota
Посмотреть сообщение
Upload on PasteBin
Now on Pastebin.
Reply
#8

Why strcmp and why creating a new variables?
Do you know what PVars are?
Reply
#9

v1.2b released! Read more above. Enjoy.
Reply
#10

ty sim_sima i am defintly going to use this in my server.

in the next update:
add a timer so it takes 5-10 seconds to go afk
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)