01.04.2013, 16:03
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/afk", cmdtext, true, 10) == 0)
{
if(isafk)
{
SendClientMessage(playerid, "You are no longer AFK.");
isafk = false;
}
else
{
SendClientMessage(playerid, "You are now AFK.");
isafk = true;
}
return 1;
}
return 0;
}