[HELP]AFK System
#1

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.
Reply
#2

but I saw that on a server and can
Reply
#3

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.
Reply
#4

you could not post the script?
Reply
#5

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
Reply
#6

But that's ok I would like to set the plate [AFK], and that's when you get back take off the plate [AFK]
Reply
#7

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.
Reply
#8

The download includes the pause do not go, you can upload?
Reply
#9

UP...
Reply
#10

What...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)