10.10.2014, 18:48
Quote:
Hello. Is there a way to make when for example player John John is offline and then admin ingame with command sell his house is there a way to somehow make when admin sell that house then house id in that player stats is set to -1 which means that he doens't have a house if you know what I mean? Thanks
|
Houses[id][IsForSale] = -2;
And then when he connects you can do it likes this
if(Houses[Player[playerid][HouseID][IsForSale] == -2)
{
SendClientMesssage(playerid, -1, "Your house has been sold by an admin");
Houses[Player[playerid][HouseID]][IsForSale] = -1;
Player[playerid][HouseID] = -1;
}
You could try something in that way