26.02.2013, 20:27
pawn Код:
stock IsHouseOwner(playerid, h)
{
new szName[32];
GetPlayerName(playerid, szName, 32);
if(!strcmp(HouseInfo[h][h_Owner], szName))
{
return 1;
}
else if(strcmp(HouseInfo[h][h_Owner], szName)) return SendClientMessage(playerid, COLOR_GREY, "{D10D0D}[ERROR]: {FFFFFF}You are not the owner of this house.");
}
EDIT: You used detter's suggestion on your command or stock? If you did it on stock, I'd suggest you use it on commands.