[Help]tog pm for donators and admin!!
#1

I need help to make my script "/togpm" for only admins and donator, Can any one help me.

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;
	}
admin code:
Код:
if(PlayerInfo[playerid][pAdmin] < 1338)
donator code:
Код:
if(PlayerInfo[playerid][pDonateRank]!=3)
Reply


Messages In This Thread
[Help]tog pm for donators and admin!! - by Ofnet - 19.09.2011, 07:17
Re: [Help]tog pm for donators and admin!! - by Kingunit - 19.09.2011, 07:24
Re: [Help]tog pm for donators and admin!! - by Ofnet - 19.09.2011, 07:36
Re: [Help]tog pm for donators and admin!! - by Kingunit - 19.09.2011, 07:44
Re: [Help]tog pm for donators and admin!! - by Davz*|*Criss - 19.09.2011, 11:07
Re: [Help]tog pm for donators and admin!! - by Ofnet - 19.09.2011, 11:15
Re: [Help]tog pm for donators and admin!! - by Davz*|*Criss - 19.09.2011, 11:15
Re: [Help]tog pm for donators and admin!! - by Ofnet - 19.09.2011, 11:25
Re: [Help]tog pm for donators and admin!! - by Davz*|*Criss - 19.09.2011, 11:27
Re: [Help]tog pm for donators and admin!! - by Basicz - 19.09.2011, 11:27

Forum Jump:


Users browsing this thread: 3 Guest(s)