13.06.2014, 22:53
pawn Код:
if(strcmp(BizInfo[ClosestBiz(playerid)][owner],PlayerInfo[playerid][name],false) == 0)
{
new string[128];
format(string, sizeof(string), "You already own this Business (%s)", BizInfo[ClosestBiz(playerid)][name]);
SendClientMessage(playerid, COLOR_BRIGHTRED, string);
return 1;
}
if(BizInfo[ClosestBiz(playerid)][bought] == 1)
{
new string[128];
format(string, sizeof(string), "This Business (%s) is owned by %s, and is not for sale!", BizInfo[ClosestBiz(playerid)][name], BizInfo[ClosestBiz(playerid)][owner]);
SendClientMessage(playerid, COLOR_BRIGHTRED, string);
return 1;
}