Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(minute == 32 && second == 00)
- {
- for(new h = 0; h < sizeof(HouseInfo); h++)
- {
- if(HouseInfo[h][hKlass] == 0 && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
- {
- HouseInfo[h][hTakings] -=50; kazna += 50;
- if(HouseInfo[h][hTakings] > 2800) HouseInfo[h][hTakings] = 2800;
- }
- if(HouseInfo[h][hKlass] == 1 && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
- {
- HouseInfo[h][hTakings] -=100; kazna += 100;
- if(HouseInfo[h][hTakings] > 5600) HouseInfo[h][hTakings] = 5600;
- }
- if(HouseInfo[h][hKlass] == 2 && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
- {
- HouseInfo[h][hTakings] -=150; kazna += 150;
- if(HouseInfo[h][hTakings] > 8400) HouseInfo[h][hTakings] = 8400;
- }
- if(HouseInfo[h][hKlass] == 3 && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
- {
- HouseInfo[h][hTakings] -=200; kazna += 200;
- if(HouseInfo[h][hTakings] > 11200) HouseInfo[h][hTakings] = 11200;
- }
- if(HouseInfo[h][hKlass] == 4 && HouseInfo[h][hOwned] == 1)//Êëàññû äîìîâ
- {
- HouseInfo[h][hTakings] -=250; kazna += 250;
- if(HouseInfo[h][hTakings] > 14000) HouseInfo[h][hTakings] = 14000;
- }
- if(HouseInfo[h][hTakings] <= 0 && HouseInfo[h][hOwned] == 1)
- {
- new housecash = HouseInfo[h][hValue];
- new playeridd = GetPlayerID(HouseInfo[h][hOwner]);
- if(FIX_IsPlayerConnected(playeridd))
- {
- PlayerInfo[playeridd][pPhousekey] = 255;
- if(caridhouse[playeridd] != INVALID_VEHICLE_ID)
- {
- DestroyVehicleEx(caridhouse[playeridd]);
- caridhouse[playeridd] = INVALID_VEHICLE_ID;
- DeletePVar(playeridd, "CarNomer");
- }
- SendClientMessage(playeridd, COLOR_LIGHTRED, "Âàø äîì áûë ïðîäàí çà íåóïëàòó ãîñóäàðòñâó.");
- }
- else if(!FIX_IsPlayerConnected(playeridd))
- {
- format(mysql_query_, sizeof(mysql_query_), "UPDATE `"TABLE_ACCOUNT"` SET `pPhousekey` = '255', `pHousecash` = '%d' WHERE `Name` = '%s'",housecash, HouseInfo[h][hOwner]);
- mysql_function_query(connects, mysql_query_, false, "", "");
- }
- HouseInfo[h][hHel] = 0;
- HouseInfo[h][hLock] = 1;
- HouseInfo[h][hOwned] = 0;
- strmid(HouseInfo[h][hOwner], "Íåò", 0, strlen("Íåò"), 255);
- SaveHouse(h);
- BuyHouse(h);
- }
- HouseInfo[h][hRobhouse] = false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement