[FilterScript] Simple AFK System - [My First Filterscript]
#1

Hey guys,

This took me about 10-15 Minutes to make this filterscript,
But I am a beginner at scripting so It's Very simple.
Hope you guys like it..!


Pastebin: Click here

Regards, RedWingz.
Reply
#2

No offence, but its poorly coded (even if you are a beginner at scripting)

pawn Код:
if(strcmp("/afk", cmdtext, true, 10) == 0)
/afk is 4 characters long, not 10.

pawn Код:
if(strcmp("/back", cmdtext, true, 10) == 0)
/back is 5 characters long, not 10.

pawn Код:
SetPlayerHealth(playerid, 100);
What if the player has 10 hp? He uses /back and his health is restored to 100

This type of afk system is released like... 100 times...
Please, at least make it a better AFK system: checking virtual world, checking interior, did the player actually move (GetPlayerPos)?
Reply
#3

Yea, Well...
Like I said, I'm a beginner scripter.
Reply
#4

What about also letting all the other players know they are afk? that would be usefull and /afklist etc

5/10 for even making it
Reply
#5

Thanks.
Reply
#6

Try add the /afklist and also try add so when a player says /afk it says "whoever" is now Away from the keyboard!
then when /back "whoever" is now Back!"
Reply
#7

Pretty simple but good ! Keep up and try to make more and more useful function in it :
Reply
#8

Thanks, I'll try better next time.
Reply
#9

Bro its good for your first script. + rep
Reply
#10

Thanks. (:
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)