19.09.2011, 07:17
I need help to make my script "/togpm" for only admins and donator, Can any one help me.
My togpm code is:
admin code:
donator code:
My togpm code is:
Код:
if(strcmp(cmd, "/togpm", true) == 0) { if(IsPlayerConnected(playerid)) { 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; }
Код:
if(PlayerInfo[playerid][pAdmin] < 1338)
Код:
if(PlayerInfo[playerid][pDonateRank]!=3)