Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. if(pStats[playerid][pHouse] == 9999)
  2. {
  3. for(new HouseID = 0; HouseID < MAX_HOUSES; HouseID ++)
  4. {
  5. if(!IsValidDynamicPickup(AHouseData[HouseID][PickID])) continue;
  6. if(!strcmp(AHouseData[HouseID][Owner], GN(playerid)))
  7. {
  8. AHouseData[HouseID][Owned] = false;
  9. AHouseData[HouseID][Owner] = 0;
  10. AHouseData[HouseID][HouseName] = 0;
  11. new GL[100];
  12. format(GL, sizeof(GL), "House %d owner set to null (Line 21196, user: %s)", HouseID, GN(playerid));
  13. GLog(GL);
  14. if(AHouseData[HouseID][StaticHouse] == false)
  15. {
  16. AHouseData[HouseID][HouseLevel] = 0;
  17. AHouseData[HouseID][CarSlots] = 0;
  18. }
  19. AHouseData[HouseID][Insurance] = false;
  20. AHouseData[HouseID][HouseOpened] = true;
  21. for(new HouseSlot; HouseSlot < MAX_HOUSESPERPLAYER; HouseSlot++)
  22. {
  23. if(APlayerData[playerid][Houses][HouseSlot] == HouseID)
  24. {
  25. APlayerData[playerid][Houses][HouseSlot] = 0;
  26. break;
  27. }
  28. }
  29. House_UpdateEntrance(HouseID);
  30. HouseFile_Save(HouseID);
  31. break;
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement