[HELP]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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]AFK System (
/showthread.php?tid=260810)
[HELP]AFK System -
TheBluec0de - 10.06.2011
AFK take a system without controls, but when is the player who clicked the ESC key, the tag sets the [AFK] and to send a message to all the players .. went AFK, and when he comes back, take away the tag [AFK] and appears a message to all that read the player and come back from afk.
sorry for my bad english.
Re: [HELP]AFK System -
TheBluec0de - 10.06.2011
but I saw that on a server and can
Re: [HELP]AFK System -
PCheriyan007 - 10.06.2011
You must be referring to OnPlayerPause. What OnPlayerPause does, if you don't already know, is it detects when you press ESCAPE and does something accordingly.
Re: [HELP]AFK System -
TheBluec0de - 10.06.2011
you could not post the script?
Re: [HELP]AFK System -
PCheriyan007 - 10.06.2011
Here you go, it's a script my friend made. I think this is what you're looking for.
https://sampforum.blast.hk/showthread.php?tid=192210
Re: [HELP]AFK System -
TheBluec0de - 10.06.2011
But that's ok I would like to set the plate [AFK], and that's when you get back take off the plate [AFK]
Re: [HELP]AFK System -
PCheriyan007 - 10.06.2011
pawn Код:
new afktag[128];
//OnPlayerPause
format(afktag, sizeof(afktag),, "[AFK]%s", GetPlayerName(playerid));
SetPlayerName(playerid, afktag);
//OnPlayerUnPause
strdel(afktag, 0, 5);
SetPlayerName(playerid, afktag);
That's basically what you want.
Re: [HELP]AFK System -
TheBluec0de - 10.06.2011
The download includes the pause do not go, you can upload?
Re: [HELP]AFK System -
TheBluec0de - 10.06.2011
UP...
Re: [HELP]AFK System -
r3k1lLz_ - 11.06.2011
What...