SA-MP Forums Archive
Help for one small thing .. ;) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help for one small thing .. ;) (/showthread.php?tid=375004)



Help for one small thing .. ;) - Ruffian - 04.09.2012

How to create this command for vip level 1?

Код:
    CMD:viphelp(playerid, params[])
	{
            ShowPlayerDialog(playerid, D_VIPP, DIALOG_STYLE_LIST, "Помощ относно сървъра", "Информация за командите на ВИП мода", "Select", "Cancel");
            return 1;
    }
This is my vip system :

Код:
if (PlayerInfo[playerid][pDonateRank] >= 2)
			{



Re: Help for one small thing .. ;) - yLuSsSIoN - 04.09.2012

pawn Код:
CMD:viphelp(playerid, params[])
    {
if (PlayerInfo[playerid][pDonateRank] >= 1)
            {
            ShowPlayerDialog(playerid, D_VIPP, DIALOG_STYLE_LIST, "Помощ относно сървъра", "Информация за командите на ВИП мода", "Select", "Cancel")
            return 1;
    }
This should work.


Re: Help for one small thing .. ;) - C00K13M0N$73R - 04.09.2012

pawn Код:
CMD:viphelp(playerid, params[])
    {
            if(PlayerInfo[playerid][pDonateRank] <  2) return 0;
            ShowPlayerDialog(playerid, D_VIPP, DIALOG_STYLE_LIST, "Помощ относно сървъра", "Информация за командите на ВИП мода", "Select", "Cancel");
            return 1;
    }



Re : Help for one small thing .. ;) - Soumi - 04.09.2012

Код:
CMD:viphelp(playerid, params[])
{
        if (PlayerInfo[playerid][pDonateRank] >= 1)
        {
            ShowPlayerDialog(playerid, D_VIPP, DIALOG_STYLE_LIST, "Помощ относно сървъра", "Информация за командите на ВИП мода", "Select", "Cancel");
        }
        return 1;
}