Detaliile casei cu 3DTextLabel. Adauga la Public CustomPickups() for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(PlayerToPoint(2.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
{
if(HouseInfo[h][hOwned] == 1)
{
if(HouseInfo[h][hRentabil] == 0)
{
Delete3DTextLabel(Text3D:HouseLabel[h]);
format(string, sizeof(string), "Detinator: %s \n Level: %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(string ,0xE60000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,8,0,1);
}
else
{
Delete3DTextLabel(Text3D:HouseLabel[h]);
format(string, sizeof(string), "Detinator: %s \n Chirie: %d$ Level: %d \n Scrie [/rentroom] pentru a sta \n in chirie.",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(string ,0xE60000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,8,0,1);
}
return 1;
}
else
{
Delete3DTextLabel(Text3D:HouseLabel[h]);
format(string,sizeof(string),"Proprietate de vanzare \n Pret: %d$ Level: %d \n Scrie [/buyhouse] pentru a cumpara \n Proprietatea.",HouseInfo[h][hValue],HouseInfo[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(string ,0xE60000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,8,0,1);
}
return 1;
}
}