afk problem
#2

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;
}
Reply


Messages In This Thread
afk problem - by NicholasA - 01.04.2013, 15:58
Re: afk problem - by SuperViper - 01.04.2013, 16:03
Re: afk problem - by NicholasA - 01.04.2013, 16:08
Re: afk problem - by iGetty - 01.04.2013, 16:16

Forum Jump:


Users browsing this thread: 1 Guest(s)