[AJUDA] 3dText nas casas... -
Eu tenho um sistema de casas que da o nome do dono o aluguel etc, quando vai no local da casinha verde...
Queria deixar estas informaзхes em 3dtext Para o pessoal ver de longe sabe...
Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(PlayerToPoint(2.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
{
if(HouseInfo[h][hOwned] == 1)
{
if(HouseInfo[h][hRentabil] == 0)
{
format(string, sizeof(string), "~w~proprietЃrio da casa:~n~%s~n~Level : %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
}
else
{
format(string, sizeof(string), "~w~proprietЃrio da casa:~n~%s~n~Aluguel: R$ %d Level : %d~n~digite /alugarquarto para alugar um quarto",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
else
{
format(string, sizeof(string), "~w~a casa estЃ a venda~n~Descriњљo: %s ~n~Preњo: ~g~R$ %d ~n~~w~ Level : %d~n~para comprar digite /comprarcasa",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
}
Re: [AJUDA] 3dText nas casas... -
Nгo sei se vai funcionar, pois estou sem GTA aqui no note e estou viajando...
Peguei isto do gamemode Raven's Roleplay, que й um LARP... Adapte a seu gamemode
pawn Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
if(HouseInfo[h][hSetted] == 1)
{
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 ,0x00FF00AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
HousePickup[h] = CreateDynamicPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
}
else if(HouseInfo[h][hOwned] == 1)
{
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 ,0x00FFFFAA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
HousePickup[h] = CreateDynamicPickup(1272, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
format(PropertyString,sizeof(PropertyString),"Bizz is Unowned! \n Bizz ID: %d \n Price: $%d \n Level Needed: %d \n To Buy This, /buybiz", BizzInfo[h][bVirWorld], BizzInfo[h][bBuyPrice], BizzInfo[h][bLevelNeeded]);
BizzLabel[h] = Create3DTextLabel(PropertyString ,0x00FF00AA,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],50, 0, 1);
}
else if(BizzInfo[h][bOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n Bizz ID: %d \n Extortion: %s \n Entering Fee: $%d. \n To enter this, /enter.",BizzInfo[h][bMessage],BizzInfo[h][bOwner], BizzInfo[h][bVirWorld], BizzInfo[h][bExtortion], BizzInfo[h][bEntranceCost]);
BizzLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],50, 0, 1);
}
CreateDynamicPickup(1274,1,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],-1);
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
format(PropertyString,sizeof(PropertyString),"Bizz is Unowned! \n Price: $%d \n Level Needed: %d \n To Buy This, Type /buybiz", SBizzInfo[h][sbBuyPrice], SBizzInfo[h][sbLevelNeeded]);
SBizzLabel[h] = Create3DTextLabel(PropertyString ,0x00FF00AA,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],30, 0, 1);
}
else if(SBizzInfo[h][sbOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n Extortion: %s \n Entering Fee: $%d. \n To enter this, /enter.",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner], SBizzInfo[h][sbExtortion], BizzInfo[h][bEntranceCost]);
SBizzLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],30, 0, 1);
}
}
for(new i = 0; i < sizeof(BurgerDriveIn); i++)
{
BurgerPickUp[i] = CreateDynamicPickup(1239, 23, BurgerDriveIn[i][0], BurgerDriveIn[i][1], BurgerDriveIn[i][2], 0);
pickups++;
}
for(new i = 0; i < sizeof(ChickenDriveIn); i++)
{
ChickenPickUp[i] = CreateDynamicPickup(1239, 23, ChickenDriveIn[i][0], ChickenDriveIn[i][1], ChickenDriveIn[i][2], 0);
pickups++;
}
for(new h = 0; h < sizeof(InfoPickups); h++)
{
Create3DTextLabel("[INFO] \n Press \"SPRINT KEY\" To get information \n about the pickup",0x008080AA, InfoPickups[h][0],InfoPickups[h][1],InfoPickups[h][2], 5,0,1);
}
Re: [AJUDA] 3dText nas casas... -
Re: [AJUDA] 3dText nas casas... -
Re: [AJUDA] 3dText nas casas... -
Se eu postei aki й que nгo achei desculpe se jб tem...
Re: [AJUDA] 3dText nas casas... -
Re: [AJUDA] 3dText nas casas... -