Function Lines: HouseInfo[houseid][hAcid] = 0;
HouseInfo[houseid][hMeth] = 0;
HouseInfo[houseid][hPot] = 0;
HouseInfo[houseid][hCrack] = 0;
HouseInfo[houseid][hMaterials] = 0;
HouseInfo[houseid][hHeroin] = 0;
HouseInfo[houseid][hWeapons][0] = 0;
HouseInfo[houseid][hWeapons][1] = 0;
HouseInfo[houseid][hWeapons][2] = 0;
HouseInfo[houseid][hWeapons][3] = 0;
HouseInfo[houseid][hWeapons][4] = 0;
HouseInfo[houseid][hGLUpgrade] = 1;
HouseInfo[houseid][hClosetX] = 0.0;
HouseInfo[houseid][hClosetY] = 0.0;
HouseInfo[houseid][hClosetZ] = 0.0;
DestroyDynamic3DTextLabel(Text3D:HouseInfo[houseid][hClosetTextID]);
}
stock ClearHouseMailbox(houseid)
{
HouseInfo[houseid][hMailX] = 0.0;
HouseInfo[houseid][hMailY] = 0.0;
HouseInfo[houseid][hMailZ] = 0.0;
HouseInfo[houseid][hMailA] = 0.0;
HouseInfo[houseid][hMailType] = 0;
SaveHouse(houseid);
}
stock ClearStreetMailbox(boxid)
{
MailBoxes[boxid][mbVW] = 0;
MailBoxes[boxid][mbInt] = 0;
MailBoxes[boxid][mbModel] = 0;
MailBoxes[boxid][mbPosX] = 0.0;
MailBoxes[boxid][mbPosY] = 0.0;
MailBoxes[boxid][mbPosZ] = 0.0;
MailBoxes[boxid][mbAngle] = 0.0;
SaveMailbox(boxid);
}
stock ClearFamily(family)
{
foreach(new i: Player)
{
if(PlayerInfo[i][pFMember] == family) {
SendClientMessageEx(i, COLOR_LIGHTBLUE, "* The Family you are in has just been deleted by an Admin, you have been kicked out automatically.");
PlayerInfo[i][pFMember] = INVALID_FAMILY_ID;
}
}
new string[MAX_PLAYER_NAME];
format(string, sizeof(string), "None");
FamilyInfo[family][FamilyTaken] = 0;
strmid(FamilyInfo[family][FamilyName], string, 0, strlen(string), 255);
strmid(FamilyMOTD[family][0], string, 0, strlen(string), 12
;
strmid(FamilyMOTD[family][1], string, 0, strlen(string), 12
;
strmid(FamilyMOTD[family][2], string, 0, strlen(string), 12
;
strmid(FamilyInfo[family][FamilyLeader], string, 0, strlen(string), 255);
format(string, sizeof(string), "Newb");
strmid(FamilyRankInfo[family][0], string, 0, strlen(string), 30);
format(string, sizeof(string), "Outsider");
strmid(FamilyRankInfo[family][1], string, 0, strlen(string), 30);
format(string, sizeof(string), "Associate");
strmid(FamilyRankInfo[family][2], string, 0, strlen(string), 30);
format(string, sizeof(string), "Soldier");
strmid(FamilyRankInfo[family][3], string, 0, strlen(string), 30);
format(string, sizeof(string), "Capo");
strmid(FamilyRankInfo[family][4], string, 0, strlen(string), 30);
format(string, sizeof(string), "Underboss");
strmid(FamilyRankInfo[family][5], string, 0, strlen(string), 30);
format(string, sizeof(string), "Godfather");
strmid(FamilyRankInfo[family][6], string, 0, strlen(string), 30);
format(string, sizeof(string), "None");
strmid(FamilyDivisionInfo[family][0], string, 0, 16, 30);
strmid(FamilyDivisionInfo[family][1], string, 0, 16, 30);
strmid(FamilyDivisionInfo[family][2], string, 0, 16, 30);
strmid(FamilyDivisionInfo[family][3], string, 0, 16, 30);
strmid(FamilyDivisionInfo[family][4], string, 0, 16, 30);
FamilyInfo[family][FamilyColor] = 0;
FamilyInfo[family][FamilyTurfTokens] = 24;
FamilyInfo[family][FamilyMembers] = 0;
FamilyInfo[family][FamilySpawn][0] = 0.0;
FamilyInfo[family][FamilySpawn][1] = 0.0;
FamilyInfo[family][FamilySpawn][2] = 0.0;
FamilyInfo[family][FamilySpawn][3] = 0.0;
FamilyInfo[family][FamilyGuns][0] = 0;
FamilyInfo[family][FamilyGuns][2] = 0;
FamilyInfo[family][FamilyGuns][3] = 0;
FamilyInfo[family][FamilyGuns][4] = 0;
FamilyInfo[family][FamilyGuns][5] = 0;
FamilyInfo[family][FamilyGuns][6] = 0;
FamilyInfo[family][FamilyGuns][7] = 0;
FamilyInfo[family][FamilyGuns][8] = 0;
FamilyInfo[family][FamilyGuns][9] = 0;
FamilyInfo[family][FamilyCash] = 0;
FamilyInfo[family][FamilyMats] = 0;
FamilyInfo[family][FamilyAcid] = 0;
FamilyInfo[family][FamilyMeth] = 0;
Commands Line: HouseInfo[i][hAcid] += amount;
format(string, sizeof(string), "You have deposited %d Acid to your house's safe.", amount);
SendClientMessageEx(playerid, COLOR_WHITE, string);
OnPlayerStatsUpdate(playerid);
SaveHouse(i);
format(string, sizeof(string), "%s (SQL: %d) has deposited %d Acid into their house (ID: %d) safe.", GetPlayerNameEx(playerid), GetPlayerSQLId(playerid), amount, i);
Log("logs/hsafe.log", string);
return 1;
}
case 7: // Meth
{
if(PlayerInfo[playerid][pMeth] >= amount) PlayerInfo[playerid][pMeth] -= amount;
else return SendClientMessageEx(playerid, COLOR_WHITE, "You do not have enough to deposit!");
HouseInfo[i][hMeth] += amount;