31.01.2011, 02:25
pawn Код:
new stringlabel[256];
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
format(stringlabel, sizeof(stringlabel), "[CASA A VENDA]\n|Nome: %s|\n|Preњo:R$ %d|\n|Level: %d|\nPara comprar digite /comprarcasa",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
HouseInfo[h][hIcon] = CreatePickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
housesale = Create3DTextLabel(string1,COLOR_BLUE,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);
pickups++;
}
if(HouseInfo[h][hOwned] == 1)
{
HouseInfo[h][hIcon] = CreatePickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
Delete3DTextLabel(Text3D:housesale);
pickups++;
}
