13.05.2017, 15:04
Код:
if(HInfo[i][Owned] == 1 && strcmp(HInfo[i][Owner],pName) != 0)//Checking if the house is owned but the house owner and the players name don't match. { TextDrawShowForPlayer(playerid,HouseMenu); TextDrawShowForPlayer(playerid,HouseMenu1); SendClientMessage(playerid,-1,"Error: You cannot entering this house."); } if(HInfo[i][Owned] == 0)//Simply checking if the house isn't owned. { TextDrawShowForPlayer(playerid,HouseBuy); TextDrawShowForPlayer(playerid,HouseBuy1); SendClientMessage(playerid,-1,"If you like this house type /buyhouse."); }