[HELP] selling house admin command
#2

Quote:
Originally Posted by Luca12
Посмотреть сообщение
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
You could always attempt a /asellhouse [id]
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
Reply


Messages In This Thread
[HELP] selling house admin command - by Luca12 - 10.10.2014, 17:34
Re: [HELP] selling house admin command - by GGRoleplay - 10.10.2014, 18:48

Forum Jump:


Users browsing this thread: 1 Guest(s)