[AJUDA] Text3dlabel Nao salva dono da casa
#7

Pera ae mano ja te passo meu Codigo ; D

EDIT

no inicio do gm onde tem suas news

new Text3D:JustinLabel;
new Text3D:JustinLabel2;
new Text3D:JustinLabel3;

no Public Custompickup coloca assim

for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(PlayerToPoint(12.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
{
if(HouseInfo[h][hOwned] == 1)
{
if(HouseInfo[h][hRentabil] == 0)
{
new JustinString[256];
Delete3DTextLabel(Text3D:JustinLabel3);
Delete3DTextLabel(Text3D:JustinLabel2);
format(JustinString,sizeof(JustinString),"Propriet ario da Casa: %s \nLevel: %d \nAperte a Letra F para entrar.",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
JustinLabel = Create3DTextLabel(JustinString ,COLOR_GRAD1,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],10, 0, 1);
}
else
{
Delete3DTextLabel(Text3D:JustinLabel);
Delete3DTextLabel(Text3D:JustinLabel3);
new JustinString2[256];
format(JustinString2,sizeof(JustinString2),"Propri etario da Casa: %s \nPreзo do Aluguel: R$%d \nLevel: %d \nAperte a Letra F para entrar.", HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
JustinLabel2 = Create3DTextLabel(JustinString2 ,COLOR_GRAD1,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],10, 0, 1);
}
return 1;
}
else
{
Delete3DTextLabel(Text3D:JustinLabel);
Delete3DTextLabel(Text3D:JustinLabel2);
new JustinString3[256];
format(JustinString3,sizeof(JustinString3),"Estб Casa estб avenda \nDescriзгo: %s \nPreзo da Casa: %d \nLevel: %d \nPara Comprar estб casa digite /ComprarCasa.", HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
JustinLabel3 = Create3DTextLabel(JustinString3 ,COLOR_GRAD1,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],10, 0, 1);
}
return 1;
}
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)