LOCK RESENO :D
Pod OnplayerSpawn Dodaj ovo , ako ne radi Dodaj pod OngamemodeInit
Create3DTextLabel("[Garaza]",COLOR_WHITE,,560.4296,-1312.7742,-0.7813,15.0,0);
ovaj Create3dTextLabel mi je pod OngamemodeInit nego juce sam prebacio neki kuce U GM i ovaj Create3d mi se izgubilo a u Gamemodeinit su tu :S na igricu ne mi pokazuje :)
Naso sam problem izvini za dupli post moze neko ovo da sredi evo vi
Citatpublic OnPropTextdrawUpdate(update, id)
{
new PropertyString[256];
if(update == 1)
{
if(HouseInfo[id][hOwned] == 0)
{
Delete3DTextLabel(HouseLabel[id]);
format(PropertyString,sizeof(PropertyString),"Kukjata e na prodazba.\n "#COL_ZELENA"Opis: {FFFFFF}%s\n "#COL_ZELENA"Level: {FFFFFF}%d | "#COL_ZELENA"Cena: {FFFFFF}%d$\n "#COL_ZELENA"Da kupite: {FFFFFF}/kupikukja",HouseInfo[id][hDiscription], HouseInfo[id][hLevel], HouseInfo[id][hValue]);
HouseLabel[id] = Create3DTextLabel(PropertyString ,0x48E31CAA,HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez]+0.5,20, 0, 1);
}
else if(HouseInfo[id][hOwned] == 1 && HouseInfo[id][hRentabil] == 1)
{
Delete3DTextLabel(HouseLabel[id]);
format(PropertyString,sizeof(PropertyString),""#COL_ZELENA"Vlasnik: {FFFFFF}%s\n "#COL_ZELENA"Opis: {FFFFFF}%s\n "#COL_ZELENA"Level: {FFFFFF}%d | "COL_ZELENA"Rent: {FFFFFF}%d$\n "#COL_ZELENA"Najam: {FFFFFF}/rentroom",HouseInfo[id][hOwner], HouseInfo[id][hDiscription], HouseInfo[id][hLevel], HouseInfo[id][hRent]);
HouseLabel[id] = Create3DTextLabel(PropertyString ,0x48E31CAA,HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez]+0.5,20, 0, 1);
}
else if(HouseInfo[id][hOwned] == 1 && HouseInfo[id][hRentabil] != 1)
{
Delete3DTextLabel(HouseLabel[id]);
format(PropertyString,sizeof(PropertyString),""#COL_ZELENA"Vlasnik: {FFFFFF}%s\n "#COL_ZELENA"Opis: {FFFFFF}%s\n "#COL_ZELENA"Level: {FFFFFF}%d",HouseInfo[id][hOwner], HouseInfo[id][hDiscription], HouseInfo[id][hLevel]);
HouseLabel[id] = Create3DTextLabel(PropertyString ,0x48E31CAA,HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez]+0.5,20, 0, 1);
}
}
else if(update == 2)
{
if(BizzInfo[id][bOwned] == 0)
{
Delete3DTextLabel(BizzLabel[id]);
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"Da kupite: "#COL_WHITE"/kupibiznis",BizzInfo[id][bMessage], BizzInfo[id][bLevelNeeded], BizzInfo[id][bBuyPrice]);
BizzLabel[id] = Create3DTextLabel(PropertyString ,0x33CCFFAA,BizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ]+0.5,20, 0, 1);
}
else if(BizzInfo[id][bOwned] == 1)
{
Delete3DTextLabel(BizzLabel[id]);
format(PropertyString,sizeof(PropertyString),"[%s]\n {00C0FF}Vlasnik: "#COL_WHITE"%s , {00C0FF}Reket: {FFFFFF}%s\n {00C0FF}Level: {FFFFFF}%d\n {00C0FF}Ulaz: {FFFFFF}/enter.",BizzInfo[id][bMessage],BizzInfo[id][bOwner], BizzInfo[id][bExtortion], BizzInfo[id][bLevelNeeded]);
BizzLabel[id] = Create3DTextLabel(PropertyString ,0x33CCFFAA,BizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ]+0.5,20, 0, 1);
}
}
else if(update == 3)
{
if(SBizzInfo[id][sbOwned] == 0)
{
Delete3DTextLabel(SBizzLabel[id]);
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"Da kupite: "#COL_WHITE"/kupibiznis",SBizzInfo[id][sbMessage],SBizzInfo[id][sbLevelNeeded], SBizzInfo[id][sbBuyPrice]);
SBizzLabel[id] = Create3DTextLabel(PropertyString ,0x33CCFFAA,SBizzInfo[id][sbEntranceX], SBizzInfo[id][sbEntranceY], SBizzInfo[id][sbEntranceZ]+0.5,20, 0, 1);
}
else if(SBizzInfo[id][sbOwned] == 1)
{
Delete3DTextLabel(SBizzLabel[id]);
format(PropertyString,sizeof(PropertyString),"[%s]\n {00C0FF}Vlasnik: "#COL_WHITE"%s , {00C0FF}Reket: "#COL_WHITE"%s\n {00C0FF}Level: "#COL_WHITE"%d",SBizzInfo[id][sbMessage],SBizzInfo[id][sbOwner], SBizzInfo[id][sbExtortion], SBizzInfo[id][sbLevelNeeded]);
SBizzLabel[id] = Create3DTextLabel(PropertyString ,0x33CCFFAA,SBizzInfo[id][sbEntranceX], SBizzInfo[id][sbEntranceY], SBizzInfo[id][sbEntranceZ]+0.5,20, 0, 1);
}
}
if(update == 4)
{
for(new h = 0; h < sizeof(Stan); h++) {
if(Stan[h][hOwned] == 0 && Stan[h][hBanned] != 1) {
if(Stan[h][sExteriorX] != 0.000000 && Stan[h][sExteriorY] != -1250.349243 && Stan[h][sExteriorZ] != 78.334503) {
Delete3DTextLabel(StanLabel[h]);
format(PropertyString,sizeof(PropertyString),"{F3FF02}Stan na prodaju!\n{F3FF02}Cena: {FFFFFF}$%d\n{F3FF02}/kupistan",Stan[h][HousePrice]);
StanLabel[h] = Create3DTextLabel(PropertyString ,0xFFFF00AA,Stan[h][sExteriorX], Stan[h][sExteriorY], Stan[h][sExteriorZ]+0.5,40.0, 0, 1);
}
}
else if(Stan[h][hOwned] == 1 && Stan[h][hBanned] != 1) {
Delete3DTextLabel(StanLabel[h]);
format(PropertyString,sizeof(PropertyString),"{F3FF02}Vlasnik: {FFFFFF}%s\n{F3FF02}Level: {FFFFFF}%d", Stan[h][hOwner],Stan[h][sLevel]);
StanLabel[h] = Create3DTextLabel(PropertyString ,0xFFFF00AA,Stan[h][sExteriorX], Stan[h][sExteriorY], Stan[h][sExteriorZ]+0.5,35.0, 0, 1);
}
if(Stan[h][hBanned] == 1) {
Delete3DTextLabel(StanLabel[h]);
format(PropertyString,sizeof(PropertyString),"{48E31C}Stan [BANOVANOG] igraca!\n{48E31C}Vlasnik: {EB8686}%s \n{48E31C}ID:{EB8686} %d", Stan[h][hOwner],h);
StanLabel[h] = Create3DTextLabel(PropertyString ,0xD50000FF,Stan[h][sExteriorX], Stan[h][sExteriorY], Stan[h][sExteriorZ]+0.5,35.0, 0, 1);
}
}
}
if(update == 5)
{
for(new h = 0; h < sizeof(Vikendica); h++) {
if(Vikendica[h][vOwned] == 0 && Vikendica[h][vBanned] != 1) {
if(Vikendica[h][vExteriorX] != 0.000000 && Vikendica[h][vExteriorY] != -1250.349243 && Vikendica[h][vExteriorZ] != 78.334503) {
Delete3DTextLabel(VikLabel[h]);
format(PropertyString,sizeof(PropertyString),"{FFAF00}Vikendica na prodaju!\n{FFAF00}Cena: {FFFFFF}$%d\n{FFAF00}/kupivikendicu",Vikendica[h][VikendicaPrice]);
VikLabel[h] = Create3DTextLabel(PropertyString ,0x00AA,Vikendica[h][vExteriorX], Vikendica[h][vExteriorY], Vikendica[h][vExteriorZ]+0.5,40.0, 0, 1);
}
}
else if(Vikendica[h][vOwned] == 1 && Vikendica[h][vBanned] != 1) {
Delete3DTextLabel(VikLabel[h]);
format(PropertyString,sizeof(PropertyString),"{FFAF00}Vlasnik: {FFFFFF}%s\n{FFAF00}Level: {FFFFFF}%d", Vikendica[h][vOwner],Vikendica[h][vLevel]);
VikLabel[h] = Create3DTextLabel(PropertyString ,0x00AA,Vikendica[h][vExteriorX], Vikendica[h][vExteriorY], Vikendica[h][vExteriorZ]+0.5,35.0, 0, 1);
}
if(Vikendica[h][vBanned] == 1) {
Delete3DTextLabel(VikLabel[h]);
format(PropertyString,sizeof(PropertyString),"{F81414}Vikendica [BANOVANOG] igraca!\n{F81414}Vlasnik: {FFFFFF}%s \n{F81414}ID:{FFFFFF} %d", Vikendica[h][vOwner],h);
VikLabel[h] = Create3DTextLabel(PropertyString ,0xD50000FF,Vikendica[h][vExteriorX], Vikendica[h][vExteriorY], Vikendica[h][vExteriorZ]+0.5,35.0, 0, 1);
}
}
}
return 1;
}
Citatfor(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
format(PropertyString,sizeof(PropertyString),"Kukjata e na prodazba.\n "#COL_ZELENA"Opis: {FFFFFF}%s\n "#COL_ZELENA"Level: {FFFFFF}%d | "#COL_ZELENA"Cena: {FFFFFF}%d$\n "#COL_ZELENA"Za kupuvanje koristi {FFFFFF}/kupikukja",HouseInfo[h][hDiscription], HouseInfo[h][hLevel], HouseInfo[h][hValue]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x48E31CAA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,20, 0, 1);
HousePickup[h] = CreateDynamicPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
else if(HouseInfo[h][hOwned] == 1 && HouseInfo[h][hRentabil] == 1)
{
format(PropertyString,sizeof(PropertyString),""#COL_ZELENA"Vlasnik: {FFFFFF}%s\n "#COL_ZELENA"Opis: {FFFFFF}%s\n "#COL_ZELENA"Level: {FFFFFF}%d | "#COL_ZELENA"Rent: {FFFFFF}%d$\n "#COL_ZELENA"Za rentanje koristi {FFFFFF}/rentroom",HouseInfo[h][hOwner], HouseInfo[h][hDiscription], HouseInfo[h][hLevel], HouseInfo[h][hRent]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x48E31CAA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,20, 0, 1);
HousePickup[h] = CreateDynamicPickup(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] = CreateDynamicPickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
}
for(new h = 0; h < sizeof(Stan); h++)
{
if(Stan[h][hOwned] == 0 && Stan[h][hBanned] != 1) {
if(Stan[h][sExteriorX] != 0.000000 && Stan[h][sExteriorY] != -1250.349243 && Stan[h][sExteriorZ] != 13.546875) {
format(PropertyString,sizeof(PropertyString),"{F3FF02}Stan na prodaju!\n{F3FF02}Cena: {FFFFFF}$%d\n{F3FF02}/kupistan",Stan[h][HousePrice]);
StanLabel[h] = Create3DTextLabel(PropertyString ,0xFFFF00AA,Stan[h][sExteriorX], Stan[h][sExteriorY], Stan[h][sExteriorZ]+0.5,40.0, 0, 1);
StanPickup[h] = AddStaticPickup(1273, 1, Stan[h][sExteriorX], Stan[h][sExteriorY], Stan[h][sExteriorZ]);
pickups++;
}
}
if(Stan[h][hOwned] == 1 && Stan[h][hBanned] != 1) {
format(PropertyString,sizeof(PropertyString),"{F3FF02}Vlasnik: {FFFFFF}%s\n{F3FF02}Level: {FFFFFF}%d", Stan[h][hOwner],Stan[h][sLevel]);
StanLabel[h] = Create3DTextLabel(PropertyString ,0xFFFF00AA,Stan[h][sExteriorX], Stan[h][sExteriorY], Stan[h][sExteriorZ]+0.5,35.0, 0, 1);
StanPickup[h] = AddStaticPickup(1239, 1, Stan[h][sExteriorX], Stan[h][sExteriorY], Stan[h][sExteriorZ]);
pickups++;
}
}
for(new h = 0; h < sizeof(Vikendica); h++)
{
if(Vikendica[h][vOwned] == 0 && Vikendica[h][vBanned] != 1) {
if(Vikendica[h][vExteriorX] != 0.000000 && Vikendica[h][vExteriorY] != -1250.349243 && Vikendica[h][vExteriorZ] != 13.546875) {
format(PropertyString,sizeof(PropertyString),"{FFAF00}Vikendica na prodaju!\n{FFAF00}Cena: {FFFFFF}$%d\n{FFAF00}/kupivikendicu",Vikendica[h][VikendicaPrice]);
VikLabel[h] = Create3DTextLabel(PropertyString ,0x00AA,Vikendica[h][vExteriorX], Vikendica[h][vExteriorY], Vikendica[h][vExteriorZ]+0.5,40.0, 0, 1);
VikPickup[h] = AddStaticPickup(1273, 1, Vikendica[h][vExteriorX], Vikendica[h][vExteriorY], Vikendica[h][vExteriorZ]);
pickups++;
}
}
if(Vikendica[h][vOwned] == 1 && Vikendica[h][vBanned] != 1) {
format(PropertyString,sizeof(PropertyString),"{FFAF00}Vlasnik: {FFFFFF}%s\n{FFAF00}Level: {FFFFFF}%d", Vikendica[h][vOwner],Vikendica[h][vLevel]);
VikLabel[h] = Create3DTextLabel(PropertyString ,0x00AA,Vikendica[h][vExteriorX], Vikendica[h][vExteriorY], Vikendica[h][vExteriorZ]+0.5,35.0, 0, 1);
VikPickup[h] = AddStaticPickup(1239, 1, Vikendica[h][vExteriorX], Vikendica[h][vExteriorY], Vikendica[h][vExteriorZ]);
pickups++;
}
if(Vikendica[h][vBanned] == 1) {
format(PropertyString,sizeof(PropertyString),"{F81414}Vikendica [BANOVANOG] igraca!\n{F81414}Vlasnik: {FFFFFF}%s \n{F81414}ID:{FFFFFF} %d", Vikendica[h][vOwner],h);
VikLabel[h] = Create3DTextLabel(PropertyString ,0xD50000FF,Vikendica[h][vExteriorX], Vikendica[h][vExteriorY], Vikendica[h][vExteriorZ]+0.5,35.0, 0, 1);
VikPickup[h] = AddStaticPickup(1239, 1, Vikendica[h][vExteriorX], Vikendica[h][vExteriorY], Vikendica[h][vExteriorZ]);
pickups++;
}
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
format(PropertyString,sizeof(PropertyString),"[%s]\n"#COL_RED"Biznisot e na prodazba.\n "COL_RED"Level: "#COL_GREEN"%d\n "#COL_RED" Cena: "#COL_GREEN"$%d\n "#COL_RED"Za kupuvanje koristi "#COL_GREEN"/kupibiznis",BizzInfo[h][bMessage],BizzInfo[h][bLevelNeeded],BizzInfo[h][bBuyPrice]);
BizzLabel[h] = Create3DTextLabel(PropertyString ,0xB4B5B7FF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20, 0, 1);
BizzPickup[h] = CreateDynamicPickup(1272,1,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
}
else if(BizzInfo[h][bOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"[%s]\n {F81414}Vlasnik: "#COL_GREEN"%s , \n {F81414}Reket: "#COL_GREEN"%s\n{F81414}Vlez: {6EF83C}%d $ \n{F81414}Level: {6EF83C}%d\n {F81414}Za vlez koristi: "#COL_GREEN"/enter.",BizzInfo[h][bMessage],BizzInfo[h][bOwner], BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost],BizzInfo[h][bLevelNeeded]);
BizzLabel[h] = Create3DTextLabel(PropertyString ,0xB4B5B7FF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20, 0, 1);
BizzPickup[h] = CreateDynamicPickup(1239, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][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[h][sbMessage],SBizzInfo[h][sbLevelNeeded],SBizzInfo[h][sbBuyPrice]);
SBizzLabel[h] = Create3DTextLabel(PropertyString ,0x33CCFFAA,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,20, 0, 1);
SBizzPickup[h] = CreateDynamicPickup(1272, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
}
else if(SBizzInfo[h][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[h][sbMessage],SBizzInfo[h][sbOwner], SBizzInfo[h][sbExtortion], SBizzInfo[h][sbLevelNeeded]);
SBizzLabel[h] = Create3DTextLabel(PropertyString , 0x33CCFFAA,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,20, 0, 1);
SBizzPickup[h] = CreateDynamicPickup(1239, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
}
}
te tu ima problem kad gi izbrisem svi textovi rade kad gi pustim opet ni jedan :S
RJESENO LOCK TE :D