[FilterScript] Simple AFK System - [My First Filterscript]
#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


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)