12.06.2011, 20:06
Код:
stock GetHouseStats(playerid, hid) { SendClientMessage(playerid, GREY, "|__________| House Commands |__________|"); SendClientMessage(playerid, WHITE, "/househelp | /buy | /visithouse."); SendClientMessage(playerid, GREY, "|__________| House Information |__________|"); new string[256]; if (strcmp(hInfo[hid][Name],"ForSale",true)) { format(string, sizeof(string), "Owned by: %s.", hInfo[hid][Name]); SendClientMessage(playerid, WHITE, string); } else { SendClientMessage(playerid, WHITE, "This house is for sale."); } hid = Gethi(playerid); if(strcmp(hInfo[hid][Renter],"ForRent",true)) { format(string, sizeof(string), "Rented by: %s.", hInfo[hid][Renter]); SendClientMessage(playerid, WHITE, string); } format(string, sizeof(string), "Cost: %i.", hInfo[hid][Cost]); SendClientMessage(playerid, WHITE, string); }