15.12.2012, 13:25
Well I'm sorry I think it's becoming because of a mistake in defines, I guess. Here's my chat stuffs of L-AFK.
As same as written on L-AFK:
Please change the define to:
And also, make sure that the AFK variable is set to 0 on /back command.
As same as written on L-AFK:
pawn Код:
#define Disable_AFKCHAT == true //Change it from true to false if you don't want AFK users to be restricted in Chatting.
#if defined Disable_AFKCHAT == true
public OnPlayerText(playerid)
{
if(AFK[playerid] == 1)
{
SendClientMessage(playerid, red, "You cannot chat while you are in AFK.");
}
return 0;
}
#endif
pawn Код:
#define Disable_AFKCHAT true

