Armanish
Компетентный
Вообщем когда ты не платиш за дом тебе выселяют из дома и когда перезаходиш пишет вы были выселены, Но при каждом заходе на сервер это сообщение о выселение всегда повторяется пока ты не купиш дом..
Код
И ещё я нашёл такой же текст в public OnPlayerLogin(playerid, password[])
Буду рад за помощь!
Код
PHP:
if(PlayerInfo[i][pPHousekey] != 255)
{
if(HouseInfo[house][hTakings] <= 0)
{
new playerid;
PlayerInfo[i][pText] = 1;
PlayerInfo[i][pHousecash] = HouseInfo[house][hValue];
HouseInfo[house][hHel] = 0;
HouseInfo[house][hLock] = 1;
HouseInfo[house][hOwned] = 0;
HouseInfo[house][hVec] = 0;
HouseInfo[house][hVcol1] = -1;
HouseInfo[house][hVcol2] = -1;
SpawnChange[playerid] = 0;
DestroyVehicle(caridhouse[playerid]);
GetPlayerName(i, sendername, sizeof(sendername));
strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255);
SendClientMessage(i, 0xFF8C37AA, " Вы были выселены. Деньги за дом вы можете получить в банке \"/GetHouseMoney\"");
HouseInfo[house][hTakings] = 0;
PlayerInfo[i][pPHousekey] = 255;
}
else
{
format(string, sizeof(string), " Домашний счет: %d вирт", HouseInfo[house][hTakings]);
SendClientMessage(i,COLOR_NEWS,string);
}
}
if(PlayerInfo[i][pDonateRank] >= 1)
{
SendClientMessage(i, COLOR_NEWS, "================================");
}
else
{
SendClientMessage(i, COLOR_GRAD1, "================================");
}
}
PHP:
if(PlayerInfo[playerid][pText] == 1)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Вы были выселены за неуплату квартплаты");
SendClientMessage(playerid, COLOR_LIGHTRED, "Деньги за дом вы можете получить в банке \"/GetHouseMoney\"");
SpawnChange[playerid] = 0;
StopAudioStreamForPlayer(playerid);
}
