3D Text Label
#1

Salut! Am acest 3D Text House/Biz/Sbiz Label ..

http://i.imgur.com/ye4El.jpg

Care este problema ?
-Vreau sa adaug o linie noua care sa arate ID-ul casei . gen : ID : x
-Vreau sa maresc textul . Adica , sa incapa mai mult pe linii iar pe server sa fie mai mare .

3D Text House Label :

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)
						{
							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],30.0, 0, 1);
							}
							else
							{
						Delete3DTextLabel(Text3D:HouseLabel[h]);
						format(string, sizeof(string), "{0080FF}Detinator: {FFFFFF}%s \n {80FF00}Chirie: {FFFFFF}%d$ \n {80FF00}/rentroom",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
			        	HouseLabel[h] = Create3DTextLabel(string ,0xE60000FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],30.0, 0, 1);
							}
							return 1;
						}
						else
						{
						Delete3DTextLabel(Text3D:HouseLabel[h]);
			            format(string,sizeof(string),"{0080FF}Casa de vanzare \n Pretul:{FFFFFF} %d$ \n {0080FF}Level:{FFFFFF} %d \n {0080FF}/buyhouse",HouseInfo[h][hValue],HouseInfo[h][hLevel]);
			        	HouseLabel[h] = Create3DTextLabel(string ,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],30.0, 0, 1);
			        	}
						return 1;
					}
				  }
3D Text Biz Label :

Code:
for(new h = 0; h < sizeof(BizzInfo); h++)
				{
					if(PlayerToPoint(10.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
					{
						if(BizzInfo[h][bOwned] == 1)
						{
						Delete3DTextLabel(Text3D:BizzLabel[h]);
						format(string, sizeof(string), "{CC0099}%s \n {0080FF}Detinator: {FFFFFF}%s \n {0080FF}Extortion: {FFFFFF}%s\n {0080FF}Fee :{FFFFFF} %d$ \n {0080FF}/enter",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost],BizzInfo[h][bLevelNeeded]);
                        BizzLabel[h] = Create3DTextLabel(string ,0xE60000FF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],30.0, 0, 1);
						}
						else
						{
                        Delete3DTextLabel(Text3D:BizzLabel[h]);
						format(string, sizeof(string), "{0080FF}%s \n {0080FF}De vanzare \n {0080FF}Pretul: {FFFFFF}%d$ \n {0080FF}Level: {FFFFFF}%d \n {0080FF}/buybiz",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);
                        BizzLabel[h] = Create3DTextLabel(string ,0xFFFFFFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],30.0, 0, 1);
						}
						return 1;
					}
				}
3D Text SBiz Label :

Code:

	for(new h = 0; h < sizeof(SBizzInfo); h++)
				{
					if(PlayerToPoint(10.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
					{
						if(SBizzInfo[h][sbOwned] == 1)
						{
						Delete3DTextLabel(Text3D:SBizzLabel[h]);
						format(string, sizeof(string), "{0080FF}%s \n {0080FF}Detinator: {FFFFFF}%s \n {0080FF}Extortion: {FFFFFF}%s\n {80FF00}Fee:{FFFFFF} %d$ \n {0080FF}/enter",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbLevelNeeded]);
                        SBizzLabel[h] = Create3DTextLabel(string ,0xE60000FF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],30.0, 0, 1);
						}
						else
						{
						Delete3DTextLabel(Text3D:SBizzLabel[h]);
						format(string, sizeof(string), "{0080FF}%s \n {0080FF}For Sale! \n {0080FF}Pretul:{FFFFFF} %d$ \n {0080FF}Level: {FFFFFF}%d \n {0080FF}/buybiz",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
                        SBizzLabel[h] = Create3DTextLabel(string ,0xFFFFFFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],30.0, 0, 1);
						}
						return 1;
					}
				}
Astept raspunsurile voastre mersi !
Reply
#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
#3

Quote:
Originally Posted by CaRa
View Post
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.
o eroare :

legata de new string[700] - ca este scrisa si anterior
Reply
#4

si fa si tu alt string.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)