10.06.2012, 20:21
pawn Code:
// his function returns "1" if the given player is the owner of the given house
stock House_PlayerIsOwner(playerid, HouseID)
{
// Check if the player owns the house in any of his house-slots
if (AHouseData[HouseID][Owner] == APlayerData[playerid][PlayerName])
{
return 1;
}
return 0;
}