23.06.2010, 16:29
i got it from here
Код:
public OnPropTextdrawUpdate() { new PropertyString[128]; for(new h = 0; h < sizeof(HouseInfo); h++) { if(HouseInfo[h][hOwned] == 0) { if(HouseInfo[h][hEntrancex] != 0.000000 && HouseInfo[h][hEntrancey] != -1250.349243 && HouseInfo[h][hEntrancez] != 78.334503) { Delete3DTextLabel(HouseLabel[h]); format(PropertyString,sizeof(PropertyString),"House is UNOWNED! \n House ID: %d \n Price: $%d \n Description: %s \n Level Needed: %d",HouseInfo[h][hWorld], HouseInfo[h][hValue],HouseInfo[h][hDiscription], HouseInfo[h][hLevel]); HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1); } } if(HouseInfo[h][hOwned] == 1) { Delete3DTextLabel(HouseLabel[h]); format(PropertyString,sizeof(PropertyString),"House is Owned by %s \n House ID: %d \n Rent Price: $%d \n Description: %s \n To Rent Type /rentroom", HouseInfo[h][hOwner],HouseInfo[h][hWorld], HouseInfo[h][hRent], HouseInfo[h][hDiscription]); HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1); } }