25.02.2013, 03:16
pawn Код:
stock IsHouseOwner(playerid, h)
{
new szName[32];
GetPlayerName(playerid, szName, 32);
if(!strcmp(HouseInfo[h][h_Owner], szName))
{
return 1;
}
else SendClientMessage(playerid, COLOR_GREY, "{D10D0D}[ERROR]: {FFFFFF}You are not the owner of this house.");
return 0;
}
But, if I am not the house owner it sends me the client message but it also allows me to continue the command
Thanks in advance. ;3