Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function UpdateLabel(update, h)
- {
- new PropertyString[256];
- if(update == 1)
- {
- new pret[100];
- if(HouseInfo[h][hValue] != 0) format(pret, 256, "\n{FFFFFF}Price: {E01F1F}$%s (/buyhouse)", FormatNumber(HouseInfo[h][hValue]));
- if(HouseInfo[h][hOwned] == 0)
- {
- DestroyDynamic3DTextLabel(HouseLabel[h]);
- DestroyDynamicPickup(HouseInfo[h][hPickupID]);
- HouseInfo[h][hPickupID] = CreateDynamicPickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
- format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {E01F1F}%d \n{FFFFFF}This house is for sale\nDescription: {E01F1F}%s \n{FFFFFF}Price: {E01F1F}$%s \n{FFFFFF}Level: {E01F1F}%d \n{FFFFFF}Pentru a cumpara aceasta casa, tasteaza {E01F1F}/buyhouse",h,HouseInfo[h][hDiscription],FormatNumber(HouseInfo[h][hValue]),HouseInfo[h][hLevel]);
- HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
- CreateDynamicMapIcon(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],31,0,-1,0,-1,500.0);
- }
- else if(HouseInfo[h][hOwned] == 1)
- {
- if(HouseInfo[h][hRentabil] == 1)
- {
- DestroyDynamic3DTextLabel(HouseLabel[h]);
- format(PropertyString, sizeof(PropertyString),"{E01F1F}%s{FFFFFF}\nHouse {E01F1F}%d \n{FFFFFF}Owner: {E01F1F}%s \n{FFFFFF}Rent: {E01F1F}$%s (/rentroom) \n{FFFFFF}Level: {E01F1F}%d%s",HouseInfo[h][hDiscription],h,HouseInfo[h][hOwner],FormatNumber(HouseInfo[h][hRent]),HouseInfo[h][hLevel],pret);
- HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
- CreateDynamicMapIcon(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],32,0,-1,0,-1,500.0);
- }
- else
- {
- DestroyDynamic3DTextLabel(HouseLabel[h]);
- format(PropertyString, sizeof(PropertyString),"{E01F1F}%s{FFFFFF}\nHouse {E01F1F}%d \n{FFFFFF}Owner: {E01F1F}%s \n{FFFFFF}Level: {E01F1F}%d%s",HouseInfo[h][hDiscription],h,HouseInfo[h][hOwner], HouseInfo[h][hLevel],pret);
- HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x09FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
- CreateDynamicMapIcon(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],32,0,-1,0,-1,500.0);
- }
- DestroyDynamicPickup(HouseInfo[h][hPickupID]);
- HouseInfo[h][hPickupID] = CreateDynamicPickup(1272, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
- }
- }
- else if(update == 2)
- {
- new pret[180];
- if(BizzInfo[h][bBuyPrice] != 0) format(pret, 256, "\n{FFFFFF}Price: {40A6FF}$%s (/buybiz)", FormatNumber(BizzInfo[h][bBuyPrice]));
- if(BizzInfo[h][bOwned] == 0)
- {
- DestroyDynamic3DTextLabel(BizzLabel[h]);
- format(PropertyString, sizeof(PropertyString),"{40A6FF}%s{FFFFFF}\n{FFFFFF}Business {40A6FF}#%d\n{FFFFFF}This business is for sale \n {FFFFFF}Price: {40A6FF}%s \n{FFFFFF}Level: {40A6FF}%d",BizzInfo[h][bMessage],h,FormatNumber(BizzInfo[h][bBuyPrice]),BizzInfo[h][bLevel]);
- BizzLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x0066FFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
- }
- else if(BizzInfo[h][bOwned] == 1)
- {
- DestroyDynamic3DTextLabel(BizzLabel[h]);
- format(PropertyString, sizeof(PropertyString),"{40A6FF}%s{FFFFFF}\n{FFFFFF}Business {40A6FF}#%d\n{FFFFFF}Owner: {40A6FF}%s \n{FFFFFF}Fee: {40A6FF}$%s\n{FFFFFF}Level:{40A6FF} %d%s",BizzInfo[h][bMessage],h,BizzInfo[h][bOwner],FormatNumber(BizzInfo[h][bFee]),BizzInfo[h][bLevel],pret);
- BizzLabel[h] = CreateDynamic3DTextLabel(PropertyString ,0x0066FFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 100.0);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement