Judgement question
#1

All items are in this determine idk why

Код:
public OnPlayerModelSelectionEx(playerid, response, extraid, modelid)
{
	if(!response) return 1;
    if(extraid == 1) //Clothing items
    {
        printf("debug: %d", modelid);
		if(isCopCloth(modelid) && GetPVarInt(playerid, "Member") != 1 || GetPVarInt(playerid, "Member") != 2 || GetPVarInt(playerid, "Member") != 8) return scm(playerid, COLOR_LIGHTRED, "it's only for government.");
		if(isDonatorCloth(modelid) && GetPVarInt(playerid, "DonateRank") == 0 || GetPVarInt(playerid, "MonthDon") == 0) return scm(playerid, COLOR_LIGHTRED, "It's only for donator.");
  		SetPVarInt(playerid, "ToyModelC", modelid);
		ShowPlayerDialog(playerid, 294, DIALOG_STYLE_LIST, "Select Bone", "脊柱\n头部\n左臂\n右臂\n左手\n右手\n左腿\n右腿\n左脚\n右脚\n右小腿\n左小腿\n左前臂\n右前臂\n左肩\n右肩\n脖子\n下巴", "选择","取消");
    }
Код:
stock isCopCloth(modelid)
{
	if(modelid >= 19974 && modelid <= 19785 || modelid == 19347 || modelid == 19942 || modelid == 19520 || modelid == 19521 || modelid == 18637 || modelid == 19141) return 1;
	else return 0;
}
stock isDonatorCloth(modelid)
{
	if(modelid == 11704 || modelid == 1588 || modelid == 18963 || modelid == 19878 || modelid == 19528) return 1;
	else return 0;
}
Reply


Messages In This Thread
Judgement question - by SetPlayerNameTag - 02.08.2016, 12:52
Re: Judgement question - by J0sh... - 02.08.2016, 13:06
Re: Judgement question - by SetPlayerNameTag - 02.08.2016, 13:29
Re: Judgement question - by J0sh... - 02.08.2016, 13:35
Re: Judgement question - by SetPlayerNameTag - 03.08.2016, 04:21
Re: Judgement question - by AndySedeyn - 03.08.2016, 05:02

Forum Jump:


Users browsing this thread: 1 Guest(s)