SA-MP Forums Archive
[FilterScript] Easy and Simple AFK system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Easy and Simple AFK system (/showthread.php?tid=530813)



Easy and Simple AFK system - ZombieNest - 09.08.2014

Hi guys, How is it going? I have decided to release some FS so I could advertise my server, I am releasing a AFK System today, Simple and Easy code You just need ZCMD and a_samp(main) includes
Basically this filterscript turns player into AFK mode and sethim godmode, after he is back, his old hp will return, When in AFK mode the player cant speak, Press F or attempt to sit in car, If he tried, he will be slapped and his Z Axis will be 15+
Download(RaR File)

For more mirrors, MSG me

Report bugs


Re: Easy and Simple AFK system - Nightangle - 09.08.2014

Works but , I found a bug if a player is afk and he tries to enter a car it takes him up and when he types /togafk again he will fall and die ....


Re: Easy and Simple AFK system - ZombieNest - 09.08.2014

Oh yeah, I have to tell, You can add more colors/change colors and even change when he presses F or tries to enter car, Change the Z+15 to z+5.0 or 0.5
Or whatever you want


Re: Easy and Simple AFK system - ZombieNest - 09.08.2014

Changing the Z Axis to lower one will fix it
EDIT: Sorry for double post


Re: Easy and Simple AFK system - XStormiest - 09.08.2014

Nice job you done.
Sugestions:
- Indent your code ()
- On your togafk command, after the brackets end. (if afk =1 ) the other part set to to else (make the script look more awesome)
- dont use defines just to write a simple SendClientMessage
(also you can use Macros: like #define SendWarning(%0,%1, "WARNING: "%2" ") SendClientMessage(%0,%1, "WARNING: "%2" ") )

Those are just suggestions, if you want to use them, is ok, else is still ok, i dont mind
Im not still a PRO either, those are just piece of advices you can follow to learn and become greater in Scripting.
Things like: Macros, Functions will help you alot.
Is important to be ORGANISED... you'll see later.
Contact me: I can help you with that server.


Re: Easy and Simple AFK system - ZombieNest - 09.08.2014

Sure, btw I need administrators, I am not pro too but I am good, Thanks for the suggestions, I have low time here..