24.12.2014, 08:58
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;
}