Restriction wont work
#2

Try this :

Код:
if(listitem == 3)
{
	if(PlayerInfo[playerid][pAdmin] > 5)
	{
		if(PlayerInfo[playerid][pLeaderWarn] == 0) return SendClientMessage(playerid,COLOR_ERROR,"That leader has no warns!");
		else
		{
			format(strings, sizeof(strings), "{FFFFFF}Type the reason why you want to unwarn this guy %s.", PlayerInfo[playerid][pSelected]);
			ShowPlayerDialog(playerid, DIALOG_LLIST5, DIALOG_STYLE_INPUT, "Next", strings, "Done", "Cancel");
		}
	}
	else return SendClientMessage(playerid,COLOR_ERROR,"You need to be owner to use this menu!");
	}
It hasn't really changed anything but I guess that way the dialog where you input the reason and unwarn the person "DIALOG_LLIST5" won't even be called.
Reply


Messages In This Thread
Restriction wont work - by StR_MaRy - 13.02.2017, 01:08
Re: Restriction wont work - by MiiSha - 13.02.2017, 01:40
Re: Restriction wont work - by StR_MaRy - 13.02.2017, 10:33
Re: Restriction wont work - by Scriptery - 19.08.2017, 22:58

Forum Jump:


Users browsing this thread: 1 Guest(s)