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;
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, SBizzInfo, SBizzInfo))
{
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,(SBizzInfo-SBizzInfo),SBizzInfo,SBizzInfo);
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
if(PlayerToPoint(1.0, i, SBizzInfo, SBizzInfo, SBizzInfo))
{
if(SBizzInfo == 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,SBizzInfo,SBizzInfo,SBizzInfo,SBizzInfo);
}
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,SBizzInfo,SBizzInfo);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
}
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(PlayerToPoint(1.0, i, HouseInfo, HouseInfo, HouseInfo))
{
if(HouseInfo == 1)
{
if(HouseInfo == 0)
{
format(string, sizeof(string), "~g~%s's crib~n~~w~Dostupne komande: /enter /ds",HouseInfo);
}
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,HouseInfo);
}
new playerid;
SetPlayerCheckpoint(playerid, HouseInfo, HouseInfo, HouseInfo, 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,HouseInfo);
}
new playerid;
SetPlayerCheckpoint(playerid, HouseInfo, HouseInfo, HouseInfo, 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, BizzInfo, BizzInfo))
{
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,(BizzInfo-BizzInfo),BizzInfo,BizzInfo);
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
if(PlayerToPoint(2.0, i, BizzInfo, BizzInfo, BizzInfo))
{
if(BizzInfo == 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,BizzInfo,BizzInfo,BizzInfo,BizzInfo);
}
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,BizzInfo,BizzInfo);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
}
}Neke slike/video za lakse dobivanje pomoci(neobavezno): → Slika 1 (Kako bi trebalo izgledati)→ Slika 2 ( Ovako je sada na modu,a trebam ga zamjenit kao sto je na slici 1)
