PDA

View Full Version : [FilterScript] AFK-System v1.0b


sim_sima
25/02/2011, 08:54 PM
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.php?attachmentid=1305&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.

Mean
25/02/2011, 09:01 PM
There are alot of thoose, but not bad.
Just a suggestion:
new afkmsg[MAX_PLAYERS];
Would be better because some people do a redefinition.

sim_sima
25/02/2011, 09:03 PM
There are alot of thoose, but not bad.
Just a suggestion:
new afkmsg[MAX_PLAYERS];
Would be better because some people do a redefinition.

Yea, thats right...

sim_sima
26/02/2011, 06:13 PM
There are alot of thoose, but not bad.
Just a suggestion:
new afkmsg[MAX_PLAYERS];
Would be better because some people do a redefinition.

@Fixed in v1.0a or newer

sim_sima
01/03/2011, 04:34 PM
All known bugs are now fixed. Enjoy.

black_dota
01/03/2011, 04:38 PM
Upload on PasteBin

sim_sima
01/03/2011, 04:42 PM
Upload on PasteBin

Now on Pastebin.

black_dota
02/03/2011, 11:59 AM
Why strcmp and why creating a new variables?
Do you know what PVars are?

sim_sima
23/03/2011, 07:22 PM
v1.2b released! Read more above. Enjoy.

Madsen
23/03/2011, 09:47 PM
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

sim_sima
24/03/2011, 12:01 PM
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

Yea xD

sim_sima
25/03/2011, 02:52 PM
If you are using this script on your server, plese let me know in a comment here or in a mail to: simon.krogsgaard@hotmail.com .
Thank you.

sim_sima
02/04/2011, 11:56 PM
More functions comming soon!