Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPropTextdrawUpdate(update, h)
- {
- new PropertyString[256];
- if(update == 1)
- {
- if(HouseInfo[h][hOwned] == 0)
- {
- Delete3DTextLabel(HouseLabel[h]);
- format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {FF0000}#%d \n{FF0000}Casa este de vanzare(/buyhouse) ! \n{FFFFFF}Owner: {FF0000}AdmBot\n{FFFFFF}Description: {FF0000}%s \n{FFFFFF}Price: {FF0000}$%s \n{FFFFFF}Level: {FF0000}%d",h,HouseInfo[h][hDiscription],FormatNumber(HouseInfo[h][hValue]),HouseInfo[h][hLevel]);
- HouseLabel[h] = Create3DTextLabel(PropertyString ,0x09FF00CC,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],100, 0, 1);
- DestroyPickup(HousePickup[h]);
- HousePickup[h] = CreatePickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
- }
- else if(HouseInfo[h][hOwned] == 1)
- {
- new tenants=0,query[256];
- format(query, sizeof(query), "SELECT * FROM `users` WHERE `Rented` = '%d'", h);
- new Cache: membresult = mysql_query(SQL, query);
- for(new i, j = cache_get_row_count (); i != j; ++i)
- {
- tenants++;
- }
- cache_delete(membresult);
- if(HouseInfo[h][hRentabil] == 1)
- {
- Delete3DTextLabel(HouseLabel[h]);
- format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {FF0000}%d \n{FF0000}%s \n{FFFFFF}Owner {FF0000}%s \n{FFFFFF}Tenants: {FF0000}%d \n{FFFFFF}Rent: {FF0000}$%s \n{FFFFFF}Level: {FF0000}%d \n{FF0000}To rent a room type /rentroom",h,HouseInfo[h][hDiscription],HouseInfo[h][hOwner],tenants,FormatNumber(HouseInfo[h][hRent]),HouseInfo[h][hLevel]);
- HouseLabel[h] = Create3DTextLabel(PropertyString ,0x09FF00CC,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],100, 0, 1);
- DestroyPickup(HousePickup[h]);
- HousePickup[h] = CreatePickup(1272, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
- }
- else
- {
- Delete3DTextLabel(HouseLabel[h]);
- format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {FF0000}%d \n{FF0000}%s \n{FFFFFF}Owner {FF0000}%s \n{FFFFFF}Tenants: {FF0000}%d \n{FFFFFF}Level: {FF0000}%d",h,HouseInfo[h][hDiscription],HouseInfo[h][hOwner], tenants, HouseInfo[h][hLevel]);
- HouseLabel[h] = Create3DTextLabel(PropertyString ,0x09FF00CC,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],100, 0, 1);
- DestroyPickup(HousePickup[h]);
- HousePickup[h] = CreatePickup(1272, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
- }
- }
- }
- else if(update == 2)
- {
- if(BizzInfo[h][bOwned] == 0)
- {
- Delete3DTextLabel(BizzLabel[h]);
- format(PropertyString, sizeof(PropertyString),"{357AB7}%s \n{FFFFFF}Business {357AB7}#%d \n{357AB7}Business-ul este de vanzare(/buybiz) ! \n{FFFFFF}Owner: {357AB7}AdmBot \n {FFFFFF}Price: {357AB7}%s \n{FFFFFF}Level: {357AB7}%d",BizzInfo[h][bMessage],h,FormatNumber(BizzInfo[h][bBuyPrice]),BizzInfo[h][bLevelNeeded]);
- BizzLabel[h] = Create3DTextLabel(PropertyString ,0x0066FFCC,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],100, 0, 1);
- }
- else if(BizzInfo[h][bOwned] == 1)
- {
- Delete3DTextLabel(BizzLabel[h]);
- format(PropertyString, sizeof(PropertyString),"{357AB7}%s \n{FFFFFF}Business {357AB7}#%d \n{FFFFFF}Owner: {357AB7}%s \n{FFFFFF}Fee: {357AB7}$%s",BizzInfo[h][bMessage],h,BizzInfo[h][bOwner],FormatNumber(BizzInfo[h][bEntranceCost]),BizzInfo[h][bLevelNeeded]);
- BizzLabel[h] = Create3DTextLabel(PropertyString ,0x0066FFCC,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],100, 0, 1);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement