[Ajuda] Empresa GameTextForPlayer
#1

Bom estou com alguns probleminhas, foi sou novo nisso, eu queria mudar o GameTextForPlayer da Empresa e das casas no GM que eu estou usando, mais eu nгo consigo, se puder me ajudar agradeзo deis de jб..

Quote:

public CustomPickups()
{
new Floatldposx, Floatldposy, Floatldposz;
new string[128];
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~Produtos Requeridos:~w~ %d~n~~w~Preзo por Produto: ~g~R$%d ~n~~w~Fundos: ~g~R$%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(2.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
{
if(SBizzInfo[h][sbOwned] == 1)
{
format(string, sizeof(string), "~w~%s~w~~n~Dono: %s~n~Sуcio: %s~n~Taxa:~g~R$%d - ~w~Level: %d ~n~Entrada /entrar",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbLevelNeeded]);
}
else
{
format(string, sizeof(string), "~w~%s a Venda~n~~g~Preзo: R$%d - ~w~Level Requerido: %d ~n~Comprar /comprarempresa",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
}

Reply
#2

format(string, sizeof(string), "~w~%s~n~~r~test~w~ %d~n~~w~test: ~g~R$%d ~n~~w~lololol: ~g~R$%d",SBizzInfo[h][sbMessage],(SBizzInfo[h][sbMaxProducts]-SBizzInfo[h][sbProducts]),SBizzInfo[h][sbPriceProd],SBizzInfo[h][sbTill]);
Reply
#3

vocк reparou bem o meu tуpico?? '-'
Reply
#4

ups epic fail xDDDD
Reply
#5

E para o que seria que vocк quer mudar? Pois vocк nгo expecificou.
Reply
#6

Bom PQ nгo achei legal o cara ter que ficar encima da pickup para mostrar as informaзхes da casa ou da empresa, toda vez vocк terб que ficar indo acima da pickup para verificar quem й o proprietario, nгo й muito legal isso, e nem os players gostam, pois й perda de tempo, algumas vezes sim, outras vezes nгo, pois quem tem sorte, compra a empresa, outro nгo pq nгo vai querer ficar indo toda hora na pickup pra ver se o player perdeu a empresa ou a empresa foi jб vendido...
Reply
#7

Sozinho mais consegui.. Quem quiser o codigo, estб aew abaixo..
Quote:

public CustomPickups()
{
new Floatldposx, Floatldposy, Floatldposz;
new string[128];
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~Produtos Requeridos:~w~ %d~n~~w~Preзo por Produto: ~g~R$%d ~n~~w~Fundos: ~g~R$%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(2.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
{
if(SBizzInfo[h][sbOwned] == 1)
{
format(string, sizeof(string), "%s\nProprietбrio: %s\nSуcio: %s\nTaxa:R$%d\nLevel: %d\nEntrada /entrar",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbLevelNeeded]);
}
else
{
format(string, sizeof(string), "%s\nPreзo: R$%d\nLevel: %d \nComprar /comprarempresa",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
}
Create3DTextLabel(string, COLOR_WHITE, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ], 40,0);
return 1;
}
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)