17.07.2010, 18:26
pawn Код:
new BizText[256];
if(BizInfo[b][bOwned] == 0)
{
BizInfo[b][bPickup] = CreatePickup(1274, 1, BizInfo[b][bEntrancex], BizInfo[b][bEntrancey], BizInfo[b][bEntrancez]);
format(BizText, sizeof(BizText), "[%s]\n[Business Price: $%d]\n[%s]", BizInfo[b][bName], BizInfo[b][bPrice], BizType[BizInfo[b][bType]]);
BizInfo[b][bLabel] = Create3DTextLabel(BizText, COLOR_WHITE/*0x88EE88FF*/, BizInfo[b][bEntrancex], BizInfo[b][bEntrancey], BizInfo[b][bEntrancez]+0.82, 20.0, 0, 1);
}
else if(BizInfo[b][bOwned] == 1)
{
BizInfo[b][bPickup] = CreatePickup(1318, 1, BizInfo[b][bEntrancex], BizInfo[b][bEntrancey], BizInfo[b][bEntrancez]);
format(BizText, sizeof(BizText), "[%s]\n[%s]\n[%s]", BizInfo[b][bName], BizInfo[b][bOwner], BizType[BizInfo[b][bType]]);
BizInfo[b][bLabel] = Create3DTextLabel(BizText, COLOR_WHITE /*0x5D9BFFBC*/, BizInfo[b][bEntrancex], BizInfo[b][bEntrancey], BizInfo[b][bEntrancez]+0.82, 20.0, 0, 1);
}
}
}
return 1;
}