I can't use all of the Interiors in GTA SA
#5

Код:
	else if(!strcmp(params, "level", true, 5))
	{
		if(PlayerInfo[playerid][pAdmin] < 4 && !PlayerInfo[playerid][pHouseMod]) return SendClientMessage(playerid, COLOR_GREY, "You are not an authorized to use this command.");
	    if(sscanf(params, "s[32]ii", params, bizid, input)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /house level [houseid] [level]");
        new idx = bizid;
    	//if(!HouseInfo[bizid][hLevel]) return SendClientMessage(playerid, COLOR_GREY, "Invalid house id.");
    	if(input < 1 || input > 11) return SendClientMessage(playerid, COLOR_GREY, "Levels are between 1 and 11.");
	    HouseInfo[bizid][hLevel] = input;
        if(!strcmp("The State", HouseInfo[idx][hOwner])) format(string, sizeof(string), ""COE"["CWE"%d, House (Lvl: %d)"COE"]\n"COE"Owner"CWE" %s\n"COE"Status"CWE" For Sale\n"CWE"$%d", idx, HouseInfo[idx][hLevel], HouseInfo[idx][hOwner], HouseInfo[idx][hPrice]);
		else format(string, sizeof(string), ""COE"["CWE"%d, House (Lvl: %d)"COE"]\n"COE"Owner"CWE" %s\n"COE"Status"CWE" %s", idx, HouseInfo[idx][hLevel], HouseInfo[idx][hOwner], RHS(idx));
		UpdateDynamic3DTextLabelText(HouseInfo[bizid][hText], COLOR_WHITE, string);
	    format(string, sizeof(string), "{FF0000}[Admin Warn]{FF6347} %s has set house ID %d's level to %d.", RPN(playerid), bizid, input);
		SendAdminMessage(COLOR_DARKRED, 1, string);
		Log("logs/house.log", string);
	}
	return 1;
}
Reply


Messages In This Thread
I can't use all of the Interiors in GTA SA - by jremi - 28.10.2013, 21:46
Re: I can't use all of the Interiors in GTA SA - by gotwarzone - 28.10.2013, 21:52
Re: I can't use all of the Interiors in GTA SA - by jremi - 28.10.2013, 22:04
Re: I can't use all of the Interiors in GTA SA - by EvanA - 28.10.2013, 22:05
Re: I can't use all of the Interiors in GTA SA - by jremi - 28.10.2013, 22:08
Re: I can't use all of the Interiors in GTA SA - by EvanA - 28.10.2013, 22:10
Re: I can't use all of the Interiors in GTA SA - by jremi - 28.10.2013, 22:12
Re: I can't use all of the Interiors in GTA SA - by jremi - 28.10.2013, 22:46
Re: I can't use all of the Interiors in GTA SA - by EvanA - 28.10.2013, 22:55
Re: I can't use all of the Interiors in GTA SA - by jremi - 28.10.2013, 23:03

Forum Jump:


Users browsing this thread: 1 Guest(s)