19.09.2011, 11:07
Quote:
pawn Код:
|
Try this:
pawn Код:
if(strcmp(cmd, "/togpm", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pDonateRank]!=3 || PlayerInfo[playerid][pAdmin] < 1338)
{
if (!HidePM[playerid])
{
HidePM[playerid] = 1;
SendClientMessage(playerid, COLOR_GRAD2, " Private messages has been Disabled !");
}
else if (HidePM[playerid])
{
HidePM[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, " Private messages has been Enabled !");
}
}
}
return 1;
}