30.11.2012, 12:41
pawn Код:
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
format(PropertyString,sizeof(PropertyString),"{F81414}Kukjata e na prodazba\n {157DEC}Opis: {F3FF02}%s\n {157DEC}Level: {F3FF02}%d\n {157DEC}Cena: {F3FF02}%d$",HouseInfo[h][hDiscription], HouseInfo[h][hLevel], HouseInfo[h][hValue]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0xAA3333AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,20, 0, 0);
HousePickup[h] = CreatePickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
else if(HouseInfo[h][hOwned] == 1 && HouseInfo[h][hRentabil] == 1)
{
format(PropertyString,sizeof(PropertyString),"{F81414}Kukja\n {157DEC}Vlasnik: {F3FF02}%s\n {157DEC}Opis: {F3FF02}%s\n {157DEC}Level: {F3FF02}%d",HouseInfo[h][hOwner], HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0xAA3333AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,20, 0, 0);
HousePickup[h] = CreatePickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
else if(HouseInfo[h][hOwned] == 1 && HouseInfo[h][hRentabil] != 1)
{
format(PropertyString,sizeof(PropertyString),"{F81414}Kukja\n {157DEC}Vlasnik: {F3FF02}%s\n {157DEC}Opis: {F3FF02}%s\n {157DEC}Level: {F3FF02}%d",HouseInfo[h][hOwner], HouseInfo[h][hDiscription], HouseInfo[h][hLevel]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0xAA3333AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,20, 0, 0);
HousePickup[h] = CreatePickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
}
for(new bi = 0; bi < sizeof(BizzInfo); bi++)
{
if(BizzInfo[bi][bOwned] == 0)
{
format(PropertyString,sizeof(PropertyString),""#COL_WHITE"[%s]\n"#COL_SVPLAVA"Biznisot e na prodazba.\n "COL_SVPLAVA"Level: "#COL_WHITE"%d "#COL_SVPLAVA"| Cena: "#COL_WHITE"$%d\n "#COL_SVPLAVA"Za kupuvanje koristi "#COL_WHITE"/kupibiznis",BizzInfo[bi][bMessage],BizzInfo[bi][bLevelNeeded],BizzInfo[bi][bBuyPrice]);
BizzLabel[bi] = Create3DTextLabel(PropertyString ,0x33CCFFAA ,BizzInfo[bi][bEntranceX], BizzInfo[bi][bEntranceY], BizzInfo[bi][bEntranceZ]+0.5,20, 0, 1);
BizzPickup[bi] = CreatePickup(1272,1,BizzInfo[bi][bEntranceX], BizzInfo[bi][bEntranceY], BizzInfo[bi][bEntranceZ]);
}
else if(BizzInfo[bi][bOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"[%s]\n {00C0FF}Vlasnik: "#COL_WHITE"%s , {00C0FF}Reket: {FFFFFF}%s\n {00C0FF}Level: {FFFFFF}%d\n {00C0FF}Za vlez koristi: {FFFFFF}/enter.",BizzInfo[bi][bMessage],BizzInfo[bi][bOwner], BizzInfo[bi][bExtortion], BizzInfo[bi][bLevelNeeded]);
BizzLabel[bi] = Create3DTextLabel(PropertyString ,0x33CCFFAA,BizzInfo[bi][bEntranceX], BizzInfo[bi][bEntranceY], BizzInfo[bi][bEntranceZ]+0.5,20, 0, 1);
BizzPickup[bi] = CreatePickup(1239, 1, BizzInfo[bi][bEntranceX], BizzInfo[bi][bEntranceY], BizzInfo[bi][bEntranceZ]);
}
}
for(new b = 0; b < sizeof(SBizzInfo); b++)
{
if(SBizzInfo[b][sbOwned] == 0)
{
format(PropertyString,sizeof(PropertyString),""#COL_WHITE"[%s]\n"#COL_SVPLAVA"Biznis na prodazba.\n "#COL_SVPLAVA"Level: "#COL_WHITE"%d "#COL_SVPLAVA"| Cena: "#COL_WHITE"$%d\n "#COL_SVPLAVA"Za kupuvanje koristi "#COL_WHITE"/kupibiznis",SBizzInfo[b][sbMessage],SBizzInfo[b][sbLevelNeeded],SBizzInfo[b][sbBuyPrice]);
SBizzLabel[b] = Create3DTextLabel(PropertyString ,0x33CCFFAA,SBizzInfo[b][sbEntranceX], SBizzInfo[b][sbEntranceY], SBizzInfo[b][sbEntranceZ]+0.5,20, 0, 1);
SBizzPickup[b] = CreatePickup(1272, 1, SBizzInfo[b][sbEntranceX], SBizzInfo[b][sbEntranceY], SBizzInfo[b][sbEntranceZ]);
}
else if(SBizzInfo[b][sbOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"[%s]\n {00C0FF}Vlasnik: "#COL_WHITE"%s , {00C0FF}Reket: "#COL_WHITE"%s\n {00C0FF}Level: "#COL_WHITE"%d ",SBizzInfo[b][sbMessage],SBizzInfo[b][sbOwner], SBizzInfo[b][sbExtortion], SBizzInfo[b][sbLevelNeeded]);
SBizzLabel[b] = Create3DTextLabel(PropertyString , 0x33CCFFAA,SBizzInfo[b][sbEntranceX], SBizzInfo[b][sbEntranceY], SBizzInfo[b][sbEntranceZ]+0.5,20, 0, 1);
SBizzPickup[b] = CreatePickup(1239, 1, SBizzInfo[b][sbEntranceX], SBizzInfo[b][sbEntranceY], SBizzInfo[b][sbEntranceZ]);
}
}