13.03.2011, 10:23
Here.
At the top
Callback OnPlayerText
Add this to your go afk cmd
Add this to your back cmd
At the top
pawn Код:
new AFK[MAX_PLAYERS];
pawn Код:
public OnPlayerText(playerid, text[])
{
if(AFK[playerid] == 1)
{
SendClientMessage(playerid, 0xFF0000AA, "You cannot chat. You are afk!");
return 0;
}
return 1;
}
pawn Код:
AFK[playerid] = 1;
pawn Код:
AFK[playerid] = 0;

