3D Text Label
#2

Code:
 for(new h = 0; h < sizeof(HouseInfo); h++)   ////
				{
					if(PlayerToPoint(10.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
					{
						if(HouseInfo[h][hOwned] == 1)
						{
                            new string[700];
							if(HouseInfo[h][hRentabil] == 0)
							{
                                Delete3DTextLabel(Text3D:HouseLabel[h]);
					          	format(string, sizeof(string), "",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
                                HouseLabel[h] = Create3DTextLabel(string ,0xE60000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,20, 0, 1);
							}
							else
							{
					         	Delete3DTextLabel(Text3D:HouseLabel[h]);
					         	format(string, sizeof(string), "ID %d {0080FF}Detinator: {FFFFFF}%s \n {80FF00}Chirie: {FFFFFF}%d$ \n {80FF00}/rentroom",h,HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
			                 	HouseLabel[h] = Create3DTextLabel(string ,0xE60000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,20, 0, 1);
							}
							return 1;
						}
						else
						{
					       	Delete3DTextLabel(Text3D:HouseLabel[h]);
			                format(string,sizeof(string),"ID %d {0080FF}Casa de vanzare \n Pretul:{FFFFFF} %d$ \n {0080FF}Level:{FFFFFF} %d \n {0080FF}/buyhouse",h,HouseInfo[h][hValue],HouseInfo[h][hLevel]);
			            	HouseLabel[h] = Create3DTextLabel(string ,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,20, 0, 1);
			        	}
						return 1;
					}
				  }
Vezi la case daca iti merge si apoi iti modific si la biz respectiv sbiz.
Reply


Messages In This Thread
3D Text Label - by Rapk1d - 07.10.2012, 00:34
Re: 3D Text Label - by CaRa - 07.10.2012, 11:04
Re: 3D Text Label - by Rapk1d - 07.10.2012, 20:36
Re: 3D Text Label - by SumX - 07.10.2012, 21:34

Forum Jump:


Users browsing this thread: 1 Guest(s)