3d Text na kucama

Započeo Vilko, Jun 19, 2010, 14:04:11 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Zz,molim vas jel moze neko napravit tut 3d text na kucama

Extremnog sam zamolio i Sama oni nece evo razloga: "Niko nepomaze na ovom forumu samo ja." pa dajte jbt

HVALA

Citat: ╬Devilni Vilkoâ,,¢â•¬ poslato Jun 19, 2010, 14:04:11 POSLE PODNE
Zz,molim vas jel moze neko napravit tut 3d text na kucama

Extremnog sam zamolio i Sama oni nece evo razloga: "Niko nepomaze na ovom forumu samo ja." pa dajte jbt

HVALA
kad si to mene zamolio? :S...
prvo makni ono kad doÄ'eÅ¡ na pickup da pise cijena itd...
onda moras sa Create3DTextLabel napraviti 3d kad je kuca na prodaju...
a u komandi /buyhouse napravi Update3DTextLabel...
ovo ti je ukratko,vjerojatno cu izbaciti neki za ovo sutra...

Ti sto si meni objasnio.. Neam blage :(

neznam trebat ce mi vremena malo,mozda napravim ako mi se bude dalo...


Evo neznam jesam sta zaboravio.

Na vrh skripte negdje kod new ubaci:
new Text3D:HouseLabel[MAX_HOUSES];


Onda  vrhu kod forwarda ubaci:

forward OnPropTextdrawUpdate();


zatim kod public OnPlayerExitVehicle(playerid, vehicleid) dodas:

OnPropTextdrawUpdate();


onda public OnPropUpdate() dodas:

OnPropTextdrawUpdate();


Zatim ispod ongamemodeinit imas ono za kuce umjesto toga ubacis:
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
   if(HouseInfo[h][hEntrancex] != 0.000000 && HouseInfo[h][hEntrancey] != -1250.349243 && HouseInfo[h][hEntrancez] != 78.334503)
   {
   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 ,0x00FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
}
}
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 ,0x00FFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
}
}


i onda imas public OnPropTextdrawUpdate() ubacis:

new PropertyString[128];
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
   if(HouseInfo[h][hEntrancex] != 0.000000 && HouseInfo[h][hEntrancey] != -1250.349243 && HouseInfo[h][hEntrancez] != 78.334503)
   {
       Delete3DTextLabel(HouseLabel[h]);
   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 ,0x00FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
}
}
if(HouseInfo[h][hOwned] == 1)
{
   Delete3DTextLabel(HouseLabel[h]);
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 ,0x00FFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
}
}



Gle ovo ti ej iz mog gamemoda,vjerovatno ti nece pasat jer ce ti nesta falit,pa ako ti fali koji public kao sta je OnPropTextdrawUpdate() i ostalo onda cu ti iskopirat sve zivo pa ces imat i za bizeve i sbizeve 3D text...
Eto nadam se da sam ti pomogo....
Poslednja Izmena: Jun 19, 2010, 15:24:49 POSLE PODNE od SoaD123

Citat: SoaD123 poslato Jun 19, 2010, 15:11:51 POSLE PODNE
neznam trebat ce mi vremena malo,mozda napravim ako mi se bude dalo...


Evo neznam jesam sta zaboravio.

Na vrh skripte negdje kod new ubaci:
new Text3D:HouseLabel[MAX_HOUSES];


Onda  vrhu kod forwarda ubaci:

forward OnPropTextdrawUpdate();


zatim kod public OnPlayerExitVehicle(playerid, vehicleid) dodas:

OnPropTextdrawUpdate();


onda public OnPropUpdate() dodas:

OnPropTextdrawUpdate();


Zatim ispod ongamemodeinit imas ono za kuce umjesto toga ubacis:
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
   if(HouseInfo[h][hEntrancex] != 0.000000 && HouseInfo[h][hEntrancey] != -1250.349243 && HouseInfo[h][hEntrancez] != 78.334503)
   {
   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 ,0x00FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
}
}
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 ,0x00FFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
}
}


i onda imas public OnPropTextdrawUpdate() ubacis:

new PropertyString[128];
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
   if(HouseInfo[h][hEntrancex] != 0.000000 && HouseInfo[h][hEntrancey] != -1250.349243 && HouseInfo[h][hEntrancez] != 78.334503)
   {
       Delete3DTextLabel(HouseLabel[h]);
   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 ,0x00FF00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
}
}
if(HouseInfo[h][hOwned] == 1)
{
   Delete3DTextLabel(HouseLabel[h]);
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 ,0x00FFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
}
}



Gle ovo ti ej iz mog gamemoda,vjerovatno ti nece pasat jer ce ti nesta falit,pa ako ti fali koji public kao sta je OnPropTextdrawUpdate() i ostalo onda cu ti iskopirat sve zivo pa ces imat i za bizeve i sbizeve 3D text...
Eto nadam se da sam ti pomogo....

Jel bi to moglo na gf ic?

Pa fali mi public OnPlayer.. :D Bez toga nema nicega :(

Citat: ╬Devilni Vilkoâ,,¢â•¬ poslato Jun 19, 2010, 14:04:11 POSLE PODNE
Zz,molim vas jel moze neko napravit tut 3d text na kucama

Extremnog sam zamolio i Sama oni nece evo razloga: "Niko nepomaze na ovom forumu samo ja." pa dajte jbt

HVALA

a glavno je da si meni reko da neznam obacit objekt u skriptu!!!!!!!!!!!!  >:(

Decko, ovo je za napredno skriptanje ;) To tvoje je za nistarijsko skriptanje..
Razmisli