Skripta koju koristim: Moj edit GF
Detaljan opis problema: E ovako ,zelim da mi ispred biznisa pise, text ne Game Text kao sto je sada,pa kako to da zamjenim?
Dio skripte:
public CustomPickups()
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new string[528];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerPos(i, oldposx, oldposy, oldposz);
new tmpcar = GetPlayerVehicleID(i);
if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)
{
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
{
format(string, sizeof(string), "~w~%s~n~~r~Products Required~w~: %d~n~~y~Price per Product: ~w~: $%d~n~~g~Funds: ~w~: $%d",SBizzInfo[h][sbMessage],(SBizzInfo[h][sbMaxProducts]-SBizzInfo[h][sbProducts]),SBizzInfo[h][sbPriceProd],SBizzInfo[h][sbTill]);
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
if(PlayerToPoint(1.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
{
if(SBizzInfo[h][sbOwned] == 1)
{
format(string, sizeof(string), "~w~%s~w~~n~Owner : %s~n~Extortion by : %s~n~Entrance Fee : ~g~$%d ~w~Level : %d ~n~to enter type /enter",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbLevelNeeded]);
}
else
{
format(string, sizeof(string), "~w~%s~w~~n~Biznis na prodaju~n~Cijena: ~g~$%d ~w~Level : %d ~n~Da kupis ovaj biz ukucaj /buybiz",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
}
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(PlayerToPoint(1.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
{
if(HouseInfo[h][hOwned] == 1)
{
if(HouseInfo[h][hRentabil] == 0)
{
format(string, sizeof(string), "~g~%s's crib~n~~w~Dostupne komande: /enter /ds",HouseInfo[h][hOwner]);
}
else
{
format(string, sizeof(string), "~w~Ova kuca se moze rentati~n~~g~Vlasnik %s Rent: $%d~n~~w~Dostupne komande: /enter /ds /rentroom",HouseInfo[h][hOwner],HouseInfo[h][hRent]);
}
new playerid;
SetPlayerCheckpoint(playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 1.0);
TextDrawShowForPlayer(playerid, kucatext);
TextDrawSetString(kucatext, string);
SetTimer("UnistiText", 5000, 0);
return 1;
}
else
{
format(string, sizeof(string), "~g~Ova kuca je na prodaju: Cijena: $%d Level: %d~n~~w~Dostupne komande: /ds /enter /buyhouse",HouseInfo[h][hValue],HouseInfo[h][hLevel]);
}
new playerid;
SetPlayerCheckpoint(playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 1.0);
TextDrawShowForPlayer(playerid, kucatext);
TextDrawSetString(kucatext, string);
SetTimer("UnistiText", 5000, 0);
return 1;
}
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
{
format(string, sizeof(string), "~w~%s~n~~r~Products Required~w~: %d~n~~y~Price per Product: ~w~: $%d~n~~g~Funds: ~w~: $%d",BizzInfo[h][bMessage],(BizzInfo[h][bMaxProducts]-BizzInfo[h][bProducts]),BizzInfo[h][bPriceProd],BizzInfo[h][bTill]);
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
if(PlayerToPoint(2.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
{
if(BizzInfo[h][bOwned] == 1)
{
format(string, sizeof(string), "~w~%s~w~~n~Vlasnik : %s~n~Reket : %s~n~CjenaUlaza : ~g~$%d ~w~LeveL : %d ~n~za ulazak /enter",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost],BizzInfo[h][bLevelNeeded]);
}
else
{
format(string, sizeof(string), "~w~%s~w~~n~Biznis je na prodaju~n~Cjena: ~g~$%d ~w~LeveL : %d ~n~da kupis biznis /buybiz",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
}
}
Neke slike/video za lakse dobivanje pomoci(neobavezno): â†' Slika 1 (Kako bi trebalo izgledati) (http://zaslike.com/files/kxv45ng0b7brcmdn3h3o.png)â†' Slika 2 ( Ovako je sada na modu,a trebam ga zamjenit kao sto je na slici 1) (http://zaslike.com/files/39bib7ravkzosl8nhotb.png)
Svaki GameTextForPlayer izmenis sa SendClientMessage.
Citat: Daniel Zero poslato Maj 31, 2012, 14:42:12 POSLE PODNE
Svaki GameTextForPlayer izmenis sa SendClientMessage.
Ja neću da mi Å¡alje IgraÄu Message kad stane pored biznisa,već da se to vidi,i to nije tako... NeÅ¡to ide poput ovog tipa,ali ne znam kako to sad primjenit for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
format(PropertyString,sizeof(PropertyString),"%s \n Ovaj biznis je za prodaju \n Level %d | Cijena $%d \n Ukucaj /buybiz da kupis biznis",BizzInfo[h][bMessage], BizzInfo[h][bLevelNeeded], BizzInfo[h][bBuyPrice]);
BizzLabel[h] = Create3DTextLabel(PropertyString ,0x33CCFFAA,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],50, 0, 1);
CreateDynamicPickup(1272, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
}
else if(BizzInfo[h][bOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"%s \n Vlasnik %s \n Level %d | Reket: %s \n Ukucaj /enter da udjes",BizzInfo[h][bMessage],BizzInfo[h][bOwner], BizzInfo[h][bLevelNeeded], BizzInfo[h][bExtortion]);
BizzLabel[h] = Create3DTextLabel(PropertyString ,0xFFFFFFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ],50, 0, 1);
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),"%s \n Ovaj biznis je za prodaju \n Level %d | Cijena $%d \n Ukucaj /buybiz da kupis biznis",SBizzInfo[h][sbMessage], SBizzInfo[h][sbLevelNeeded], SBizzInfo[h][sbBuyPrice]);
SBizzLabel[h] = Create3DTextLabel(PropertyString ,0x33CCFFAA,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],30, 0, 1);
CreateDynamicPickup(1272, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
}
else if(SBizzInfo[h][sbOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"%s \n Vlasnik: %s , Reket: %s \n Level: %d \n Za Ulazak Koristi, /enter.",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner], SBizzInfo[h][sbExtortion], SBizzInfo[h][sbLevelNeeded]);
SBizzLabel[h] = Create3DTextLabel(PropertyString ,0xFFFFFFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ],30, 0, 1);
CreateDynamicPickup(1239, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
}
}
Aha,moras napraviti 3dTextLabel, ali ja nisam dovoljno dobar skripter za to, a i trebalo bi mi vremena dosta :)
Citat: Daniel Zero poslato Maj 31, 2012, 14:58:42 POSLE PODNE
Aha,moras napraviti 3dTextLabel, ali ja nisam dovoljno dobar skripter za to, a i trebalo bi mi vremena dosta :)
Ja sam tražio onog ko zna a ne ko ne zna :D Ali dobro,hvala ti u svakom sluÄaju.PS: Ima li neko da zna ovo rijeÅ¡it,da mu dam pwn da mi srijedi?
Znam ja to napraviti, nije tesko, obrisi poruke iz PM-a ili me na skype dodaj. jo0ker21