[Pomoc] Ikonice za kuce i bizz

Započeo |TED| Boca SRB, Oktobar 20, 2012, 23:01:30 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:BE X8
Detaljan opis problema:E ovako hteo bih kad neko kupi kucu/bizz da mu na mapi bude crvena kuca/bizz a kad niko ne kupi da bude zelena
Dio skripte:if(HouseInfo[h][hOwned] == 0)
{
CreateDynamicMapIcon(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 31, 0, -1, -1, -1, 100.0);
format(PropertyString,sizeof(PropertyString),"{0ed400}Kuca na Prodaju! \n{0ed400}Vrsta: {FFFFFF}%s\n{0ed400}Level: {FFFFFF}%d \n{0ed400}Cena:{FFFFFF} $%d \n{0ed400}Adresa Kuce: {FFFFFF}%s\n{0ed400}Da kupite kucu {FFFFFF}/buyhouse",HouseInfo[h][hDiscription],HouseInfo[h][hLevel],HouseInfo[h][hValue],UlicaKuce(h));
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x9EC73DAA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],30, 0, 1);
HousePickup[h] = CreateDynamicPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
else if(HouseInfo[h][hOwned] == 1)
{
CreateDynamicMapIcon(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 32, 0, -1, -1, -1, 100.0);
format(PropertyString,sizeof(PropertyString),"{0ed400}Vlasnik {FFFFFF}%s \n{0ed400}Vrsta: {FFFFFF}%s\n{0ed400}Level: {FFFFFF}%d\n{0ed400}Rent:{FFFFFF} $%d\n {0ed400}Adresa Kuce: {FFFFFF}%s \n {0ed400}Da rentate kucu kucajte {FFFFFF}/rentroom", HouseInfo[h][hOwner],HouseInfo[h][hDiscription],HouseInfo[h][hLevel], HouseInfo[h][hRent],UlicaKuce(h));
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x9EC73DAA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],30, 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), "Opis:%s \n Naziv firme:Bankrotirao zbog faktura \n Biznis je na prodaju! \n ID:%d \n Enterijer Bizza: %d \n Cena: $%d \n Potreban level: %d \n  /bizhelp. ",BizzInfo[h][bMessage], BizzInfo[h][bVirWorld], BizzInfo[h][bInterior], BizzInfo[h][bBuyPrice], BizzInfo[h][bLevelNeeded]);
bizsale = Create3DTextLabel(PropertyString,0x00FF00FF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+1,50,0,1);
AddStaticPickup(1272, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
pickups++;
}
if(BizzInfo[h][bOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"%s\nVlasnik biznisa: %s\nID:%d | Cena: $%d | lvl: %d\nEnterijer Bizza: %d\nIznuda: %s\nCena  ulaza: $%d.\nPotrebni proizvodi:%d | Cena proizvoda:%d | Budzet:%d\nDa udjete stisnite F.",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bVirWorld],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded],BizzInfo[h][bInterior],BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost],BizzInfo[h][bProducts],
BizzInfo[h][bPriceProd],BizzInfo[h][bTill]);
bizsale = Create3DTextLabel(PropertyString ,0x00C2ECFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+1,50,0,1);
AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
pickups++;
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
            format(PropertyString, sizeof(PropertyString), "Opis:%s \n Naziv firme:Bankrotirao zbog faktura \n Biznis je na prodaju! \n ID:%d \n Enterijer Bizza: %d \n Cena: $%d \n Potreban level: %d \n  /bizhelp. ",SBizzInfo[h][sbMessage], SBizzInfo[h][sbVirWorld], SBizzInfo[h][sbInterior], SBizzInfo[h][sbBuyPrice], SBizzInfo[h][sbLevelNeeded]);
sbizsale = Create3DTextLabel(PropertyString,0x00FF00FF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+1,50,0,1);
AddStaticPickup(1272, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
pickups++;
}
if(SBizzInfo[h][sbOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"%s\nVlasnik biznisa: %s\nID:%d | Cena: $%d | lvl: %d\nEnterijer Bizza: %d\nIznuda: %s\nCena  ulaza: $%d.\nPotrebni proizvodi:%d | Cena proizvoda:%d | Budzet:%d\nDa udjete stisnite F.",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbVirWorld],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbInterior],SBizzInfo[h][sbExtortion],BizzInfo[h][bEntranceCost],SBizzInfo[h][sbProducts],
SBizzInfo[h][sbPriceProd],SBizzInfo[h][sbTill]);
sbizsale = Create3DTextLabel(PropertyString ,0x00C2ECFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],30, 0, 1);
AddStaticPickup(1239, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
pickups++;
}

}

Neke slike/video za lakse dobivanje pomoci(neobavezno): http://www.zaslike.com/viewer.php?file=x3d415v5r6aqy6tvnnys.png  http://www.zaslike.com/viewer.php?file=uo8ujezgfvdxgn7xa8uo.png
Poslednja Izmena: Oktobar 20, 2012, 23:09:10 POSLE PODNE od BocaBajrovic1995

Citat: [BN]Shockâ,,¢ poslato Oktobar 21, 2012, 00:58:33 PRE PODNE
http://balkan-samp.com/forum/index.php?topic=54461.0 Prouci ovo i znaces :)
malo pre sam to radio ali to je da bude ingame ali ja hocu da bude na mapi i ingame kapiras dole na mapi u uglu kao na BE starom :D