[Help] Disable Reading pms
#2

To turn on and off with the same command.

pawn Code:
CMD:readpms(playerid, params[])
{
    #pragma unused params
    if(IsPlayerAdmin(playerid))
    {
        if(pInfo[playerid][readpm] == 0)
        {
            SenClientMessage(playerid, -1, "Congratz you a pm admin xD.");
            pInfo[playerid][readpm] = 1;
        }
        else if(pInfo[playerid][readpm] == 1)
        {
            SendClientMessage(playerid, -1, "Now you won't see pm's.");
            pInfo[playerid][readpm]  = 0;
        }
    }
    else
    {
        SendClientMessage(playerid, -1, "Not are you administrator.");
    }
    return true;
}
Reply


Messages In This Thread
[Help] Disable Reading pms - by Arxalan - 24.12.2014, 08:51
Re: [Help] Disable Reading pms - by JuanStone - 24.12.2014, 08:58
Re: [Help] Disable Reading pms - by Arxalan - 24.12.2014, 09:42

Forum Jump:


Users browsing this thread: 1 Guest(s)