Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(pStats[playerid][pHouse] == 9999)
- {
- for(new HouseID = 0; HouseID < MAX_HOUSES; HouseID ++)
- {
- if(!IsValidDynamicPickup(AHouseData[HouseID][PickID])) continue;
- if(!strcmp(AHouseData[HouseID][Owner], GN(playerid)))
- {
- AHouseData[HouseID][Owned] = false;
- AHouseData[HouseID][Owner] = 0;
- AHouseData[HouseID][HouseName] = 0;
- new GL[100];
- format(GL, sizeof(GL), "House %d owner set to null (Line 21196, user: %s)", HouseID, GN(playerid));
- GLog(GL);
- if(AHouseData[HouseID][StaticHouse] == false)
- {
- AHouseData[HouseID][HouseLevel] = 0;
- AHouseData[HouseID][CarSlots] = 0;
- }
- AHouseData[HouseID][Insurance] = false;
- AHouseData[HouseID][HouseOpened] = true;
- for(new HouseSlot; HouseSlot < MAX_HOUSESPERPLAYER; HouseSlot++)
- {
- if(APlayerData[playerid][Houses][HouseSlot] == HouseID)
- {
- APlayerData[playerid][Houses][HouseSlot] = 0;
- break;
- }
- }
- House_UpdateEntrance(HouseID);
- HouseFile_Save(HouseID);
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement