|
Hey, for some reason, in my RP gamemode, I can only use some of the interiors, for example: fast food - Pizza Stack as all of them.
If you need the GM to check, you must have good rep (so you don't steal our GM). |
public OnGameModeInit()
{
DisableInteriorEnterExits();
return 1;
}
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;
}
Anyone ?
|
So, what I don't quite understand is how you're trying to access them... Are you trying to teleport to them or use them
in a command? I'm confused. |