22.02.2012, 20:30
PHP код:
public OnPropTextdrawUpdate(update, id)
{
if(update == 1)
{
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
new hnxx[256];
format(hnxx, sizeof(hnxx), ""WHITE"[NA PRODAJU]\n"GREEN"Cena: "WHITE"$ %d\n"GREEN"Potreban Level: "WHITE"%d\n"GREEN"Opis: "WHITE"%s\n"GREEN"Da kupite kucajte "WHITE"/buyhouse",HouseInfo[h][hValue],HouseInfo[h][hLevel],HouseInfo[h][hDiscription]);
Delete3DTextLabel(housesale);
housesale = Create3DTextLabel(hnxx,COLOR_GREEN,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);
AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
if(HouseInfo[h][hOwned] == 1)
{
new hnxxx[256];
format(hnxxx, sizeof(hnxxx), ""GREEN"Vlasnik: "GREEN"%s\n"GREEN"Opis: "WHITE"%s\n"GREEN"Potreban Level: "WHITE"%d\n"GREEN"Rent: "WHITE"%s\n"GREEN"Interier: "GREEN"%d",HouseInfo[h][hOwner],HouseInfo[h][hDiscription],HouseInfo[h][hLevel],HouseInfo[h][hRent],HouseInfo[h][hInt]);
Delete3DTextLabel(housesale);
housesalee = Create3DTextLabel(hnxxx,COLOR_GREEN,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15,0,1);
AddStaticPickup(1318, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
}
}
return 1;
}