BPS::PayDay() { new Conta,interest, dia, mes, ano; new rent = 0; timeinc = 0; teveguerra=false; teveprevisao=false; ResetSeq(); new stringpayday[128]; getdate(ano, mes, dia); format( stringpayday, sizeof stringpayday, "%s",VerSemana(dia,mes,ano)); TextDrawSetString(Reloginho3, stringpayday); foreach(Player, i) { SetPVarInt(i, #VarFlood1, 0); SetPVarInt(i, #VarFlood2, 0); SetPVarInt(i, #VarFlood3, 0); SetPVarInt(i, #VarFlood4, 0); SetPVarInt(i, #VarFlood5, 0); SetPVarInt(i, #VarFlood6, 0); SetPVarInt(i, #VarFlood7, 0); SetPVarInt(i, #VarFlood8, 0); SetPVarInt(i, #VarFlood9, 0); SetPVarInt(i, #VarFlood10, 0); SetPVarInt(i, #VarFlood11, 0); SetPVarInt(i, #VarFlood13, 0); SetPVarInt(i, #VarFlood14, 0); SetPVarInt(i, #VarGranaBar1, 0); SetPVarInt(i, #VarGranaBar2, 0); SetPVarInt(i, #VarGranaBar3, 0); SetPVarInt(i, #VarGranaBar4, 0); SetPVarInt(i, #VarGranaBar5, 0); SetPVarInt(i, #VarFloodLocalizar, 0); SetPVarInt(i, #VarFloodsprunk, 0); SetPVarInt(i, "VarDano", 0); SetPVarInt(i, "timeLastVeh", 0); if(gPlayerLogged[i]) { if(PlayerInfo[i][pLevel] > 0) { if(MoneyMessage[i]==1) { SendClientMessage(i, COR_TRIADS, "Vocк devia ter debitado suas dнvidas, lhe enviaram um pedido de prisгo."); GameTextForPlayer(i, "~r~apreendido !", 2000, 1); SetPlayerInterior(i, 6); SetPlayerPos(i, 264.6288,77.5742,1001.0391); PlayerInfo[i][pJailed] = 1; ResetPlayerWeapons(i); WantedPoints[i] = 0; PlayerInfo[i][pJailTime] = 240; format(stringpayday, sizeof(stringpayday), "Vocк foi preso por %d segundos. Fianзa: Desativada", PlayerInfo[i][pJailTime]); SendClientMessage(i, COLOR_LIGHTBLUE, stringpayday); } new playername2[MAX_PLAYER_NAME]; GetPlayerName(i, playername2, sizeof(playername2)); new key = PlayerInfo[i][pPHousekey]; if(key != 500) { rent = HouseInfo[key][hRent]; if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { rent = 0; } else if(rent > GetPlayerMoney(i)) { PlayerInfo[i][pPHousekey] = 500; SendClientMessage(i, COLOR_WHITE, "Vocк foi expulso(a)."); rent = 0; } HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent; } new tmpintrate; if(PlayerInfo[i][pVIP] == 1) { tmpintrate = 14; PlayerInfo[i][pExp]+=2; } else if(PlayerInfo[i][pVIP] == 2) { tmpintrate = 18; PlayerInfo[i][pExp]+=5; } else if(PlayerInfo[i][pVIP] == 5) { tmpintrate = 24; PlayerInfo[i][pExp]+=10; } else if(PlayerInfo[i][pVIP] == 6) { tmpintrate = 30; PlayerInfo[i][pExp]+=13; } else { tmpintrate = 6; PlayerInfo[i][pExp]++; } if(PlayerInfo[i][pPayDay] >= 3) { //new Conta = PlayerInfo[i][pConta]; Tax += TaxValue;//Shorld work for every player online new Aleatoriedade = random(2000); new Aleatoriedade2 = random(9999); if(Aleatoriedade < 10000) Aleatoriedade += Aleatoriedade2; PlayerInfo[i][pConta] -= TaxValue; new checks = PlayerInfo[i][pSalario]*Aleatoriedade; new ebill = PlayerInfo[i][pLevel]*1000; new Febill = random(1500); new PGLT = random(300000); if(PGLT < 100000) PGLT += 100000; if(checks > 200000) checks = Aleatoriedade; if(checks < 30000) checks += 30000; if(checks < 0) checks = 100000; GiveDinheiro(i, checks); GiveDinheiro(i, -TaxValue); if(PlayerInfo[i][pConta] > 0) { PlayerInfo[i][pConta] -= ebill; SBizzInfo[4][sbTill] += ebill; PLO += ebill; DepositarOrgGrana(7,ebill); } else { ebill = 0; } Conta = PlayerInfo[i][pConta]; interest = (PlayerInfo[i][pConta]/1000)*(tmpintrate); PlayerPlaySound(i, 1185, 0.0, 0.0, 0.0); //SgD = PlayerInfo[i][pLevel]*1000; PlayerInfo[i][pConta] = Conta+interest; //PlayerInfo[i][pConta] = Conta+SgD; DepositarOrgGrana(7,TaxValue); SendClientMessage(i, 0x808080AA, "» ~~~~~~~~ Salario {33CCFF}GOOD LIFE {808080}~~~~~~~~"); format(stringpayday, sizeof(stringpayday), "» Pagamento:{00FF00} R$%d {FF0000}Imposto: {FF0000}-R$%d", checks, TaxValue); SendClientMessage(i, 0x808080AA, stringpayday); format(stringpayday, sizeof(stringpayday), "» Plano de saude: {FF0000}-R$300"); SendClientMessage(i, 0x808080AA, stringpayday); if(PlayerInfo[i][pPHousekey] != 500 || PlayerInfo[i][pPbiskey] != 255) { format(stringpayday, sizeof(stringpayday), "» Energia [%s]: {FF0000}-R$%d ", SBizzInfo[4][sbMessage], ebill); SendClientMessage(i, 0x808080AA, stringpayday); PMH += Febill; PDU += Febill; SacarOrgGrana(7,Febill); } if(PlayerInfo[i][pPFazkey] != 255) { format(stringpayday, sizeof(stringpayday), "» Empresa d'agua: {FF0000}-R$%d", ebill); SendClientMessage(i, 0x808080AA, stringpayday); PME += Febill; PDU += Febill; SacarOrgGrana(7,Febill); } if(Conta > 0) { format(stringpayday, sizeof(stringpayday), "» Conta Bancaria: {00FF00}R$%s", ConvertMoney(Conta)); SendClientMessage(i, 0x808080AA, stringpayday); } else { format(stringpayday, sizeof(stringpayday), "» Conta Bancaria: {FF0000}R$-%s", ConvertMoney(Conta)); SendClientMessage(i, 0x808080AA, stringpayday); } format(stringpayday, sizeof(stringpayday), "» Juros: {00FF00}0.%d {B4B5B7}por cento {808080}Aluguel: {FF0000}-R$%d",tmpintrate, rent); SendClientMessage(i, 0x808080AA, stringpayday); format(stringpayday, sizeof(stringpayday), "» Valor ganho com Juros {33FF00}R$%d", interest); SendClientMessage(i, 0x808080AA, stringpayday); SalarioPlayer(i); SendClientMessage(i, 0x808080AA, "» ~~~~~~~~ Salario {33CCFF}GOOD LIFE {808080}~~~~~~~~"); DepositarOrgGrana(7,interest); if(PlayerInfo[i][pConta] > 1) { format(stringpayday, sizeof(stringpayday), "» Novo Saldo Bancario: {00FF00}R$%s", ConvertMoney(PlayerInfo[i][pConta])); SendClientMessage(i, 0x808080AA, stringpayday); } else if(PlayerInfo[i][pConta] < 1) { format(stringpayday, sizeof(stringpayday), "» Novo Saldo Bancario: {FF0000}-R$%s", ConvertMoney(PlayerInfo[i][pConta])); SendClientMessage(i, 0x808080AA, stringpayday); } if(PlayerInfo[i][pLider] == 7) { if(CofreOrg[7][Dinheiro] >= 1000000) { PGLT = random(2000); } format(stringpayday, sizeof(stringpayday), " Lucros do Governo: {00FF00}R$%s", ConvertMoney(PGLT)); SendClientMessage(i, COLOR_LIGHTBLUE, stringpayday); DepositarOrgGrana(7,PGLT); } if(PlayerInfo[i][pEmprego] > 0) { if(PlayerInfo[i][pContractTime] < 5) { PlayerInfo[i][pContractTime] ++; } } SetTimerEx("PararMusica", 7900, 0, "i", i); GameTextForPlayer(i, "~g~Salario~n~~w~BGL", 5000, 1); rent = 0; PlayerInfo[i][pPayDay] = 0; PlayerInfo[i][pCaixinha] = 0; PlayerInfo[i][pCaixaCash] = 0; PlayerInfo[i][pSalario] = 0; PlayerInfo[i][pLimparb] = 0; PlayerInfo[i][pConnectTime] += 1; if(PlayerInfo[i][pTempoConce] != 0) { PlayerInfo[i][pTempoConce] -= 1; } if(PlayerInfo[i][pTempoConce] <= 0) { PlayerInfo[i][pTempoConce] = 0; } if(MoneyMessage[i]==1) { SendClientMessage(i, COLOR_LIGHTRED, "Vocк nгo pagou a sua dнvida e foi preso."); GameTextForPlayer(i, "~r~Preso!", 2000, 1); SetPlayerInterior(i, 6); SetPlayerPos(i, 264.6288,77.5742,1001.0391); PlayerInfo[i][pJailed] = 1; ResetPlayerWeapons(i); WantedPoints[i] = 0; storeexit[i] = 66; SetPlayerWantedLevelEx(i, 0); PlayerInfo[i][pJailTime] = 240; format(stringpayday, sizeof(stringpayday), "Vocк foi preso por %d segundos.", PlayerInfo[i][pJailTime]); SendClientMessage(i, COLOR_LIGHTBLUE, stringpayday); } Atividade[i][dia]++; SalvarAtividade(i); } else { SendClientMessage(i, COLOR_LIGHTRED, "* Vocк nгo jogou tempo suficiente para receber salбrio!"); } } } new lolbagui; lolbagui = PlayerInfo[i][pExp]; new nxtlevel = PlayerInfo[i][pLevel]+1; if(lolbagui >= nxtlevel*levelexp) { GameTextForPlayer(i, "~w~~h~Respeito Adquirido~n~~g~Digite /attnivel", 5000, 1); } } if(TriadMatou > HitmanMatou){ format(stringpayday, 128, "Sua Organizaзгo Ganhou o Kit Bфnus {FFFF00}[Contratos Triad %d x %d Contratos Hitmans]", TriadMatou, HitmanMatou); SendFamilyMessage(22, 0xFFFFFFFF, stringpayday); OrgVencedora = 22; } else if(HitmanMatou > TriadMatou){ format(stringpayday, 128, "Sua Organizaзгo Ganhou o Kit Bфnus {FFFF00}[Contratos Hitman %d x %d Contratos Triad]", HitmanMatou, TriadMatou); SendFamilyMessage(8, 0xFFFFFFFF, stringpayday); OrgVencedora = 8; } else{ //format(stringpayday, 128, "[BONUS]: Nenhuma agкncia de assassinos ganhou o kit bфnus neste payday."); OrgVencedora = 0; } TriadMatou = 0; HitmanMatou = 0; //SendClientMessageToAll(0xFFFF00FF, stringpayday); for(new i; i != MAX_TERRITORIOS; i++) { if(trLS[i][trCreated]) trLS[i][trLiberarGuerra] = 0; } for(new k=1; k != MAX_ORGS; k++) { if(RadioDesativado[k] == 1) RadioDesativado[k] = 0; } Checkproop(); return true; }
BPS::Checkproop() { new curdate = getdate(); new string[128]; for(new i = 1; i < sizeof(InfoOrg); i++) if(curdate > CofreOrg[i][DiaLider]) if(strcmp(InfoOrg[i][Lider], "Ninguйm", true) == 0) { CofreOrg[i][DiaLider] = getdate()+300; } else { format(string, sizeof string, "ATENЗГO: A organizaзгo [%s] agora estб sem lider.", GetNomeOrg(i)); SendClientMessageToAll(TEAM_BALLAS_COLOR, string); strmid(InfoOrg[i][Lider], "Ninguйm", 0, strlen("Ninguйm"), 255); format(string, sizeof(string), Pasta_MembrosOrg, i); DOF2_SetString(string,"Lider","Ninguйm"); CofreOrg[i][DiaLider] = getdate()+300; DOF2_SaveFile(); format(InfoOrg[i][UL_Lider],128, "00/00/0000 as 00:00:00"); SalvarLoginOrg(i); } for(new h = 0; h < sizeof(HouseInfo); h++) if(HouseInfo[h][hOwned] == 1) if(curdate >= HouseInfo[h][hDate]+10) { HouseInfo[h][hHel] = 0; HouseInfo[h][hArm] = 0; HouseInfo[h][hHealthx] = 0; HouseInfo[h][hHealthy] = 0; HouseInfo[h][hHealthz] = 0; HouseInfo[h][hArmorrx] = 0; HouseInfo[h][hArmorry] = 0; HouseInfo[h][hArmorrz] = 0; HouseInfo[h][hLock] = 1; HouseInfo[h][hOwned] = 0; HouseInfo[h][hVcol1] = -1; HouseInfo[h][hVcol2] = -1; strmid(HouseInfo[h][hOwner], "O Estado", 0, strlen("O Estado"), 255); format(string, sizeof(string), "Info: Casa ID: %d foi liberada por inatividade do Dono.",h); BPSLogs("casas", string); ABroadCast(COLOR_LIGHTRED,string, 1337); DestroyDynamicMapIcon(HouseInfo[h][hMapIcon]); HouseInfo[h][hMapIcon] = CreateDynamicMapIcon(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 31, 0xE6E6E6E6, -1, -1, -1, 180.0); format(string, sizeof(string), "Mobiliбria: Uma casa [%s] estб a venda por $%d",HouseInfo[h][hDiscription],HouseInfo[h][hValue]); SendClientMessageToAll(TEAM_BALLAS_COLOR, string); Atualizar3Dtexts(); SaveCasa(h); } //liberaзгo Empresas Automбtico for(new b = 0; b < sizeof(BizzInfo); b++) if(BizzInfo[b][bOwned] == 1) if(curdate >= BizzInfo[b][bDate]+10) { BizzInfo[b][bLocked] = 0; BizzInfo[b][bOwned] = 0; strmid(BizzInfo[b][bOwner], "The State", 0, strlen("The State"), 255); strmid(BizzInfo[b][bExtortion], "Ninguйm", 0, strlen("Ninguйm"), 255); format(string, sizeof(string), "Mobiliбria:vendeu a empresa ID: %d", b); BPSLogs("empresas", string); Atualizar3Dtexts(); SalvarEmpresa(b); } //liberaзгo SEmpresas Automбtico for(new b = 0; b < sizeof(SBizzInfo); b++) if(SBizzInfo[b][sbOwned] == 1) if(curdate >= SBizzInfo[b][sbDate]+10) { SBizzInfo[b][sbLocked] = 0; SBizzInfo[b][sbOwned] = 0; strmid(SBizzInfo[b][sbOwner], "The State", 0, strlen("The State"), 255); strmid(SBizzInfo[b][sbExtortion], "Ninguйm", 0, strlen("Ninguйm"), 255); format(string, sizeof(string), "Mobiliбria:vendeu a s-empresa ID: %d", b); BPSLogs("empresas", string); Atualizar3Dtexts(); SalvarSEmpresa(b); } //liberaзгo Fazendas Automбtico for(new b = 0; b < sizeof(FBizzInfo); b++) if(FBizzInfo[b][fbOwned] == 1) if(curdate >= FBizzInfo[b][fbDate]+10) { FBizzInfo[b][fbLocked] = 0; FBizzInfo[b][fbOwned] = 0; strmid(FBizzInfo[b][fbOwner], "The State", 0, strlen("The State"), 255); strmid(FBizzInfo[b][fbExtortion], "Ninguйm", 0, strlen("Ninguйm"), 255); format(string, sizeof(string), "Mobiliбria:vendeu a fazenda ID: %d", b); BPSLogs("empresas", string); Atualizar3Dtexts(); SalvarFEmpresa(b); } for(new idx; idx < sizeof(CarInfo); idx++) if(CarInfo[idx][cOwned] && curdate > CarInfo[idx][cDate]) { CarInfo[idx][cLocationx] = CarInfo[idx][cOLocationx]; CarInfo[idx][cLocationy] = CarInfo[idx][cOLocationy]; CarInfo[idx][cLocationz] = CarInfo[idx][cOLocationz]; CarInfo[idx][cAngle] = CarInfo[idx][cOAngle]; CarInfo[idx][cModel] = 559; CarInfo[idx][cColorOne] = 1; CarInfo[idx][cColorTwo] = 1; strmid(CarInfo[idx][cOwner], "Ninguйm", 0 , strlen("Ninguйm"), 255); strmid(CarInfo[idx][cDescription], "Nenhuma", 0, strlen("Nenhuma"), 255); CarInfo[idx][cOwned] = 0; DestroyVehicle(CarInfo[idx][ownedvehicle]); CarInfo[idx][ownedvehicle] = CreateVehicle(CarInfo[idx][cModel],CarInfo[idx][cLocationx],CarInfo[idx][cLocationy],CarInfo[idx][cLocationz]+1.0,CarInfo[idx][cAngle],CarInfo[idx][cColorOne],CarInfo[idx][cColorTwo], -1); format(string, sizeof(string), "CARROS: Um carro estб a venda por $%d", CarInfo[idx][cValue]); SendClientMessageToAll(TEAM_BALLAS_COLOR, string); //Delete3DTextLabel(CarInfo[idx][cText]); //CarInfo[idx][cText] = Create3DTextLabel("{50AAFE}Dono: Ninguйm\n{FFFF00}Descriзгo\n{FFFFFF}»Sem Dono«", 0xffffaa, 0.0, 0.0, 0.0, 15.0, 0); //Attach3DTextLabelToVehicle(CarInfo[idx][cText], CarInfo[idx][ownedvehicle], 0.0, 0.0, 0.0); SalvarCarro(idx); } return 1; }
Aparece alguma mensagem quando a fazenda й vendida ? caso sim,qual й a mensagem ?
|
Eu estava me referindo a mensagem quando a fazenda й liberada automaticamente.
|
O erro estб no comando,faзa pequenos debugs dentro do comando,e dentro das funзхes para verificar onde estб a falha.
|
printf("id de jogador: %d posicao X obtida quando digitou: %f", playerid, PosX); // escreva o que quiser, o importante й que vocк ententa o que o cуdigo estб mostrando.
printf("%s", string);
CMD:comprarfazenda(playerid, params[]) { new Float:oldposx, Float:oldposy, Float:oldposz; GetPlayerName(playerid, playername, sizeof(playername)); GetPlayerPos(playerid, oldposx, oldposy, oldposz); if(PlayerInfo[playerid][pVIP] < 2) { SendClientMessage(playerid, COLOR_GREY, "Apenas players S-VIPs podem comprar uma fazenda"); return true; } if(PlayerInfo[playerid][pPFazkey] != 255) { SendClientMessage(playerid, COLOR_GREY, " Vocк ja tem uma fazenda, Digite /venderfazenda ou para comprar outra."); return true; } new string[128]; for(new b = 0; b < sizeof(FBizzInfo); b++) { if(PlayerToPoint(2.0, playerid, FBizzInfo[b][fbEntranceX], FBizzInfo[b][fbEntranceY], FBizzInfo[b][fbEntranceZ]) && FBizzInfo[b][fbOwned] == 0) { if(PlayerInfo[playerid][pLevel] < FBizzInfo[b][fbLevelNeeded]) { format(string, sizeof(string), "Vocк precisa ser nнvel %d para comprar essa fazenda",FBizzInfo[b][fbLevelNeeded]); SendClientMessage(playerid, COLOR_GRAD5, string); return true; } if(GetPlayerMoney(playerid) > FBizzInfo[b][fbBuyPrice]) { PlayerInfo[playerid][pPFazkey] = b; FBizzInfo[b][fbOwned] = 1; FBizzInfo[b][fbLocked] = 0; FBizzInfo[b][fbTill] = 0; GetPlayerName(playerid, sendername, sizeof(sendername)); strmid(FBizzInfo[b][fbOwner], sendername, 0, strlen(sendername), 255); GiveDinheiro(playerid,-FBizzInfo[b][fbBuyPrice]); PlayerPlayMusic(playerid); SendClientMessage(playerid, COLOR_WHITE, "Parabens, Vocк comprou uma Fazenda."); SendClientMessage(playerid, COLOR_WHITE, "Digite /ajudaemp para ver os comandos de sua Fazenda."); Atualizar3Dtexts(); SalvarFEmpresa(b); DateProp(playerid); format(string, sizeof(string), "%s comprou a Fazenda ID: %d", PlayerName(playerid), b); BPSLogs("fempresas", string); return true; } else { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem grana suficiente"); return true; } } } return true; }
Atualizar3Dtexts(); SalvarFEmpresa(b);
CMD:comprarfazenda(playerid, params[])
{
new Float:oldposx, Float:oldposy, Float:oldposz;
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
if(PlayerInfo[playerid][pVIP] < 2)
{
SendClientMessage(playerid, COLOR_GREY, "Apenas players S-VIPs podem comprar uma fazenda");
return true;
}
if(PlayerInfo[playerid][pPFazkey] != 255)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк ja tem uma fazenda, Digite /venderfazenda ou para comprar outra.");
return true;
}
new string[128];
for(new b = 0; b < sizeof(FBizzInfo); b++)
{
if(PlayerToPoint(2.0, playerid, FBizzInfo[b][fbEntranceX], FBizzInfo[b][fbEntranceY], FBizzInfo[b][fbEntranceZ]) && FBizzInfo[b][fbOwned] == 0)
{
if(PlayerInfo[playerid][pLevel] < FBizzInfo[b][fbLevelNeeded])
{
format(string, sizeof(string), "Vocк precisa ser nнvel %d para comprar essa fazenda",FBizzInfo[b][fbLevelNeeded]);
SendClientMessage(playerid, COLOR_GRAD5, string);
return true;
}
if(GetPlayerMoney(playerid) > FBizzInfo[b][fbBuyPrice])
{
PlayerInfo[playerid][pPFazkey] = b;
FBizzInfo[b][fbOwned] = 1;
FBizzInfo[b][fbLocked] = 0;
FBizzInfo[b][fbTill] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(FBizzInfo[b][fbOwner], sendername, 0, strlen(sendername), 255);
GiveDinheiro(playerid,-FBizzInfo[b][fbBuyPrice]);
PlayerPlayMusic(playerid);
SendClientMessage(playerid, COLOR_WHITE, "Parabens, Vocк comprou uma Fazenda.");
SendClientMessage(playerid, COLOR_WHITE, "Digite /ajudaemp para ver os comandos de sua Fazenda.");
//Atualizar3Dtexts();
//SalvarFEmpresa(b);
DateProp(playerid);
format(string, sizeof(string), "%s comprou a Fazenda ID: %d", PlayerName(playerid), b);
BPSLogs("fempresas", string);
return true;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem grana suficiente");
return true;
}
}
}
return true;
}
Eu comentei as 2 funзхes :
pawn Code:
PHP Code:
|
mas vocк nгo colocou ai a "printf("%s", string);" nгo precisa ? |
BPS::Atualizar3Dtexts() { new FormatPerigoso[600]; for(new h = 0; h < sizeof(BizzInfo); h++) { if(BizzInfo[h][bOwned] == 0) { format(FormatPerigoso, sizeof(FormatPerigoso), "{FFFFFF}Esta empresa esta a venda\n%s\n\ {33CCFF}Preзo da Empresa: {33AA33}R$%s\n\ {33CCFF}Nнvel: {FFFFFF}%d\n\ {33CCFF}Fundos: {33AA33}R$%s\n\ {FFFF00}Produtos: {9ACD32}%d/{FFFFFF}%d\n\ {FFFF00}Preзo por produto: {33AA33}R$%s\n\ {FFFFFF}Para comprar digite /comprarempresa", BizzInfo[h][bMessage], ConvertMoney(BizzInfo[h][bBuyPrice]), BizzInfo[h][bLevelNeeded], ConvertMoney(BizzInfo[h][bTill]), BizzInfo[h][bProducts],BizzInfo[h][bMaxProducts], ConvertMoney(BizzInfo[h][bPriceProd])); Update3DTextLabelText(BizzLabel[h], COLOR_AZULBB, FormatPerigoso); } if(BizzInfo[h][bOwned] == 1) { format(FormatPerigoso, sizeof(FormatPerigoso), "%s\n\ {33CCFF}Dono da Empresa: {FFFFFF}%s\n\ {33CCFF}Extorsгo: {FFFFFF}%s\n\ {33CCFF}Entrada: {33AA33}R$%d\n\ {33CCFF}Nнvel: {FFFFFF}%d\n\ {FFFFFF}Aperte a letra F para entrar\n\ {33CCFF}Fundos: {33AA33}R$%s\n\ {FFFF00}Produtos: {9ACD32}%d/{FFFFFF}%d\n\ {FFFF00}Preзo por produto: {33AA33}R$%s", BizzInfo[h][bMessage], BizzInfo[h][bOwner], BizzInfo[h][bExtortion], BizzInfo[h][bEntranceCost], BizzInfo[h][bLevelNeeded], ConvertMoney(BizzInfo[h][bTill]), BizzInfo[h][bProducts],BizzInfo[h][bMaxProducts], ConvertMoney(BizzInfo[h][bPriceProd])); Update3DTextLabelText(BizzLabel[h], COLOR_AZULBB, FormatPerigoso); } } for(new h = 0; h < sizeof(SBizzInfo); h++) { if(SBizzInfo[h][sbOwned] == 0) { format(FormatPerigoso, sizeof(FormatPerigoso), "{FFFFFF}Esta empresa esta a venda\n\ %s\n\ {33CCFF}Preзo da mini empresa: {33AA33}R$%s\n\ {33CCFF}Nнvel: {FFFFFF}%d\n\ {33CCFF}Fundos: {33AA33}R$%s\n\ {FFFF00}Produtos: {9ACD32}%d/{FFFFFF}%d\n\ {FFFF00}Preзo por produto: {33AA33}R$%s\n\ {FFFFFF}Para comprar digite /comprarempresa", SBizzInfo[h][sbMessage], ConvertMoney(SBizzInfo[h][sbBuyPrice]), SBizzInfo[h][sbLevelNeeded], ConvertMoney(SBizzInfo[h][sbTill]), SBizzInfo[h][sbProducts],SBizzInfo[h][sbMaxProducts], ConvertMoney(SBizzInfo[h][sbPriceProd])); Update3DTextLabelText(SBizzLabel[h], COLOR_AZULBB, FormatPerigoso); } if(SBizzInfo[h][sbOwned] == 1) { format(FormatPerigoso, sizeof(FormatPerigoso), "%s\n\ {33CCFF}Dono da empresa: {FFFFFF}%s\n\ {33CCFF}Extorsгo: {FFFFFF}%s\n\ {33CCFF}Entrada: {33AA33}R$%d\n\ {33CCFF}Nнvel: {FFFFFF}%d\n\ {33CCFF}Fundos: {33AA33}%s\n\ {FFFF00}Produtos: {9ACD32}%d/{FFFFFF}%d\n\ {FFFF00}Preзo por produto: {33AA33}R$%s", SBizzInfo[h][sbMessage], SBizzInfo[h][sbOwner], SBizzInfo[h][sbExtortion], SBizzInfo[h][sbEntranceCost], SBizzInfo[h][sbLevelNeeded], ConvertMoney(SBizzInfo[h][sbTill]), SBizzInfo[h][sbProducts],SBizzInfo[h][sbMaxProducts], ConvertMoney(SBizzInfo[h][sbPriceProd])); Update3DTextLabelText(SBizzLabel[h], COLOR_AZULBB, FormatPerigoso); } } for(new h = 0; h < sizeof(FBizzInfo); h++) { if(FBizzInfo[h][fbOwned] == 0) { format(FormatPerigoso, sizeof(FormatPerigoso), "%s\n\ {FFFFFF}Esta Fazenda esta a venda\n\ {33CCFF}Valor: {33AA33}R$%s\n\ {33CCFF}Nivel: {FFFFFF}%d\n\ {FFFF00}Produtos: {9ACD32}%d/{FFFFFF}%d\n\ {FFFF00}Preзo por produto: {33AA33}R$%s\n\ {FFFFFF}Para comprar digite /comprarfazenda", FBizzInfo[h][fbMessage], ConvertMoney(FBizzInfo[h][fbBuyPrice]), FBizzInfo[h][fbLevelNeeded], FBizzInfo[h][fbProducts],FBizzInfo[h][fbMaxProducts], ConvertMoney(FBizzInfo[h][fbPriceProd])); Update3DTextLabelText(FBizzLabel[h], COLOR_AZULBB, FormatPerigoso); } if(FBizzInfo[h][fbOwned] == 1) { format(FormatPerigoso, sizeof(FormatPerigoso), "%s\n\ {33CCFF}Dono da Fazenda: {FFFFFF}%s\n\ {33CCFF}Extorcao: {FFFFFF}%s\n\ {FFFF00}Produtos: {9ACD32}%d/{FFFFFF}%d\n\ {FFFF00}Preзo por produto: {33AA33}R$%s\n\ {33CCFF}Fundos: {33AA33}R$%s", FBizzInfo[h][fbMessage], FBizzInfo[h][fbOwner], FBizzInfo[h][fbExtortion], FBizzInfo[h][fbProducts],FBizzInfo[h][fbMaxProducts], ConvertMoney(FBizzInfo[h][fbPriceProd]), ConvertMoney(FBizzInfo[h][fbTill])); Update3DTextLabelText(FBizzLabel[h], COLOR_AZULBB, FormatPerigoso); } } for(new h = 0; h < sizeof(HouseInfo); h++) { if(HouseInfo[h][hOwned] == 0) { format(FormatPerigoso, sizeof(FormatPerigoso), "[CASA ID: %03d]\n\ Esta casa esta a venda\n\ Descricao: %s\n\ Preзo: R$%d\n\ Nнvel: %d\n\ Carro: %s\n\ Use /comprarcasa", h, HouseInfo[h][hDiscription], HouseInfo[h][hValue], HouseInfo[h][hLevel], veehName[HouseInfo[h][hVec]-400]); Delete3DTextLabel(HouseLabel[h]); HouseLabel[h] = Create3DTextLabel(FormatPerigoso,0x00CC00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,13.0, 0); DestroyDynamicPickup(HousePickup[h]); HousePickup[h] = CreateDynamicPickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],-1,-1,-1,50.0); } if(HouseInfo[h][hOwned] == 1) { if(HouseInfo[h][hRentabil] == 0) { format(FormatPerigoso, sizeof(FormatPerigoso), "[CASA ID: %03d]\n\ O dono desta casa й %s\n\ Nнvel: %d\n\ Veнculo: %s\n\ Ъltimo login: [%s]\n\ Aperte a letra F para entrar", h, HouseInfo[h][hOwner], HouseInfo[h][hLevel], veehName[HouseInfo[h][hVec]-400], HouseInfo[h][hVerData]); Delete3DTextLabel(HouseLabel[h]); HouseLabel[h] = Create3DTextLabel(FormatPerigoso,0xFF6347FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,13.0, 0); DestroyDynamicPickup(HousePickup[h]); HousePickup[h] = CreateDynamicPickup(19522, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],-1,-1,-1,50.0); } else { format(FormatPerigoso, sizeof(FormatPerigoso), "[CASA ID: %03d]\n\ O dono desta casa й %s\n\ Aluguel: R$%d\n\ Nнvel: %d\n\ Veнculo: %s\n\ Ъltimo Login: [%s]\n\ USE /alugarquarto para aluga-la\n\ Aperte a letra F para entrar", h, HouseInfo[h][hOwner], HouseInfo[h][hRent], HouseInfo[h][hLevel], veehName[HouseInfo[h][hVec]-400], HouseInfo[h][hVerData]); Delete3DTextLabel(HouseLabel[h]); HouseLabel[h] = Create3DTextLabel(FormatPerigoso,0xFF6347FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,13.0, 0); DestroyDynamicPickup(HousePickup[h]); HousePickup[h] = CreateDynamicPickup(19522, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],-1,-1,-1,50.0); } } } return 0; }
BPS::Atualizar3Dtexts()
{
print("Funзгo Atualizar3Dtexts, chamada");
new FormatPerigoso[600];
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
format(FormatPerigoso, sizeof(FormatPerigoso),
"{FFFFFF}Esta empresa esta a venda\n%s\n\
{33CCFF}Preзo da Empresa: {33AA33}R$%s\n\
{33CCFF}Nнvel: {FFFFFF}%d\n\
{33CCFF}Fundos: {33AA33}R$%s\n\
{FFFF00}Produtos: {9ACD32}%d/{FFFFFF}%d\n\
{FFFF00}Preзo por produto: {33AA33}R$%s\n\
{FFFFFF}Para comprar digite /comprarempresa",
BizzInfo[h][bMessage],
ConvertMoney(BizzInfo[h][bBuyPrice]),
BizzInfo[h][bLevelNeeded],
ConvertMoney(BizzInfo[h][bTill]),
BizzInfo[h][bProducts],BizzInfo[h][bMaxProducts],
ConvertMoney(BizzInfo[h][bPriceProd]));
Update3DTextLabelText(BizzLabel[h], COLOR_AZULBB, FormatPerigoso);
}
if(BizzInfo[h][bOwned] == 1)
{
format(FormatPerigoso, sizeof(FormatPerigoso),
"%s\n\
{33CCFF}Dono da Empresa: {FFFFFF}%s\n\
{33CCFF}Extorsгo: {FFFFFF}%s\n\
{33CCFF}Entrada: {33AA33}R$%d\n\
{33CCFF}Nнvel: {FFFFFF}%d\n\
{FFFFFF}Aperte a letra F para entrar\n\
{33CCFF}Fundos: {33AA33}R$%s\n\
{FFFF00}Produtos: {9ACD32}%d/{FFFFFF}%d\n\
{FFFF00}Preзo por produto: {33AA33}R$%s",
BizzInfo[h][bMessage],
BizzInfo[h][bOwner],
BizzInfo[h][bExtortion],
BizzInfo[h][bEntranceCost],
BizzInfo[h][bLevelNeeded],
ConvertMoney(BizzInfo[h][bTill]),
BizzInfo[h][bProducts],BizzInfo[h][bMaxProducts],
ConvertMoney(BizzInfo[h][bPriceProd]));
Update3DTextLabelText(BizzLabel[h], COLOR_AZULBB, FormatPerigoso);
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
format(FormatPerigoso, sizeof(FormatPerigoso),
"{FFFFFF}Esta empresa esta a venda\n\
%s\n\
{33CCFF}Preзo da mini empresa: {33AA33}R$%s\n\
{33CCFF}Nнvel: {FFFFFF}%d\n\
{33CCFF}Fundos: {33AA33}R$%s\n\
{FFFF00}Produtos: {9ACD32}%d/{FFFFFF}%d\n\
{FFFF00}Preзo por produto: {33AA33}R$%s\n\
{FFFFFF}Para comprar digite /comprarempresa",
SBizzInfo[h][sbMessage],
ConvertMoney(SBizzInfo[h][sbBuyPrice]),
SBizzInfo[h][sbLevelNeeded],
ConvertMoney(SBizzInfo[h][sbTill]),
SBizzInfo[h][sbProducts],SBizzInfo[h][sbMaxProducts],
ConvertMoney(SBizzInfo[h][sbPriceProd]));
Update3DTextLabelText(SBizzLabel[h], COLOR_AZULBB, FormatPerigoso);
}
if(SBizzInfo[h][sbOwned] == 1)
{
format(FormatPerigoso, sizeof(FormatPerigoso),
"%s\n\
{33CCFF}Dono da empresa: {FFFFFF}%s\n\
{33CCFF}Extorsгo: {FFFFFF}%s\n\
{33CCFF}Entrada: {33AA33}R$%d\n\
{33CCFF}Nнvel: {FFFFFF}%d\n\
{33CCFF}Fundos: {33AA33}%s\n\
{FFFF00}Produtos: {9ACD32}%d/{FFFFFF}%d\n\
{FFFF00}Preзo por produto: {33AA33}R$%s",
SBizzInfo[h][sbMessage],
SBizzInfo[h][sbOwner],
SBizzInfo[h][sbExtortion],
SBizzInfo[h][sbEntranceCost],
SBizzInfo[h][sbLevelNeeded],
ConvertMoney(SBizzInfo[h][sbTill]),
SBizzInfo[h][sbProducts],SBizzInfo[h][sbMaxProducts],
ConvertMoney(SBizzInfo[h][sbPriceProd]));
Update3DTextLabelText(SBizzLabel[h], COLOR_AZULBB, FormatPerigoso);
}
}
for(new h = 0; h < sizeof(FBizzInfo); h++)
{
if(FBizzInfo[h][fbOwned] == 0)
{
print("Entrou na primeira condiзгo");
format(FormatPerigoso, sizeof(FormatPerigoso),
"%s\n\
{FFFFFF}Esta Fazenda esta a venda\n\
{33CCFF}Valor: {33AA33}R$%s\n\
{33CCFF}Nivel: {FFFFFF}%d\n\
{FFFF00}Produtos: {9ACD32}%d/{FFFFFF}%d\n\
{FFFF00}Preзo por produto: {33AA33}R$%s\n\
{FFFFFF}Para comprar digite /comprarfazenda",
FBizzInfo[h][fbMessage],
ConvertMoney(FBizzInfo[h][fbBuyPrice]),
FBizzInfo[h][fbLevelNeeded],
FBizzInfo[h][fbProducts],FBizzInfo[h][fbMaxProducts],
ConvertMoney(FBizzInfo[h][fbPriceProd]));
Update3DTextLabelText(FBizzLabel[h], COLOR_AZULBB, FormatPerigoso);
}
if(FBizzInfo[h][fbOwned] == 1)
{
print("Entrou na segunda condiзгo");
format(FormatPerigoso, sizeof(FormatPerigoso),
"%s\n\
{33CCFF}Dono da Fazenda: {FFFFFF}%s\n\
{33CCFF}Extorcao: {FFFFFF}%s\n\
{FFFF00}Produtos: {9ACD32}%d/{FFFFFF}%d\n\
{FFFF00}Preзo por produto: {33AA33}R$%s\n\
{33CCFF}Fundos: {33AA33}R$%s",
FBizzInfo[h][fbMessage],
FBizzInfo[h][fbOwner],
FBizzInfo[h][fbExtortion],
FBizzInfo[h][fbProducts],FBizzInfo[h][fbMaxProducts],
ConvertMoney(FBizzInfo[h][fbPriceProd]),
ConvertMoney(FBizzInfo[h][fbTill]));
Update3DTextLabelText(FBizzLabel[h], COLOR_AZULBB, FormatPerigoso);
}
}
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
format(FormatPerigoso, sizeof(FormatPerigoso),
"[CASA ID: %03d]\n\
Esta casa esta a venda\n\
Descricao: %s\n\
Preзo: R$%d\n\
Nнvel: %d\n\
Carro: %s\n\
Use /comprarcasa",
h,
HouseInfo[h][hDiscription],
HouseInfo[h][hValue],
HouseInfo[h][hLevel],
veehName[HouseInfo[h][hVec]-400]);
Delete3DTextLabel(HouseLabel[h]);
HouseLabel[h] = Create3DTextLabel(FormatPerigoso,0x00CC00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,13.0, 0);
DestroyDynamicPickup(HousePickup[h]);
HousePickup[h] = CreateDynamicPickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],-1,-1,-1,50.0);
}
if(HouseInfo[h][hOwned] == 1)
{
if(HouseInfo[h][hRentabil] == 0)
{
format(FormatPerigoso, sizeof(FormatPerigoso),
"[CASA ID: %03d]\n\
O dono desta casa й %s\n\
Nнvel: %d\n\
Veнculo: %s\n\
Ъltimo login: [%s]\n\
Aperte a letra F para entrar",
h,
HouseInfo[h][hOwner],
HouseInfo[h][hLevel],
veehName[HouseInfo[h][hVec]-400],
HouseInfo[h][hVerData]);
Delete3DTextLabel(HouseLabel[h]);
HouseLabel[h] = Create3DTextLabel(FormatPerigoso,0xFF6347FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,13.0, 0);
DestroyDynamicPickup(HousePickup[h]);
HousePickup[h] = CreateDynamicPickup(19522, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],-1,-1,-1,50.0);
}
else
{
format(FormatPerigoso, sizeof(FormatPerigoso),
"[CASA ID: %03d]\n\
O dono desta casa й %s\n\
Aluguel: R$%d\n\
Nнvel: %d\n\
Veнculo: %s\n\
Ъltimo Login: [%s]\n\
USE /alugarquarto para aluga-la\n\
Aperte a letra F para entrar",
h,
HouseInfo[h][hOwner],
HouseInfo[h][hRent],
HouseInfo[h][hLevel],
veehName[HouseInfo[h][hVec]-400],
HouseInfo[h][hVerData]);
Delete3DTextLabel(HouseLabel[h]);
HouseLabel[h] = Create3DTextLabel(FormatPerigoso,0xFF6347FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,13.0, 0);
DestroyDynamicPickup(HousePickup[h]);
HousePickup[h] = CreateDynamicPickup(19522, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],-1,-1,-1,50.0);
}
}
}
return 0;
}