Untitled

 avatar
unknown
plain_text
2 years ago
1.2 kB
10
Indexable
CMD:families(playerid, params[])
{
	new string[5000], str[5000];
	for(new i = 1; i < MAX_FAMILY; i++)
	{
		if(FamilyInfo[i][FamilyTaken] == 1) 
		{
			if(i != PlayerInfo[playerid][pFMember])
				format(string, sizeof(string), "%s{009900}(F%d) %s{FFFFFF}\t%s thanh vien\t%s diem\n", string, i, FamilyInfo[i][FamilyName], number_format(FamilyInfo[i][FamilyMembers]), number_format(FamilyInfo[i][FamilyTurfTokens]));
			else
				format(string, sizeof(string), "%s{ff0000}(F%d) %s{FFFFFF}\t%s thanh vien\t%s diem\n", string, i, FamilyInfo[i][FamilyName], number_format(FamilyInfo[i][FamilyMembers]), number_format(FamilyInfo[i][FamilyTurfTokens]));
		}
	}

	if(isnull(string))
	{
		ShowPlayerDialog(playerid, DIALOG_NOTHING, DIALOG_STYLE_MSGBOX, "List Family", "Hien tai chua co family nao duoc thanh lap trong may chu.\nNeu ban muon tao mot family cho ban than minh hay su dung (/taofamily).", "Dong y", "");
		return 1;
	}

	format(str, sizeof(str), "%s\n%s", "Family\tSo luong thanh vien\tDiem chiem dong", string);
    ShowPlayerDialog(playerid, DIALOG_FAMILY_LIST1, DIALOG_STYLE_TABLIST_HEADERS, "List Family", str, "Dong y", "");
	return 1;
}
Editor is loading...
Leave a Comment