27.08.2013, 17:07
Eu tava tentando colocar meu payday relista e tal consegui fazer salario pros policias, funcionando e tal, mas esse gm veio com um pd mt escroto, eu dou /payday eu gnaho um dinheiro absurdo, mesmo sem org
olha qnt eu ganhei num payday:
1_318_926_965
isso sу de salario, e eu nem coloquei salario pra ninguem sу pra pm, n botei pra gang pra emprego, nada, ta mt ruim alguem me ajuda a arrumar n entendo mt =/
olha qnt eu ganhei num payday:
1_318_926_965
isso sу de salario, e eu nem coloquei salario pra ninguem sу pra pm, n botei pra gang pra emprego, nada, ta mt ruim alguem me ajuda a arrumar n entendo mt =/
Quote:
public PayDay() { new string[128]; new Conta,interest; new rent = 0; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && !IsPlayerNPC(i)) { if(PlayerInfo[i][pLevel] > 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; ResetPlayerWeaponsEx(i); WantedPoints[i] = 0; SetPlayerWantedLevel(i, 0); PlayerInfo[i][pJailTime] = 600; format(gstring, sizeof(gstring), "Vocк foi preso por %d segundos.", PlayerInfo[i][pJailTime]); SendClientMessage(i, COLOR_LIGHTBLUE, gstring); } new playername2[MAX_PLAYER_NAME]; GetPlayerName(i, playername2, sizeof(playername2)); Conta = PlayerInfo[i][pConta]; new key = PlayerInfo[i][pPHousekey]; if(key != 255) { rent = HouseInfo[key][hRent]; if(strcmp(playername2, HouseInfo[key][hOwner], true) == 0) { rent = 0; } else if(rent > GetPlayerMoneyEx(i)) { PlayerInfo[i][pPHousekey] = 255; 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 = 3; } else if(PlayerInfo[i][pVIP] == 2) { tmpintrate = 4; } else { tmpintrate = 1; } if(PlayerInfo[i][pPayDay] >= 3) { Tax += TaxValue;//Shorld work for every player On-Line PlayerInfo[i][pConta] -= TaxValue; new checks = PlayerInfo[i][pSalario]; new ebill = (PlayerInfo[i][pConta]/15000)*(PlayerInfo[i][pLevel]); new wbill = (PlayerInfo[i][pConta]/25000)*(PlayerInfo[i][pLevel]); ConsumingMoney[i] = 1; GivePlayerMoneyEx(i, checks); if(PlayerInfo[i][pConta] > 0) { PlayerInfo[i][pConta] -= ebill; SBizzInfo[4][sbTill] += ebill; PlayerInfo[i][pConta] -= wbill; SBizzInfo[4][sbTill] += wbill; } else { ebill = 0; } interest = (PlayerInfo[i][pConta]/1000)*(tmpintrate); PlayerInfo[i][pExp]++; PlayerPlayMusic(i); PlayerInfo[i][pConta] = Conta+interest; SendClientMessage(i, COLOR_GRAD2, "{ADFF2F}( • • • • • • • • • • • • • • • • • •[ {69C7E4}Pagamento{ADFF2F} ]• • • • • • • • • • • • • • • • • • )"); format(gstring, sizeof(gstring), " Salбrio: R$%d Imposto: -R$%d", checks, TaxValue); SendClientMessage(i, COLOR_GRAD1, gstring); SendClientMessage(i, COLOR_GRAD1, " Mйdico: R$300"); if(PlayerInfo[i][pPHousekey] != 255 || PlayerInfo[i][pPbiskey] != 255) { format(gstring, sizeof(gstring), " Energia: -R$%d", ebill); SendClientMessage(i, COLOR_GRAD1, gstring); format(gstring, sizeof(gstring), " Бgua: -R$%d", wbill); SendClientMessage(i, COLOR_GRAD1, gstring); } format(gstring, sizeof(gstring), " Banco: R$%d", Conta); SendClientMessage(i, COLOR_GRAD1, gstring); format(gstring, sizeof(gstring), " Juros: 0.%d por cento",tmpintrate); SendClientMessage(i, COLOR_GRAD2, gstring); SendClientMessage(i, COLOR_GRAD2, "{ADFF2F}( • • • • • • • • • • • • • • • • • •[ {69C7E4}BFS{ADFF2F} ]• • • • • • • • • • • • • • • • • • )"); format(gstring, sizeof(gstring), " Novo extrato: R$%d", PlayerInfo[i][pConta]); SendClientMessage(i, COLOR_GRAD5, gstring); format(gstring, sizeof(gstring), " Aluguel: -R$%d", rent); SendClientMessage(i, COLOR_GRAD5, gstring); format(gstring, sizeof(gstring), "~w~Salario"); GameTextForPlayer(i, gstring, 5000, 1); GivePlayerMoneyEx(i,- 300); OnPlayerSave(i); rent = 0; PlayerInfo[i][pPoint] += numplayers; format(string, sizeof(string), "{ff9600}Vocк ganhou {fff000}%d Cash {ff9600}por ter {fff000}%d {ff9600}Jogadores Online", numplayers,numplayers); SendClientMessage(i, COLOR_GRAD5, string); PlayerInfo[i][pPayDay] = 0; PassadoUmDia++; PlayerInfo[i][pSalario] = 0; PlayerInfo[i][pCaixinha] = 0; PlayerInfo[i][pConnectTime] += 1; pban[i] = 0; // salario por org if(PlayerInfo[i][pLider] == 1) { PlayerInfo[i][pExp] += 1; GivePlayerMoneyEx(i,1500); SendClientMessage(i,COLOR_LIGHTPINK,"Vocк recebeu 200R$ de salario da Policia Militar."); } else if(PlayerInfo[i][pMembro] == 1 && PlayerInfo[i][pCargo] == 1) { PlayerInfo[i][pExp] += 1; GivePlayerMoneyEx(i,400); SendClientMessage(i,COLOR_LIGHTPINK,"SOLDADO Vocк recebeu 400R$ de salario da Policia Militar."); } else if(PlayerInfo[i][pMembro] == 1 && PlayerInfo[i][pCargo] == 2) { PlayerInfo[i][pExp] += 1; GivePlayerMoneyEx(i,600); SendClientMessage(i,COLOR_LIGHTPINK,"SOLDADO Vocк recebeu 600R$ de salario da Policia Militar."); } else if(PlayerInfo[i][pMembro] == 1 && PlayerInfo[i][pCargo] == 3) { PlayerInfo[i][pExp] += 1; GivePlayerMoneyEx(i,800); SendClientMessage(i,COLOR_LIGHTPINK,"SOLDADO Vocк recebeu 800R$ de salario da Policia Militar."); } else if(PlayerInfo[i][pMembro] == 1 && PlayerInfo[i][pCargo] == 4) { PlayerInfo[i][pExp] += 1; GivePlayerMoneyEx(i,1000); SendClientMessage(i,COLOR_LIGHTPINK,"SOLDADO Vocк recebeu 1000R$ de salario da Policia Militar."); } else if(PlayerInfo[i][pMembro] == 1 && PlayerInfo[i][pCargo] == 5) { PlayerInfo[i][pExp] += 1; GivePlayerMoneyEx(i,1300); SendClientMessage(i,COLOR_LIGHTPINK,"SOLDADO Vocк recebeu 1300R$ de salario da Policia Militar."); } //===================== if(PlayerInfo[i][pVIP] == 1) { PlayerInfo[i][pExp] += 2; GivePlayerMoneyEx(i,20000); SendClientMessage(i,COLOR_LIGHTPINK,"Vocк recebeu 20k de bфnus por ser vip."); } else if(PlayerInfo[i][pVIP] == 2) { PlayerInfo[i][pExp] += 4; GivePlayerMoneyEx(i,40000); SendClientMessage(i,COLOR_LIGHTPINK,"Vocк recebeu 40k de bфnus por ser super vip."); } else if(PlayerInfo[i][pTimeVIP] >= 1) { PlayerInfo[i][pExp] += 1; GivePlayerMoneyEx(i,15000); SendClientMessage(i,COLOR_LIGHTPINK,"Vocк recebeu 15k de bфnus por ser vip Timer."); } else if(PlayerInfo[i][pSocio] >= 1) { PlayerInfo[i][pExp] += 6; GivePlayerMoneyEx(i,50000); SendClientMessage(i,COLOR_LIGHTPINK,"Vocк recebeu 50k de bфnus por ser socio."); } if(PlayerInfo[i][pEmprego] > 0) { if(PlayerInfo[i][pContractTime] < 25) { PlayerInfo[i][pContractTime] ++; } } } 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, "~g~Respeito no Maximo!~n~~r~Digite /comprarnivel!", 5000, 1); } } if(PassadoUmDia >= 1)//DiaPassado { } OOCNews(COLOR_WHITE, "(Loteria): Ja comecou a loteria."); new rand = random(80); if(rand < 77) { rand += 3; } Lotto(rand); Checkprop(); //return 1; } |