Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. if(minute == 32 && second == 00)
  2. {
  3. for(new h = 0; h < sizeof(HouseInfo); h++)
  4. {
  5. if(HouseInfo[h][hKlass] == 0 && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
  6. {
  7. HouseInfo[h][hTakings] -=50; kazna += 50;
  8. if(HouseInfo[h][hTakings] > 2800) HouseInfo[h][hTakings] = 2800;
  9. }
  10. if(HouseInfo[h][hKlass] == 1 && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
  11. {
  12. HouseInfo[h][hTakings] -=100; kazna += 100;
  13. if(HouseInfo[h][hTakings] > 5600) HouseInfo[h][hTakings] = 5600;
  14. }
  15. if(HouseInfo[h][hKlass] == 2 && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
  16. {
  17. HouseInfo[h][hTakings] -=150; kazna += 150;
  18. if(HouseInfo[h][hTakings] > 8400) HouseInfo[h][hTakings] = 8400;
  19. }
  20. if(HouseInfo[h][hKlass] == 3 && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
  21. {
  22. HouseInfo[h][hTakings] -=200; kazna += 200;
  23. if(HouseInfo[h][hTakings] > 11200) HouseInfo[h][hTakings] = 11200;
  24. }
  25. if(HouseInfo[h][hKlass] == 4 && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
  26. {
  27. HouseInfo[h][hTakings] -=250; kazna += 250;
  28. if(HouseInfo[h][hTakings] > 14000) HouseInfo[h][hTakings] = 14000;
  29. }
  30. if(HouseInfo[h][hTakings] <= 0 && HouseInfo[h][hOwned] == 1)
  31. {
  32. new housecash = HouseInfo[h][hValue];
  33. new playeridd = GetPlayerID(HouseInfo[h][hOwner]);
  34. if(FIX_IsPlayerConnected(playeridd))
  35. {
  36. PlayerInfo[playeridd][pPhousekey] = 255;
  37. if(caridhouse[playeridd] != INVALID_VEHICLE_ID)
  38. {
  39. DestroyVehicleEx(caridhouse[playeridd]);
  40. caridhouse[playeridd] = INVALID_VEHICLE_ID;
  41. DeletePVar(playeridd, "CarNomer");
  42. }
  43. SendClientMessage(playeridd, COLOR_LIGHTRED, "Âàø äîì áûë ïðîäàí çà íåóïëàòó ãîñóäàðòñâó.");
  44. }
  45. else if(!FIX_IsPlayerConnected(playeridd))
  46. {
  47. format(mysql_query_, sizeof(mysql_query_), "UPDATE `"TABLE_ACCOUNT"` SET `pPhousekey` = '255', `pHousecash` = '%d' WHERE `Name` = '%s'",housecash, HouseInfo[h][hOwner]);
  48. mysql_function_query(connects, mysql_query_, false, "", "");
  49. }
  50. HouseInfo[h][hHel] = 0;
  51. HouseInfo[h][hLock] = 1;
  52. HouseInfo[h][hOwned] = 0;
  53. strmid(HouseInfo[h][hOwner], "Íåò", 0, strlen("Íåò"), 255);
  54. SaveHouse(h);
  55. BuyHouse(h);
  56. }
  57. HouseInfo[h][hRobhouse] = false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement