Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (dialogid == DIALOG_MACONHA) {
- if (response) {
- if (listitem == 0) {
- if (Player[playerid][pFaccao] == 1) {
- if (MaconhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de maconha! Use: /Mochila");
- MaconhaFavela[0] -= 10;
- DinheiroFavela[0] += 10;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (MaconhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de maconha! Use: /Mochila");
- MaconhaFavela[1] -= 10;
- DinheiroFavela[1] += 10;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (MaconhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de maconha! Use: /Mochila");
- MaconhaFavela[2] -= 10;
- DinheiroFavela[2] += 10;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (MaconhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de maconha! Use: /Mochila");
- MaconhaFavela[3] -= 10;
- DinheiroFavela[3] += 10;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (MaconhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de maconha! Use: /Mochila");
- MaconhaFavela[4] -= 10;
- DinheiroFavela[4] += 10;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (MaconhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de maconha! Use: /Mochila");
- MaconhaFavela[5] -= 10;
- DinheiroFavela[5] += 10;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (MaconhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de maconha! Use: /Mochila");
- MaconhaFavela[6] -= 10;
- DinheiroFavela[6] += 10;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (MaconhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de maconha! Use: /Mochila");
- MaconhaFavela[7] -= 10;
- DinheiroFavela[7] += 10;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (MaconhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de maconha! Use: /Mochila");
- MaconhaFavela[8] -= 10;
- DinheiroFavela[8] += 10;
- GuardarMaconha();
- GuardarDinheiro();
- }
- }
- if (listitem == 1) {
- if (Player[playerid][pFaccao] == 1) {
- if (MaconhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de maconha! Use: /Mochila");
- MaconhaFavela[0] -= 20;
- DinheiroFavela[0] += 20;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (MaconhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de maconha! Use: /Mochila");
- MaconhaFavela[1] -= 20;
- DinheiroFavela[1] += 20;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (MaconhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de maconha! Use: /Mochila");
- MaconhaFavela[2] -= 20;
- DinheiroFavela[2] += 20;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (MaconhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de maconha! Use: /Mochila");
- MaconhaFavela[3] -= 20;
- DinheiroFavela[3] += 20;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (MaconhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de maconha! Use: /Mochila");
- MaconhaFavela[4] -= 20;
- DinheiroFavela[4] += 20;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (MaconhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de maconha! Use: /Mochila");
- MaconhaFavela[5] -= 20;
- DinheiroFavela[5] += 20;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (MaconhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de maconha! Use: /Mochila");
- MaconhaFavela[6] -= 20;
- DinheiroFavela[6] += 20;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (MaconhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de maconha! Use: /Mochila");
- MaconhaFavela[7] -= 20;
- DinheiroFavela[7] += 20;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (MaconhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de maconha! Use: /Mochila");
- MaconhaFavela[8] -= 20;
- DinheiroFavela[8] += 20;
- GuardarMaconha();
- GuardarDinheiro();
- }
- }
- if (listitem == 2) {
- if (Player[playerid][pFaccao] == 1) {
- if (MaconhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de maconha! Use: /Mochila");
- MaconhaFavela[0] -= 30;
- DinheiroFavela[0] += 30;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (MaconhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de maconha! Use: /Mochila");
- MaconhaFavela[1] -= 30;
- DinheiroFavela[1] += 30;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (MaconhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de maconha! Use: /Mochila");
- MaconhaFavela[2] -= 30;
- DinheiroFavela[2] += 30;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (MaconhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de maconha! Use: /Mochila");
- MaconhaFavela[3] -= 30;
- DinheiroFavela[3] += 30;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (MaconhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de maconha! Use: /Mochila");
- MaconhaFavela[4] -= 30;
- DinheiroFavela[4] += 30;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (MaconhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de maconha! Use: /Mochila");
- MaconhaFavela[5] -= 30;
- DinheiroFavela[5] += 30;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (MaconhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de maconha! Use: /Mochila");
- MaconhaFavela[6] -= 30;
- DinheiroFavela[6] += 30;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (MaconhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de maconha! Use: /Mochila");
- MaconhaFavela[7] -= 30;
- DinheiroFavela[7] += 30;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (MaconhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de maconha! Use: /Mochila");
- MaconhaFavela[8] -= 30;
- DinheiroFavela[8] += 30;
- GuardarMaconha();
- GuardarDinheiro();
- }
- }
- if (listitem == 3) {
- if (Player[playerid][pFaccao] == 1) {
- if (MaconhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 40) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de maconha! Use: /Mochila");
- MaconhaFavela[0] -= 40;
- DinheiroFavela[0] += 40;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (MaconhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de maconha! Use: /Mochila");
- MaconhaFavela[1] -= 40;
- DinheiroFavela[1] += 40;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (MaconhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de maconha! Use: /Mochila");
- MaconhaFavela[2] -= 40;
- DinheiroFavela[2] += 40;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (MaconhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de maconha! Use: /Mochila");
- MaconhaFavela[3] -= 40;
- DinheiroFavela[3] += 40;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (MaconhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de maconha! Use: /Mochila");
- MaconhaFavela[4] -= 40;
- DinheiroFavela[4] += 40;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (MaconhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de maconha! Use: /Mochila");
- MaconhaFavela[5] -= 40;
- DinheiroFavela[5] += 40;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (MaconhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de maconha! Use: /Mochila");
- MaconhaFavela[6] -= 40;
- DinheiroFavela[6] += 40;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (MaconhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de maconha! Use: /Mochila");
- MaconhaFavela[7] -= 40;
- DinheiroFavela[7] += 40;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (MaconhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de maconha! Use: /Mochila");
- MaconhaFavela[8] -= 40;
- DinheiroFavela[8] += 40;
- GuardarMaconha();
- GuardarDinheiro();
- }
- }
- if (listitem == 4) {
- if (Player[playerid][pFaccao] == 1) {
- if (MaconhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de maconha! Use: /Mochila");
- MaconhaFavela[0] -= 50;
- DinheiroFavela[0] += 50;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (MaconhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de maconha! Use: /Mochila");
- MaconhaFavela[1] -= 50;
- DinheiroFavela[1] += 50;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (MaconhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de maconha! Use: /Mochila");
- MaconhaFavela[2] -= 50;
- DinheiroFavela[2] += 50;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (MaconhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de maconha! Use: /Mochila");
- MaconhaFavela[3] -= 50;
- DinheiroFavela[3] += 50;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (MaconhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de maconha! Use: /Mochila");
- MaconhaFavela[4] -= 50;
- DinheiroFavela[4] += 50;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (MaconhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de maconha! Use: /Mochila");
- MaconhaFavela[5] -= 50;
- DinheiroFavela[5] += 50;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (MaconhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de maconha! Use: /Mochila");
- MaconhaFavela[6] -= 50;
- DinheiroFavela[6] += 50;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (MaconhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de maconha! Use: /Mochila");
- MaconhaFavela[7] -= 50;
- DinheiroFavela[7] += 50;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (MaconhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de maconha! Use: /Mochila");
- MaconhaFavela[8] -= 50;
- DinheiroFavela[8] += 50;
- GuardarMaconha();
- GuardarDinheiro();
- }
- }
- if (listitem == 5) {
- if (Player[playerid][pFaccao] == 1) {
- if (MaconhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de maconha! Use: /Mochila");
- MaconhaFavela[0] -= 60;
- DinheiroFavela[0] += 60;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (MaconhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de maconha! Use: /Mochila");
- MaconhaFavela[1] -= 60;
- DinheiroFavela[1] += 60;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (MaconhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de maconha! Use: /Mochila");
- MaconhaFavela[2] -= 60;
- DinheiroFavela[2] += 60;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (MaconhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de maconha! Use: /Mochila");
- MaconhaFavela[3] -= 60;
- DinheiroFavela[3] += 60;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (MaconhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de maconha! Use: /Mochila");
- MaconhaFavela[4] -= 60;
- DinheiroFavela[4] += 60;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (MaconhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de maconha! Use: /Mochila");
- MaconhaFavela[5] -= 60;
- DinheiroFavela[5] += 60;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (MaconhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de maconha! Use: /Mochila");
- MaconhaFavela[6] -= 60;
- DinheiroFavela[6] += 60;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (MaconhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de maconha! Use: /Mochila");
- MaconhaFavela[7] -= 60;
- DinheiroFavela[7] += 60;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (MaconhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de maconha! Use: /Mochila");
- MaconhaFavela[8] -= 60;
- DinheiroFavela[8] += 60;
- GuardarMaconha();
- GuardarDinheiro();
- }
- }
- if (listitem == 6) {
- if (Player[playerid][pFaccao] == 1) {
- if (MaconhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de maconha! Use: /Mochila");
- MaconhaFavela[0] -= 70;
- DinheiroFavela[0] += 70;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (MaconhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de maconha! Use: /Mochila");
- MaconhaFavela[1] -= 70;
- DinheiroFavela[1] += 70;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (MaconhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de maconha! Use: /Mochila");
- MaconhaFavela[2] -= 70;
- DinheiroFavela[2] += 70;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (MaconhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de maconha! Use: /Mochila");
- MaconhaFavela[3] -= 70;
- DinheiroFavela[3] += 70;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (MaconhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de maconha! Use: /Mochila");
- MaconhaFavela[4] -= 70;
- DinheiroFavela[4] += 70;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (MaconhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de maconha! Use: /Mochila");
- MaconhaFavela[5] -= 70;
- DinheiroFavela[5] += 70;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (MaconhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de maconha! Use: /Mochila");
- MaconhaFavela[6] -= 70;
- DinheiroFavela[6] += 70;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (MaconhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de maconha! Use: /Mochila");
- MaconhaFavela[7] -= 70;
- DinheiroFavela[7] += 70;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (MaconhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de maconha! Use: /Mochila");
- MaconhaFavela[8] -= 70;
- DinheiroFavela[8] += 70;
- GuardarMaconha();
- GuardarDinheiro();
- }
- }
- if (listitem == 7) {
- if (Player[playerid][pFaccao] == 1) {
- if (MaconhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de maconha! Use: /Mochila");
- MaconhaFavela[0] -= 80;
- DinheiroFavela[0] += 80;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (MaconhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de maconha! Use: /Mochila");
- MaconhaFavela[1] -= 80;
- DinheiroFavela[1] += 80;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (MaconhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de maconha! Use: /Mochila");
- MaconhaFavela[2] -= 80;
- DinheiroFavela[2] += 80;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (MaconhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de maconha! Use: /Mochila");
- MaconhaFavela[3] -= 80;
- DinheiroFavela[3] += 80;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (MaconhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de maconha! Use: /Mochila");
- MaconhaFavela[4] -= 80;
- DinheiroFavela[4] += 80;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (MaconhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de maconha! Use: /Mochila");
- MaconhaFavela[5] -= 80;
- DinheiroFavela[5] += 80;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (MaconhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de maconha! Use: /Mochila");
- MaconhaFavela[6] -= 80;
- DinheiroFavela[6] += 80;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (MaconhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de maconha! Use: /Mochila");
- MaconhaFavela[7] -= 80;
- DinheiroFavela[7] += 80;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (MaconhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de maconha! Use: /Mochila");
- MaconhaFavela[8] -= 80;
- DinheiroFavela[8] += 80;
- GuardarMaconha();
- GuardarDinheiro();
- }
- }
- if (listitem == 8) {
- if (Player[playerid][pFaccao] == 1) {
- if (MaconhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de maconha! Use: /Mochila");
- MaconhaFavela[0] -= 90;
- DinheiroFavela[0] += 90;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (MaconhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de maconha! Use: /Mochila");
- MaconhaFavela[1] -= 90;
- DinheiroFavela[1] += 90;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (MaconhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de maconha! Use: /Mochila");
- MaconhaFavela[2] -= 90;
- DinheiroFavela[2] += 90;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (MaconhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de maconha! Use: /Mochila");
- MaconhaFavela[3] -= 90;
- DinheiroFavela[3] += 90;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (MaconhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de maconha! Use: /Mochila");
- MaconhaFavela[4] -= 90;
- DinheiroFavela[4] += 90;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (MaconhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de maconha! Use: /Mochila");
- MaconhaFavela[5] -= 90;
- DinheiroFavela[5] += 90;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (MaconhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de maconha! Use: /Mochila");
- MaconhaFavela[6] -= 90;
- DinheiroFavela[6] += 90;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (MaconhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de maconha! Use: /Mochila");
- MaconhaFavela[7] -= 90;
- DinheiroFavela[7] += 90;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (MaconhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de maconha! Use: /Mochila");
- MaconhaFavela[8] -= 90;
- DinheiroFavela[8] += 90;
- GuardarMaconha();
- GuardarDinheiro();
- }
- }
- if (listitem == 9) {
- if (Player[playerid][pFaccao] == 1) {
- if (MaconhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de maconha! Use: /Mochila");
- MaconhaFavela[0] -= 100;
- DinheiroFavela[0] += 100;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (MaconhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de maconha! Use: /Mochila");
- MaconhaFavela[1] -= 100;
- DinheiroFavela[1] += 100;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (MaconhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de maconha! Use: /Mochila");
- MaconhaFavela[2] -= 100;
- DinheiroFavela[2] += 100;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (MaconhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de maconha! Use: /Mochila");
- MaconhaFavela[3] -= 100;
- DinheiroFavela[3] += 100;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (MaconhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de maconha! Use: /Mochila");
- MaconhaFavela[4] -= 100;
- DinheiroFavela[4] += 100;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (MaconhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de maconha! Use: /Mochila");
- MaconhaFavela[5] -= 100;
- DinheiroFavela[5] += 100;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (MaconhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de maconha! Use: /Mochila");
- MaconhaFavela[6] -= 100;
- DinheiroFavela[6] += 100;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (MaconhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de maconha! Use: /Mochila");
- MaconhaFavela[7] -= 100;
- DinheiroFavela[7] += 100;
- GuardarMaconha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (MaconhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais maconha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pMaconha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de maconha! Use: /Mochila");
- MaconhaFavela[8] -= 100;
- DinheiroFavela[8] += 100;
- GuardarMaconha();
- GuardarDinheiro();
- }
- }
- }
- return 1;
- }
- if (dialogid == DIALOG_COCAINA) {
- if (response) {
- if (listitem == 0) {
- if (Player[playerid][pFaccao] == 1) {
- if (CocainaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Cocaina! Use: /Mochila");
- CocainaFavela[0] -= 10;
- DinheiroFavela[0] += 10;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (CocainaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Cocaina! Use: /Mochila");
- CocainaFavela[1] -= 10;
- DinheiroFavela[1] += 10;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (CocainaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Cocaina! Use: /Mochila");
- CocainaFavela[2] -= 10;
- DinheiroFavela[2] += 10;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (CocainaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Cocaina! Use: /Mochila");
- CocainaFavela[3] -= 10;
- DinheiroFavela[3] += 10;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (CocainaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Cocaina! Use: /Mochila");
- CocainaFavela[4] -= 10;
- DinheiroFavela[4] += 10;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (CocainaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Cocaina! Use: /Mochila");
- CocainaFavela[5] -= 10;
- DinheiroFavela[5] += 10;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (CocainaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Cocaina! Use: /Mochila");
- CocainaFavela[6] -= 10;
- DinheiroFavela[6] += 10;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (CocainaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Cocaina! Use: /Mochila");
- CocainaFavela[7] -= 10;
- DinheiroFavela[7] += 10;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (CocainaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Cocaina! Use: /Mochila");
- CocainaFavela[8] -= 10;
- DinheiroFavela[8] += 10;
- GuardarCocaina();
- GuardarDinheiro();
- }
- }
- if (listitem == 1) {
- if (Player[playerid][pFaccao] == 1) {
- if (CocainaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Cocaina! Use: /Mochila");
- CocainaFavela[0] -= 20;
- DinheiroFavela[0] += 20;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (CocainaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Cocaina! Use: /Mochila");
- CocainaFavela[1] -= 20;
- DinheiroFavela[1] += 20;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (CocainaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Cocaina! Use: /Mochila");
- CocainaFavela[2] -= 20;
- DinheiroFavela[2] += 20;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (CocainaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Cocaina! Use: /Mochila");
- CocainaFavela[3] -= 20;
- DinheiroFavela[3] += 20;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (CocainaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Cocaina! Use: /Mochila");
- CocainaFavela[4] -= 20;
- DinheiroFavela[4] += 20;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (CocainaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Cocaina! Use: /Mochila");
- CocainaFavela[5] -= 20;
- DinheiroFavela[5] += 20;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (CocainaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Cocaina! Use: /Mochila");
- CocainaFavela[6] -= 20;
- DinheiroFavela[6] += 20;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (CocainaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Cocaina! Use: /Mochila");
- CocainaFavela[7] -= 20;
- DinheiroFavela[7] += 20;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (CocainaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Cocaina! Use: /Mochila");
- CocainaFavela[8] -= 20;
- DinheiroFavela[8] += 20;
- GuardarCocaina();
- GuardarDinheiro();
- }
- }
- if (listitem == 2) {
- if (Player[playerid][pFaccao] == 1) {
- if (CocainaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Cocaina! Use: /Mochila");
- CocainaFavela[0] -= 30;
- DinheiroFavela[0] += 30;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (CocainaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Cocaina! Use: /Mochila");
- CocainaFavela[1] -= 30;
- DinheiroFavela[1] += 30;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (CocainaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Cocaina! Use: /Mochila");
- CocainaFavela[2] -= 30;
- DinheiroFavela[2] += 30;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (CocainaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Cocaina! Use: /Mochila");
- CocainaFavela[3] -= 30;
- DinheiroFavela[3] += 30;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (CocainaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Cocaina! Use: /Mochila");
- CocainaFavela[4] -= 30;
- DinheiroFavela[4] += 30;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (CocainaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Cocaina! Use: /Mochila");
- CocainaFavela[5] -= 30;
- DinheiroFavela[5] += 30;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (CocainaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Cocaina! Use: /Mochila");
- CocainaFavela[6] -= 30;
- DinheiroFavela[6] += 30;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (CocainaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Cocaina! Use: /Mochila");
- CocainaFavela[7] -= 30;
- DinheiroFavela[7] += 30;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (CocainaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Cocaina! Use: /Mochila");
- CocainaFavela[8] -= 30;
- DinheiroFavela[8] += 30;
- GuardarCocaina();
- GuardarDinheiro();
- }
- }
- if (listitem == 3) {
- if (Player[playerid][pFaccao] == 1) {
- if (CocainaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 40) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Cocaina! Use: /Mochila");
- CocainaFavela[0] -= 40;
- DinheiroFavela[0] += 40;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (CocainaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Cocaina! Use: /Mochila");
- CocainaFavela[1] -= 40;
- DinheiroFavela[1] += 40;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (CocainaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Cocaina! Use: /Mochila");
- CocainaFavela[2] -= 40;
- DinheiroFavela[2] += 40;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (CocainaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Cocaina! Use: /Mochila");
- CocainaFavela[3] -= 40;
- DinheiroFavela[3] += 40;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (CocainaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Cocaina! Use: /Mochila");
- CocainaFavela[4] -= 40;
- DinheiroFavela[4] += 40;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (CocainaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Cocaina! Use: /Mochila");
- CocainaFavela[5] -= 40;
- DinheiroFavela[5] += 40;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (CocainaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Cocaina! Use: /Mochila");
- CocainaFavela[6] -= 40;
- DinheiroFavela[6] += 40;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (CocainaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Cocaina! Use: /Mochila");
- CocainaFavela[7] -= 40;
- DinheiroFavela[7] += 40;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (CocainaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Cocaina! Use: /Mochila");
- CocainaFavela[8] -= 40;
- DinheiroFavela[8] += 40;
- GuardarCocaina();
- GuardarDinheiro();
- }
- }
- if (listitem == 4) {
- if (Player[playerid][pFaccao] == 1) {
- if (CocainaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Cocaina! Use: /Mochila");
- CocainaFavela[0] -= 50;
- DinheiroFavela[0] += 50;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (CocainaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Cocaina! Use: /Mochila");
- CocainaFavela[1] -= 50;
- DinheiroFavela[1] += 50;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (CocainaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Cocaina! Use: /Mochila");
- CocainaFavela[2] -= 50;
- DinheiroFavela[2] += 50;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (CocainaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Cocaina! Use: /Mochila");
- CocainaFavela[3] -= 50;
- DinheiroFavela[3] += 50;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (CocainaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Cocaina! Use: /Mochila");
- CocainaFavela[4] -= 50;
- DinheiroFavela[4] += 50;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (CocainaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Cocaina! Use: /Mochila");
- CocainaFavela[5] -= 50;
- DinheiroFavela[5] += 50;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (CocainaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Cocaina! Use: /Mochila");
- CocainaFavela[6] -= 50;
- DinheiroFavela[6] += 50;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (CocainaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Cocaina! Use: /Mochila");
- CocainaFavela[7] -= 50;
- DinheiroFavela[7] += 50;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (CocainaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Cocaina! Use: /Mochila");
- CocainaFavela[8] -= 50;
- DinheiroFavela[8] += 50;
- GuardarCocaina();
- GuardarDinheiro();
- }
- }
- if (listitem == 5) {
- if (Player[playerid][pFaccao] == 1) {
- if (CocainaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Cocaina! Use: /Mochila");
- CocainaFavela[0] -= 60;
- DinheiroFavela[0] += 60;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (CocainaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Cocaina! Use: /Mochila");
- CocainaFavela[1] -= 60;
- DinheiroFavela[1] += 60;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (CocainaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Cocaina! Use: /Mochila");
- CocainaFavela[2] -= 60;
- DinheiroFavela[2] += 60;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (CocainaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Cocaina! Use: /Mochila");
- CocainaFavela[3] -= 60;
- DinheiroFavela[3] += 60;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (CocainaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Cocaina! Use: /Mochila");
- CocainaFavela[4] -= 60;
- DinheiroFavela[4] += 60;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (CocainaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Cocaina! Use: /Mochila");
- CocainaFavela[5] -= 60;
- DinheiroFavela[5] += 60;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (CocainaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Cocaina! Use: /Mochila");
- CocainaFavela[6] -= 60;
- DinheiroFavela[6] += 60;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (CocainaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Cocaina! Use: /Mochila");
- CocainaFavela[7] -= 60;
- DinheiroFavela[7] += 60;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (CocainaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Cocaina! Use: /Mochila");
- CocainaFavela[8] -= 60;
- DinheiroFavela[8] += 60;
- GuardarCocaina();
- GuardarDinheiro();
- }
- }
- if (listitem == 6) {
- if (Player[playerid][pFaccao] == 1) {
- if (CocainaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Cocaina! Use: /Mochila");
- CocainaFavela[0] -= 70;
- DinheiroFavela[0] += 70;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (CocainaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Cocaina! Use: /Mochila");
- CocainaFavela[1] -= 70;
- DinheiroFavela[1] += 70;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (CocainaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Cocaina! Use: /Mochila");
- CocainaFavela[2] -= 70;
- DinheiroFavela[2] += 70;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (CocainaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Cocaina! Use: /Mochila");
- CocainaFavela[3] -= 70;
- DinheiroFavela[3] += 70;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (CocainaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Cocaina! Use: /Mochila");
- CocainaFavela[4] -= 70;
- DinheiroFavela[4] += 70;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (CocainaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Cocaina! Use: /Mochila");
- CocainaFavela[5] -= 70;
- DinheiroFavela[5] += 70;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (CocainaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Cocaina! Use: /Mochila");
- CocainaFavela[6] -= 70;
- DinheiroFavela[6] += 70;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (CocainaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Cocaina! Use: /Mochila");
- CocainaFavela[7] -= 70;
- DinheiroFavela[7] += 70;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (CocainaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Cocaina! Use: /Mochila");
- CocainaFavela[8] -= 70;
- DinheiroFavela[8] += 70;
- GuardarCocaina();
- GuardarDinheiro();
- }
- }
- if (listitem == 7) {
- if (Player[playerid][pFaccao] == 1) {
- if (CocainaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Cocaina! Use: /Mochila");
- CocainaFavela[0] -= 80;
- DinheiroFavela[0] += 80;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (CocainaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Cocaina! Use: /Mochila");
- CocainaFavela[1] -= 80;
- DinheiroFavela[1] += 80;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (CocainaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Cocaina! Use: /Mochila");
- CocainaFavela[2] -= 80;
- DinheiroFavela[2] += 80;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (CocainaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Cocaina! Use: /Mochila");
- CocainaFavela[3] -= 80;
- DinheiroFavela[3] += 80;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (CocainaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Cocaina! Use: /Mochila");
- CocainaFavela[4] -= 80;
- DinheiroFavela[4] += 80;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (CocainaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Cocaina! Use: /Mochila");
- CocainaFavela[5] -= 80;
- DinheiroFavela[5] += 80;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (CocainaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Cocaina! Use: /Mochila");
- CocainaFavela[6] -= 80;
- DinheiroFavela[6] += 80;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (CocainaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Cocaina! Use: /Mochila");
- CocainaFavela[7] -= 80;
- DinheiroFavela[7] += 80;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (CocainaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Cocaina! Use: /Mochila");
- CocainaFavela[8] -= 80;
- DinheiroFavela[8] += 80;
- GuardarCocaina();
- GuardarDinheiro();
- }
- }
- if (listitem == 8) {
- if (Player[playerid][pFaccao] == 1) {
- if (CocainaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Cocaina! Use: /Mochila");
- CocainaFavela[0] -= 90;
- DinheiroFavela[0] += 90;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (CocainaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Cocaina! Use: /Mochila");
- CocainaFavela[1] -= 90;
- DinheiroFavela[1] += 90;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (CocainaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Cocaina! Use: /Mochila");
- CocainaFavela[2] -= 90;
- DinheiroFavela[2] += 90;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (CocainaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Cocaina! Use: /Mochila");
- CocainaFavela[3] -= 90;
- DinheiroFavela[3] += 90;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (CocainaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Cocaina! Use: /Mochila");
- CocainaFavela[4] -= 90;
- DinheiroFavela[4] += 90;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (CocainaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Cocaina! Use: /Mochila");
- CocainaFavela[5] -= 90;
- DinheiroFavela[5] += 90;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (CocainaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Cocaina! Use: /Mochila");
- CocainaFavela[6] -= 90;
- DinheiroFavela[6] += 90;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (CocainaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Cocaina! Use: /Mochila");
- CocainaFavela[7] -= 90;
- DinheiroFavela[7] += 90;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (CocainaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Cocaina! Use: /Mochila");
- CocainaFavela[8] -= 90;
- DinheiroFavela[8] += 90;
- GuardarCocaina();
- GuardarDinheiro();
- }
- }
- if (listitem == 9) {
- if (Player[playerid][pFaccao] == 1) {
- if (CocainaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Cocaina! Use: /Mochila");
- CocainaFavela[0] -= 100;
- DinheiroFavela[0] += 100;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (CocainaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Cocaina! Use: /Mochila");
- CocainaFavela[1] -= 100;
- DinheiroFavela[1] += 100;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (CocainaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Cocaina! Use: /Mochila");
- CocainaFavela[2] -= 100;
- DinheiroFavela[2] += 100;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (CocainaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Cocaina! Use: /Mochila");
- CocainaFavela[3] -= 100;
- DinheiroFavela[3] += 100;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (CocainaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Cocaina! Use: /Mochila");
- CocainaFavela[4] -= 100;
- DinheiroFavela[4] += 100;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (CocainaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Cocaina! Use: /Mochila");
- CocainaFavela[5] -= 100;
- DinheiroFavela[5] += 100;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (CocainaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Cocaina! Use: /Mochila");
- CocainaFavela[6] -= 100;
- DinheiroFavela[6] += 100;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (CocainaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Cocaina! Use: /Mochila");
- CocainaFavela[7] -= 100;
- DinheiroFavela[7] += 100;
- GuardarCocaina();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (CocainaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Cocaina no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pCocaina] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Cocaina! Use: /Mochila");
- CocainaFavela[8] -= 100;
- DinheiroFavela[8] += 100;
- GuardarCocaina();
- GuardarDinheiro();
- }
- }
- }
- return 1;
- }
- if (dialogid == DIALOG_BALINHA) {
- if (response) {
- if (listitem == 0) {
- if (Player[playerid][pFaccao] == 1) {
- if (BalinhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Balinha! Use: /Mochila");
- BalinhaFavela[0] -= 10;
- DinheiroFavela[0] += 10;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (BalinhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Balinha! Use: /Mochila");
- BalinhaFavela[1] -= 10;
- DinheiroFavela[1] += 10;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (BalinhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Balinha! Use: /Mochila");
- BalinhaFavela[2] -= 10;
- DinheiroFavela[2] += 10;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (BalinhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Balinha! Use: /Mochila");
- BalinhaFavela[3] -= 10;
- DinheiroFavela[3] += 10;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (BalinhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Balinha! Use: /Mochila");
- BalinhaFavela[4] -= 10;
- DinheiroFavela[4] += 10;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (BalinhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Balinha! Use: /Mochila");
- BalinhaFavela[5] -= 10;
- DinheiroFavela[5] += 10;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (BalinhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Balinha! Use: /Mochila");
- BalinhaFavela[6] -= 10;
- DinheiroFavela[6] += 10;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (BalinhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Balinha! Use: /Mochila");
- BalinhaFavela[7] -= 10;
- DinheiroFavela[7] += 10;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (BalinhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Balinha! Use: /Mochila");
- BalinhaFavela[8] -= 10;
- DinheiroFavela[8] += 10;
- GuardarBalinha();
- GuardarDinheiro();
- }
- }
- if (listitem == 1) {
- if (Player[playerid][pFaccao] == 1) {
- if (BalinhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Balinha! Use: /Mochila");
- BalinhaFavela[0] -= 20;
- DinheiroFavela[0] += 20;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (BalinhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Balinha! Use: /Mochila");
- BalinhaFavela[1] -= 20;
- DinheiroFavela[1] += 20;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (BalinhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Balinha! Use: /Mochila");
- BalinhaFavela[2] -= 20;
- DinheiroFavela[2] += 20;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (BalinhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Balinha! Use: /Mochila");
- BalinhaFavela[3] -= 20;
- DinheiroFavela[3] += 20;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (BalinhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Balinha! Use: /Mochila");
- BalinhaFavela[4] -= 20;
- DinheiroFavela[4] += 20;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (BalinhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Balinha! Use: /Mochila");
- BalinhaFavela[5] -= 20;
- DinheiroFavela[5] += 20;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (BalinhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Balinha! Use: /Mochila");
- BalinhaFavela[6] -= 20;
- DinheiroFavela[6] += 20;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (BalinhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Balinha! Use: /Mochila");
- BalinhaFavela[7] -= 20;
- DinheiroFavela[7] += 20;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (BalinhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Balinha! Use: /Mochila");
- BalinhaFavela[8] -= 20;
- DinheiroFavela[8] += 20;
- GuardarBalinha();
- GuardarDinheiro();
- }
- }
- if (listitem == 2) {
- if (Player[playerid][pFaccao] == 1) {
- if (BalinhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Balinha! Use: /Mochila");
- BalinhaFavela[0] -= 30;
- DinheiroFavela[0] += 30;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (BalinhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Balinha! Use: /Mochila");
- BalinhaFavela[1] -= 30;
- DinheiroFavela[1] += 30;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (BalinhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Balinha! Use: /Mochila");
- BalinhaFavela[2] -= 30;
- DinheiroFavela[2] += 30;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (BalinhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Balinha! Use: /Mochila");
- BalinhaFavela[3] -= 30;
- DinheiroFavela[3] += 30;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (BalinhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Balinha! Use: /Mochila");
- BalinhaFavela[4] -= 30;
- DinheiroFavela[4] += 30;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (BalinhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Balinha! Use: /Mochila");
- BalinhaFavela[5] -= 30;
- DinheiroFavela[5] += 30;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (BalinhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Balinha! Use: /Mochila");
- BalinhaFavela[6] -= 30;
- DinheiroFavela[6] += 30;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (BalinhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Balinha! Use: /Mochila");
- BalinhaFavela[7] -= 30;
- DinheiroFavela[7] += 30;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (BalinhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Balinha! Use: /Mochila");
- BalinhaFavela[8] -= 30;
- DinheiroFavela[8] += 30;
- GuardarBalinha();
- GuardarDinheiro();
- }
- }
- if (listitem == 3) {
- if (Player[playerid][pFaccao] == 1) {
- if (BalinhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 40) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Balinha! Use: /Mochila");
- BalinhaFavela[0] -= 40;
- DinheiroFavela[0] += 40;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (BalinhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Balinha! Use: /Mochila");
- BalinhaFavela[1] -= 40;
- DinheiroFavela[1] += 40;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (BalinhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Balinha! Use: /Mochila");
- BalinhaFavela[2] -= 40;
- DinheiroFavela[2] += 40;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (BalinhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Balinha! Use: /Mochila");
- BalinhaFavela[3] -= 40;
- DinheiroFavela[3] += 40;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (BalinhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Balinha! Use: /Mochila");
- BalinhaFavela[4] -= 40;
- DinheiroFavela[4] += 40;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (BalinhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Balinha! Use: /Mochila");
- BalinhaFavela[5] -= 40;
- DinheiroFavela[5] += 40;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (BalinhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Balinha! Use: /Mochila");
- BalinhaFavela[6] -= 40;
- DinheiroFavela[6] += 40;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (BalinhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Balinha! Use: /Mochila");
- BalinhaFavela[7] -= 40;
- DinheiroFavela[7] += 40;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (BalinhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Balinha! Use: /Mochila");
- BalinhaFavela[8] -= 40;
- DinheiroFavela[8] += 40;
- GuardarBalinha();
- GuardarDinheiro();
- }
- }
- if (listitem == 4) {
- if (Player[playerid][pFaccao] == 1) {
- if (BalinhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Balinha! Use: /Mochila");
- BalinhaFavela[0] -= 50;
- DinheiroFavela[0] += 50;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (BalinhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Balinha! Use: /Mochila");
- BalinhaFavela[1] -= 50;
- DinheiroFavela[1] += 50;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (BalinhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Balinha! Use: /Mochila");
- BalinhaFavela[2] -= 50;
- DinheiroFavela[2] += 50;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (BalinhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Balinha! Use: /Mochila");
- BalinhaFavela[3] -= 50;
- DinheiroFavela[3] += 50;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (BalinhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Balinha! Use: /Mochila");
- BalinhaFavela[4] -= 50;
- DinheiroFavela[4] += 50;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (BalinhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Balinha! Use: /Mochila");
- BalinhaFavela[5] -= 50;
- DinheiroFavela[5] += 50;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (BalinhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Balinha! Use: /Mochila");
- BalinhaFavela[6] -= 50;
- DinheiroFavela[6] += 50;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (BalinhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Balinha! Use: /Mochila");
- BalinhaFavela[7] -= 50;
- DinheiroFavela[7] += 50;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (BalinhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Balinha! Use: /Mochila");
- BalinhaFavela[8] -= 50;
- DinheiroFavela[8] += 50;
- GuardarBalinha();
- GuardarDinheiro();
- }
- }
- if (listitem == 5) {
- if (Player[playerid][pFaccao] == 1) {
- if (BalinhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Balinha! Use: /Mochila");
- BalinhaFavela[0] -= 60;
- DinheiroFavela[0] += 60;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (BalinhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Balinha! Use: /Mochila");
- BalinhaFavela[1] -= 60;
- DinheiroFavela[1] += 60;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (BalinhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Balinha! Use: /Mochila");
- BalinhaFavela[2] -= 60;
- DinheiroFavela[2] += 60;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (BalinhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Balinha! Use: /Mochila");
- BalinhaFavela[3] -= 60;
- DinheiroFavela[3] += 60;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (BalinhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Balinha! Use: /Mochila");
- BalinhaFavela[4] -= 60;
- DinheiroFavela[4] += 60;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (BalinhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Balinha! Use: /Mochila");
- BalinhaFavela[5] -= 60;
- DinheiroFavela[5] += 60;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (BalinhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Balinha! Use: /Mochila");
- BalinhaFavela[6] -= 60;
- DinheiroFavela[6] += 60;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (BalinhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Balinha! Use: /Mochila");
- BalinhaFavela[7] -= 60;
- DinheiroFavela[7] += 60;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (BalinhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Balinha! Use: /Mochila");
- BalinhaFavela[8] -= 60;
- DinheiroFavela[8] += 60;
- GuardarBalinha();
- GuardarDinheiro();
- }
- }
- if (listitem == 6) {
- if (Player[playerid][pFaccao] == 1) {
- if (BalinhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Balinha! Use: /Mochila");
- BalinhaFavela[0] -= 70;
- DinheiroFavela[0] += 70;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (BalinhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Balinha! Use: /Mochila");
- BalinhaFavela[1] -= 70;
- DinheiroFavela[1] += 70;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (BalinhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Balinha! Use: /Mochila");
- BalinhaFavela[2] -= 70;
- DinheiroFavela[2] += 70;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (BalinhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Balinha! Use: /Mochila");
- BalinhaFavela[3] -= 70;
- DinheiroFavela[3] += 70;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (BalinhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Balinha! Use: /Mochila");
- BalinhaFavela[4] -= 70;
- DinheiroFavela[4] += 70;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (BalinhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Balinha! Use: /Mochila");
- BalinhaFavela[5] -= 70;
- DinheiroFavela[5] += 70;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (BalinhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Balinha! Use: /Mochila");
- BalinhaFavela[6] -= 70;
- DinheiroFavela[6] += 70;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (BalinhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Balinha! Use: /Mochila");
- BalinhaFavela[7] -= 70;
- DinheiroFavela[7] += 70;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (BalinhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Balinha! Use: /Mochila");
- BalinhaFavela[8] -= 70;
- DinheiroFavela[8] += 70;
- GuardarBalinha();
- GuardarDinheiro();
- }
- }
- if (listitem == 7) {
- if (Player[playerid][pFaccao] == 1) {
- if (BalinhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Balinha! Use: /Mochila");
- BalinhaFavela[0] -= 80;
- DinheiroFavela[0] += 80;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (BalinhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Balinha! Use: /Mochila");
- BalinhaFavela[1] -= 80;
- DinheiroFavela[1] += 80;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (BalinhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Balinha! Use: /Mochila");
- BalinhaFavela[2] -= 80;
- DinheiroFavela[2] += 80;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (BalinhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Balinha! Use: /Mochila");
- BalinhaFavela[3] -= 80;
- DinheiroFavela[3] += 80;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (BalinhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Balinha! Use: /Mochila");
- BalinhaFavela[4] -= 80;
- DinheiroFavela[4] += 80;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (BalinhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Balinha! Use: /Mochila");
- BalinhaFavela[5] -= 80;
- DinheiroFavela[5] += 80;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (BalinhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Balinha! Use: /Mochila");
- BalinhaFavela[6] -= 80;
- DinheiroFavela[6] += 80;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (BalinhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Balinha! Use: /Mochila");
- BalinhaFavela[7] -= 80;
- DinheiroFavela[7] += 80;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (BalinhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Balinha! Use: /Mochila");
- BalinhaFavela[8] -= 80;
- DinheiroFavela[8] += 80;
- GuardarBalinha();
- GuardarDinheiro();
- }
- }
- if (listitem == 8) {
- if (Player[playerid][pFaccao] == 1) {
- if (BalinhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Balinha! Use: /Mochila");
- BalinhaFavela[0] -= 90;
- DinheiroFavela[0] += 90;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (BalinhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Balinha! Use: /Mochila");
- BalinhaFavela[1] -= 90;
- DinheiroFavela[1] += 90;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (BalinhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Balinha! Use: /Mochila");
- BalinhaFavela[2] -= 90;
- DinheiroFavela[2] += 90;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (BalinhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Balinha! Use: /Mochila");
- BalinhaFavela[3] -= 90;
- DinheiroFavela[3] += 90;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (BalinhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Balinha! Use: /Mochila");
- BalinhaFavela[4] -= 90;
- DinheiroFavela[4] += 90;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (BalinhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Balinha! Use: /Mochila");
- BalinhaFavela[5] -= 90;
- DinheiroFavela[5] += 90;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (BalinhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Balinha! Use: /Mochila");
- BalinhaFavela[6] -= 90;
- DinheiroFavela[6] += 90;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (BalinhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Balinha! Use: /Mochila");
- BalinhaFavela[7] -= 90;
- DinheiroFavela[7] += 90;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (BalinhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Balinha! Use: /Mochila");
- BalinhaFavela[8] -= 90;
- DinheiroFavela[8] += 90;
- GuardarBalinha();
- GuardarDinheiro();
- }
- }
- if (listitem == 9) {
- if (Player[playerid][pFaccao] == 1) {
- if (BalinhaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Balinha! Use: /Mochila");
- BalinhaFavela[0] -= 100;
- DinheiroFavela[0] += 100;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (BalinhaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Balinha! Use: /Mochila");
- BalinhaFavela[1] -= 100;
- DinheiroFavela[1] += 100;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (BalinhaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Balinha! Use: /Mochila");
- BalinhaFavela[2] -= 100;
- DinheiroFavela[2] += 100;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (BalinhaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Balinha! Use: /Mochila");
- BalinhaFavela[3] -= 100;
- DinheiroFavela[3] += 100;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (BalinhaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Balinha! Use: /Mochila");
- BalinhaFavela[4] -= 100;
- DinheiroFavela[4] += 100;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (BalinhaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Balinha! Use: /Mochila");
- BalinhaFavela[5] -= 100;
- DinheiroFavela[5] += 100;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (BalinhaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Balinha! Use: /Mochila");
- BalinhaFavela[6] -= 100;
- DinheiroFavela[6] += 100;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (BalinhaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Balinha! Use: /Mochila");
- BalinhaFavela[7] -= 100;
- DinheiroFavela[7] += 100;
- GuardarBalinha();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (BalinhaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Balinha no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pBalinha] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Balinha! Use: /Mochila");
- BalinhaFavela[8] -= 100;
- DinheiroFavela[8] += 100;
- GuardarBalinha();
- GuardarDinheiro();
- }
- }
- }
- return 1;
- }
- if (dialogid == DIALOG_LANCA) {
- if (response) {
- if (listitem == 0) {
- if (Player[playerid][pFaccao] == 1) {
- if (LancaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Lanca! Use: /Mochila");
- LancaFavela[0] -= 10;
- DinheiroFavela[0] += 10;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (LancaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Lanca! Use: /Mochila");
- LancaFavela[1] -= 10;
- DinheiroFavela[1] += 10;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (LancaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Lanca! Use: /Mochila");
- LancaFavela[2] -= 10;
- DinheiroFavela[2] += 10;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (LancaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Lanca! Use: /Mochila");
- LancaFavela[3] -= 10;
- DinheiroFavela[3] += 10;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (LancaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Lanca! Use: /Mochila");
- LancaFavela[4] -= 10;
- DinheiroFavela[4] += 10;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (LancaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Lanca! Use: /Mochila");
- LancaFavela[5] -= 10;
- DinheiroFavela[5] += 10;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (LancaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Lanca! Use: /Mochila");
- LancaFavela[6] -= 10;
- DinheiroFavela[6] += 10;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (LancaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Lanca! Use: /Mochila");
- LancaFavela[7] -= 10;
- DinheiroFavela[7] += 10;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (LancaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Lanca! Use: /Mochila");
- LancaFavela[8] -= 10;
- DinheiroFavela[8] += 10;
- GuardarLanca();
- GuardarDinheiro();
- }
- }
- if (listitem == 1) {
- if (Player[playerid][pFaccao] == 1) {
- if (LancaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Lanca! Use: /Mochila");
- LancaFavela[0] -= 20;
- DinheiroFavela[0] += 20;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (LancaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Lanca! Use: /Mochila");
- LancaFavela[1] -= 20;
- DinheiroFavela[1] += 20;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (LancaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Lanca! Use: /Mochila");
- LancaFavela[2] -= 20;
- DinheiroFavela[2] += 20;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (LancaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Lanca! Use: /Mochila");
- LancaFavela[3] -= 20;
- DinheiroFavela[3] += 20;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (LancaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Lanca! Use: /Mochila");
- LancaFavela[4] -= 20;
- DinheiroFavela[4] += 20;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (LancaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Lanca! Use: /Mochila");
- LancaFavela[5] -= 20;
- DinheiroFavela[5] += 20;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (LancaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Lanca! Use: /Mochila");
- LancaFavela[6] -= 20;
- DinheiroFavela[6] += 20;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (LancaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Lanca! Use: /Mochila");
- LancaFavela[7] -= 20;
- DinheiroFavela[7] += 20;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (LancaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Lanca! Use: /Mochila");
- LancaFavela[8] -= 20;
- DinheiroFavela[8] += 20;
- GuardarLanca();
- GuardarDinheiro();
- }
- }
- if (listitem == 2) {
- if (Player[playerid][pFaccao] == 1) {
- if (LancaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Lanca! Use: /Mochila");
- LancaFavela[0] -= 30;
- DinheiroFavela[0] += 30;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (LancaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Lanca! Use: /Mochila");
- LancaFavela[1] -= 30;
- DinheiroFavela[1] += 30;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (LancaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Lanca! Use: /Mochila");
- LancaFavela[2] -= 30;
- DinheiroFavela[2] += 30;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (LancaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Lanca! Use: /Mochila");
- LancaFavela[3] -= 30;
- DinheiroFavela[3] += 30;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (LancaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Lanca! Use: /Mochila");
- LancaFavela[4] -= 30;
- DinheiroFavela[4] += 30;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (LancaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Lanca! Use: /Mochila");
- LancaFavela[5] -= 30;
- DinheiroFavela[5] += 30;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (LancaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Lanca! Use: /Mochila");
- LancaFavela[6] -= 30;
- DinheiroFavela[6] += 30;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (LancaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Lanca! Use: /Mochila");
- LancaFavela[7] -= 30;
- DinheiroFavela[7] += 30;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (LancaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Lanca! Use: /Mochila");
- LancaFavela[8] -= 30;
- DinheiroFavela[8] += 30;
- GuardarLanca();
- GuardarDinheiro();
- }
- }
- if (listitem == 3) {
- if (Player[playerid][pFaccao] == 1) {
- if (LancaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 40) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Lanca! Use: /Mochila");
- LancaFavela[0] -= 40;
- DinheiroFavela[0] += 40;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (LancaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Lanca! Use: /Mochila");
- LancaFavela[1] -= 40;
- DinheiroFavela[1] += 40;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (LancaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Lanca! Use: /Mochila");
- LancaFavela[2] -= 40;
- DinheiroFavela[2] += 40;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (LancaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Lanca! Use: /Mochila");
- LancaFavela[3] -= 40;
- DinheiroFavela[3] += 40;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (LancaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Lanca! Use: /Mochila");
- LancaFavela[4] -= 40;
- DinheiroFavela[4] += 40;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (LancaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Lanca! Use: /Mochila");
- LancaFavela[5] -= 40;
- DinheiroFavela[5] += 40;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (LancaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Lanca! Use: /Mochila");
- LancaFavela[6] -= 40;
- DinheiroFavela[6] += 40;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (LancaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Lanca! Use: /Mochila");
- LancaFavela[7] -= 40;
- DinheiroFavela[7] += 40;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (LancaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Lanca! Use: /Mochila");
- LancaFavela[8] -= 40;
- DinheiroFavela[8] += 40;
- GuardarLanca();
- GuardarDinheiro();
- }
- }
- if (listitem == 4) {
- if (Player[playerid][pFaccao] == 1) {
- if (LancaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Lanca! Use: /Mochila");
- LancaFavela[0] -= 50;
- DinheiroFavela[0] += 50;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (LancaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Lanca! Use: /Mochila");
- LancaFavela[1] -= 50;
- DinheiroFavela[1] += 50;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (LancaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Lanca! Use: /Mochila");
- LancaFavela[2] -= 50;
- DinheiroFavela[2] += 50;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (LancaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Lanca! Use: /Mochila");
- LancaFavela[3] -= 50;
- DinheiroFavela[3] += 50;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (LancaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Lanca! Use: /Mochila");
- LancaFavela[4] -= 50;
- DinheiroFavela[4] += 50;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (LancaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Lanca! Use: /Mochila");
- LancaFavela[5] -= 50;
- DinheiroFavela[5] += 50;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (LancaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Lanca! Use: /Mochila");
- LancaFavela[6] -= 50;
- DinheiroFavela[6] += 50;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (LancaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Lanca! Use: /Mochila");
- LancaFavela[7] -= 50;
- DinheiroFavela[7] += 50;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (LancaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Lanca! Use: /Mochila");
- LancaFavela[8] -= 50;
- DinheiroFavela[8] += 50;
- GuardarLanca();
- GuardarDinheiro();
- }
- }
- if (listitem == 5) {
- if (Player[playerid][pFaccao] == 1) {
- if (LancaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Lanca! Use: /Mochila");
- LancaFavela[0] -= 60;
- DinheiroFavela[0] += 60;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (LancaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Lanca! Use: /Mochila");
- LancaFavela[1] -= 60;
- DinheiroFavela[1] += 60;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (LancaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Lanca! Use: /Mochila");
- LancaFavela[2] -= 60;
- DinheiroFavela[2] += 60;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (LancaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Lanca! Use: /Mochila");
- LancaFavela[3] -= 60;
- DinheiroFavela[3] += 60;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (LancaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Lanca! Use: /Mochila");
- LancaFavela[4] -= 60;
- DinheiroFavela[4] += 60;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (LancaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Lanca! Use: /Mochila");
- LancaFavela[5] -= 60;
- DinheiroFavela[5] += 60;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (LancaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Lanca! Use: /Mochila");
- LancaFavela[6] -= 60;
- DinheiroFavela[6] += 60;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (LancaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Lanca! Use: /Mochila");
- LancaFavela[7] -= 60;
- DinheiroFavela[7] += 60;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (LancaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Lanca! Use: /Mochila");
- LancaFavela[8] -= 60;
- DinheiroFavela[8] += 60;
- GuardarLanca();
- GuardarDinheiro();
- }
- }
- if (listitem == 6) {
- if (Player[playerid][pFaccao] == 1) {
- if (LancaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Lanca! Use: /Mochila");
- LancaFavela[0] -= 70;
- DinheiroFavela[0] += 70;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (LancaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Lanca! Use: /Mochila");
- LancaFavela[1] -= 70;
- DinheiroFavela[1] += 70;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (LancaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Lanca! Use: /Mochila");
- LancaFavela[2] -= 70;
- DinheiroFavela[2] += 70;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (LancaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Lanca! Use: /Mochila");
- LancaFavela[3] -= 70;
- DinheiroFavela[3] += 70;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (LancaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Lanca! Use: /Mochila");
- LancaFavela[4] -= 70;
- DinheiroFavela[4] += 70;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (LancaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Lanca! Use: /Mochila");
- LancaFavela[5] -= 70;
- DinheiroFavela[5] += 70;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (LancaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Lanca! Use: /Mochila");
- LancaFavela[6] -= 70;
- DinheiroFavela[6] += 70;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (LancaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Lanca! Use: /Mochila");
- LancaFavela[7] -= 70;
- DinheiroFavela[7] += 70;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (LancaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Lanca! Use: /Mochila");
- LancaFavela[8] -= 70;
- DinheiroFavela[8] += 70;
- GuardarLanca();
- GuardarDinheiro();
- }
- }
- if (listitem == 7) {
- if (Player[playerid][pFaccao] == 1) {
- if (LancaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Lanca! Use: /Mochila");
- LancaFavela[0] -= 80;
- DinheiroFavela[0] += 80;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (LancaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Lanca! Use: /Mochila");
- LancaFavela[1] -= 80;
- DinheiroFavela[1] += 80;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (LancaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Lanca! Use: /Mochila");
- LancaFavela[2] -= 80;
- DinheiroFavela[2] += 80;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (LancaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Lanca! Use: /Mochila");
- LancaFavela[3] -= 80;
- DinheiroFavela[3] += 80;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (LancaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Lanca! Use: /Mochila");
- LancaFavela[4] -= 80;
- DinheiroFavela[4] += 80;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (LancaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Lanca! Use: /Mochila");
- LancaFavela[5] -= 80;
- DinheiroFavela[5] += 80;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (LancaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Lanca! Use: /Mochila");
- LancaFavela[6] -= 80;
- DinheiroFavela[6] += 80;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (LancaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Lanca! Use: /Mochila");
- LancaFavela[7] -= 80;
- DinheiroFavela[7] += 80;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (LancaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Lanca! Use: /Mochila");
- LancaFavela[8] -= 80;
- DinheiroFavela[8] += 80;
- GuardarLanca();
- GuardarDinheiro();
- }
- }
- if (listitem == 8) {
- if (Player[playerid][pFaccao] == 1) {
- if (LancaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Lanca! Use: /Mochila");
- LancaFavela[0] -= 90;
- DinheiroFavela[0] += 90;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (LancaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Lanca! Use: /Mochila");
- LancaFavela[1] -= 90;
- DinheiroFavela[1] += 90;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (LancaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Lanca! Use: /Mochila");
- LancaFavela[2] -= 90;
- DinheiroFavela[2] += 90;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (LancaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Lanca! Use: /Mochila");
- LancaFavela[3] -= 90;
- DinheiroFavela[3] += 90;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (LancaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Lanca! Use: /Mochila");
- LancaFavela[4] -= 90;
- DinheiroFavela[4] += 90;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (LancaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Lanca! Use: /Mochila");
- LancaFavela[5] -= 90;
- DinheiroFavela[5] += 90;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (LancaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Lanca! Use: /Mochila");
- LancaFavela[6] -= 90;
- DinheiroFavela[6] += 90;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (LancaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Lanca! Use: /Mochila");
- LancaFavela[7] -= 90;
- DinheiroFavela[7] += 90;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (LancaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Lanca! Use: /Mochila");
- LancaFavela[8] -= 90;
- DinheiroFavela[8] += 90;
- GuardarLanca();
- GuardarDinheiro();
- }
- }
- if (listitem == 9) {
- if (Player[playerid][pFaccao] == 1) {
- if (LancaFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Lanca! Use: /Mochila");
- LancaFavela[0] -= 100;
- DinheiroFavela[0] += 100;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (LancaFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Lanca! Use: /Mochila");
- LancaFavela[1] -= 100;
- DinheiroFavela[1] += 100;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (LancaFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Lanca! Use: /Mochila");
- LancaFavela[2] -= 100;
- DinheiroFavela[2] += 100;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (LancaFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Lanca! Use: /Mochila");
- LancaFavela[3] -= 100;
- DinheiroFavela[3] += 100;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (LancaFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Lanca! Use: /Mochila");
- LancaFavela[4] -= 100;
- DinheiroFavela[4] += 100;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (LancaFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Lanca! Use: /Mochila");
- LancaFavela[5] -= 100;
- DinheiroFavela[5] += 100;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (LancaFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Lanca! Use: /Mochila");
- LancaFavela[6] -= 100;
- DinheiroFavela[6] += 100;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (LancaFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Lanca! Use: /Mochila");
- LancaFavela[7] -= 100;
- DinheiroFavela[7] += 100;
- GuardarLanca();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (LancaFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Lanca no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pLanca] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Lanca! Use: /Mochila");
- LancaFavela[8] -= 100;
- DinheiroFavela[8] += 100;
- GuardarLanca();
- GuardarDinheiro();
- }
- }
- }
- return 1;
- }
- if (dialogid == DIALOG_FOGOS) {
- if (response) {
- if (listitem == 0) {
- if (Player[playerid][pFaccao] == 1) {
- if (FogosFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Fogos! Use: /Mochila");
- FogosFavela[0] -= 10;
- DinheiroFavela[0] += 10;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (FogosFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Fogos! Use: /Mochila");
- FogosFavela[1] -= 10;
- DinheiroFavela[1] += 10;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (FogosFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Fogos! Use: /Mochila");
- FogosFavela[2] -= 10;
- DinheiroFavela[2] += 10;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (FogosFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Fogos! Use: /Mochila");
- FogosFavela[3] -= 10;
- DinheiroFavela[3] += 10;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (FogosFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Fogos! Use: /Mochila");
- FogosFavela[4] -= 10;
- DinheiroFavela[4] += 10;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (FogosFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Fogos! Use: /Mochila");
- FogosFavela[5] -= 10;
- DinheiroFavela[5] += 10;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (FogosFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Fogos! Use: /Mochila");
- FogosFavela[6] -= 10;
- DinheiroFavela[6] += 10;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (FogosFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Fogos! Use: /Mochila");
- FogosFavela[7] -= 10;
- DinheiroFavela[7] += 10;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (FogosFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Fogos! Use: /Mochila");
- FogosFavela[8] -= 10;
- DinheiroFavela[8] += 10;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 10) {
- if (FogosFavela[9] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Fogos! Use: /Mochila");
- FogosFavela[9] -= 10;
- DinheiroFavela[9] += 10;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 11) {
- if (FogosFavela[10] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Fogos! Use: /Mochila");
- FogosFavela[10] -= 10;
- DinheiroFavela[10] += 10;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 12) {
- if (FogosFavela[11] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 10;
- GivePlayerMoney(playerid, -10);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 10 de Fogos! Use: /Mochila");
- FogosFavela[11] -= 10;
- DinheiroFavela[11] += 10;
- GuardarFogos();
- GuardarDinheiro();
- }
- }
- if (listitem == 1) {
- if (Player[playerid][pFaccao] == 1) {
- if (FogosFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Fogos! Use: /Mochila");
- FogosFavela[0] -= 20;
- DinheiroFavela[0] += 20;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (FogosFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Fogos! Use: /Mochila");
- FogosFavela[1] -= 20;
- DinheiroFavela[1] += 20;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (FogosFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Fogos! Use: /Mochila");
- FogosFavela[2] -= 20;
- DinheiroFavela[2] += 20;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (FogosFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Fogos! Use: /Mochila");
- FogosFavela[3] -= 20;
- DinheiroFavela[3] += 20;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (FogosFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Fogos! Use: /Mochila");
- FogosFavela[4] -= 20;
- DinheiroFavela[4] += 20;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (FogosFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Fogos! Use: /Mochila");
- FogosFavela[5] -= 20;
- DinheiroFavela[5] += 20;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (FogosFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Fogos! Use: /Mochila");
- FogosFavela[6] -= 20;
- DinheiroFavela[6] += 20;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (FogosFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Fogos! Use: /Mochila");
- FogosFavela[7] -= 20;
- DinheiroFavela[7] += 20;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (FogosFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Fogos! Use: /Mochila");
- FogosFavela[8] -= 20;
- DinheiroFavela[8] += 20;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 10) {
- if (FogosFavela[9] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Fogos! Use: /Mochila");
- FogosFavela[9] -= 20;
- DinheiroFavela[9] += 20;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 11) {
- if (FogosFavela[10] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Fogos! Use: /Mochila");
- FogosFavela[10] -= 20;
- DinheiroFavela[10] += 20;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 12) {
- if (FogosFavela[11] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 20;
- GivePlayerMoney(playerid, -20);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 20 de Fogos! Use: /Mochila");
- FogosFavela[11] -= 20;
- DinheiroFavela[11] += 20;
- GuardarFogos();
- GuardarDinheiro();
- }
- }
- if (listitem == 2) {
- if (Player[playerid][pFaccao] == 1) {
- if (FogosFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Fogos! Use: /Mochila");
- FogosFavela[0] -= 30;
- DinheiroFavela[0] += 30;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (FogosFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Fogos! Use: /Mochila");
- FogosFavela[1] -= 30;
- DinheiroFavela[1] += 30;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (FogosFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Fogos! Use: /Mochila");
- FogosFavela[2] -= 30;
- DinheiroFavela[2] += 30;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (FogosFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Fogos! Use: /Mochila");
- FogosFavela[3] -= 30;
- DinheiroFavela[3] += 30;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (FogosFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Fogos! Use: /Mochila");
- FogosFavela[4] -= 30;
- DinheiroFavela[4] += 30;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (FogosFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Fogos! Use: /Mochila");
- FogosFavela[5] -= 30;
- DinheiroFavela[5] += 30;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (FogosFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Fogos! Use: /Mochila");
- FogosFavela[6] -= 30;
- DinheiroFavela[6] += 30;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (FogosFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Fogos! Use: /Mochila");
- FogosFavela[7] -= 30;
- DinheiroFavela[7] += 30;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (FogosFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 30) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Fogos! Use: /Mochila");
- FogosFavela[8] -= 30;
- DinheiroFavela[8] += 30;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 10) {
- if (FogosFavela[9] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 20) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Fogos! Use: /Mochila");
- FogosFavela[9] -= 30;
- DinheiroFavela[9] += 30;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 11) {
- if (FogosFavela[10] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Fogos! Use: /Mochila");
- FogosFavela[10] -= 30;
- DinheiroFavela[10] += 30;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 12) {
- if (FogosFavela[11] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 30;
- GivePlayerMoney(playerid, -30);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 30 de Fogos! Use: /Mochila");
- FogosFavela[11] -= 30;
- DinheiroFavela[11] += 30;
- GuardarFogos();
- GuardarDinheiro();
- }
- }
- if (listitem == 3) {
- if (Player[playerid][pFaccao] == 1) {
- if (FogosFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 40) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Fogos! Use: /Mochila");
- FogosFavela[0] -= 40;
- DinheiroFavela[0] += 40;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (FogosFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Fogos! Use: /Mochila");
- FogosFavela[1] -= 40;
- DinheiroFavela[1] += 40;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (FogosFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Fogos! Use: /Mochila");
- FogosFavela[2] -= 40;
- DinheiroFavela[2] += 40;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (FogosFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Fogos! Use: /Mochila");
- FogosFavela[3] -= 40;
- DinheiroFavela[3] += 40;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (FogosFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Fogos! Use: /Mochila");
- FogosFavela[4] -= 40;
- DinheiroFavela[4] += 40;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (FogosFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Fogos! Use: /Mochila");
- FogosFavela[5] -= 40;
- DinheiroFavela[5] += 40;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (FogosFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Fogos! Use: /Mochila");
- FogosFavela[6] -= 40;
- DinheiroFavela[6] += 40;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (FogosFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Fogos! Use: /Mochila");
- FogosFavela[7] -= 40;
- DinheiroFavela[7] += 40;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (FogosFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) >= 40) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Fogos! Use: /Mochila");
- FogosFavela[8] -= 40;
- DinheiroFavela[8] += 40;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 10) {
- if (FogosFavela[9] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 40) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Fogos! Use: /Mochila");
- FogosFavela[9] -= 40;
- DinheiroFavela[9] += 40;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 11) {
- if (FogosFavela[10] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 40) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Fogos! Use: /Mochila");
- FogosFavela[10] -= 40;
- DinheiroFavela[10] += 40;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 12) {
- if (FogosFavela[11] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 40) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 40;
- GivePlayerMoney(playerid, -40);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 40 de Fogos! Use: /Mochila");
- FogosFavela[11] -= 40;
- DinheiroFavela[11] += 40;
- GuardarFogos();
- GuardarDinheiro();
- }
- }
- if (listitem == 4) {
- if (Player[playerid][pFaccao] == 1) {
- if (FogosFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Fogos! Use: /Mochila");
- FogosFavela[0] -= 50;
- DinheiroFavela[0] += 50;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (FogosFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Fogos! Use: /Mochila");
- FogosFavela[1] -= 50;
- DinheiroFavela[1] += 50;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (FogosFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Fogos! Use: /Mochila");
- FogosFavela[2] -= 50;
- DinheiroFavela[2] += 50;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (FogosFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Fogos! Use: /Mochila");
- FogosFavela[3] -= 50;
- DinheiroFavela[3] += 50;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (FogosFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Fogos! Use: /Mochila");
- FogosFavela[4] -= 50;
- DinheiroFavela[4] += 50;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (FogosFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Fogos! Use: /Mochila");
- FogosFavela[5] -= 50;
- DinheiroFavela[5] += 50;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (FogosFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Fogos! Use: /Mochila");
- FogosFavela[6] -= 50;
- DinheiroFavela[6] += 50;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (FogosFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Fogos! Use: /Mochila");
- FogosFavela[7] -= 50;
- DinheiroFavela[7] += 50;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (FogosFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Fogos! Use: /Mochila");
- FogosFavela[8] -= 50;
- DinheiroFavela[8] += 50;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 10) {
- if (FogosFavela[9] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Fogos! Use: /Mochila");
- FogosFavela[9] -= 50;
- DinheiroFavela[9] += 50;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 11) {
- if (FogosFavela[10] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Fogos! Use: /Mochila");
- FogosFavela[10] -= 50;
- DinheiroFavela[10] += 50;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 12) {
- if (FogosFavela[11] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 50;
- GivePlayerMoney(playerid, -50);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 50 de Fogos! Use: /Mochila");
- FogosFavela[11] -= 50;
- DinheiroFavela[11] += 50;
- GuardarFogos();
- GuardarDinheiro();
- }
- }
- if (listitem == 5) {
- if (Player[playerid][pFaccao] == 1) {
- if (FogosFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Fogos! Use: /Mochila");
- FogosFavela[0] -= 60;
- DinheiroFavela[0] += 60;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (FogosFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Fogos! Use: /Mochila");
- FogosFavela[1] -= 60;
- DinheiroFavela[1] += 60;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (FogosFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Fogos! Use: /Mochila");
- FogosFavela[2] -= 60;
- DinheiroFavela[2] += 60;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (FogosFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Fogos! Use: /Mochila");
- FogosFavela[3] -= 60;
- DinheiroFavela[3] += 60;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (FogosFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Fogos! Use: /Mochila");
- FogosFavela[4] -= 60;
- DinheiroFavela[4] += 60;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (FogosFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Fogos! Use: /Mochila");
- FogosFavela[5] -= 60;
- DinheiroFavela[5] += 60;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (FogosFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Fogos! Use: /Mochila");
- FogosFavela[6] -= 60;
- DinheiroFavela[6] += 60;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (FogosFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Fogos! Use: /Mochila");
- FogosFavela[7] -= 60;
- DinheiroFavela[7] += 60;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (FogosFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Fogos! Use: /Mochila");
- FogosFavela[8] -= 60;
- DinheiroFavela[8] += 60;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 10) {
- if (FogosFavela[9] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Fogos! Use: /Mochila");
- FogosFavela[9] -= 60;
- DinheiroFavela[9] += 60;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 11) {
- if (FogosFavela[10] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Fogos! Use: /Mochila");
- FogosFavela[10] -= 60;
- DinheiroFavela[10] += 60;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 12) {
- if (FogosFavela[11] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 60) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 60;
- GivePlayerMoney(playerid, -60);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 60 de Fogos! Use: /Mochila");
- FogosFavela[11] -= 60;
- DinheiroFavela[11] += 60;
- GuardarFogos();
- GuardarDinheiro();
- }
- }
- if (listitem == 6) {
- if (Player[playerid][pFaccao] == 1) {
- if (FogosFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Fogos! Use: /Mochila");
- FogosFavela[0] -= 70;
- DinheiroFavela[0] += 70;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (FogosFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Fogos! Use: /Mochila");
- FogosFavela[1] -= 70;
- DinheiroFavela[1] += 70;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (FogosFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Fogos! Use: /Mochila");
- FogosFavela[2] -= 70;
- DinheiroFavela[2] += 70;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (FogosFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Fogos! Use: /Mochila");
- FogosFavela[3] -= 70;
- DinheiroFavela[3] += 70;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (FogosFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Fogos! Use: /Mochila");
- FogosFavela[4] -= 70;
- DinheiroFavela[4] += 70;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (FogosFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Fogos! Use: /Mochila");
- FogosFavela[5] -= 70;
- DinheiroFavela[5] += 70;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (FogosFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Fogos! Use: /Mochila");
- FogosFavela[6] -= 70;
- DinheiroFavela[6] += 70;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (FogosFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Fogos! Use: /Mochila");
- FogosFavela[7] -= 70;
- DinheiroFavela[7] += 70;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (FogosFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Fogos! Use: /Mochila");
- FogosFavela[8] -= 70;
- DinheiroFavela[8] += 70;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 10) {
- if (FogosFavela[9] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Fogos! Use: /Mochila");
- FogosFavela[9] -= 70;
- DinheiroFavela[9] += 70;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 11) {
- if (FogosFavela[10] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Fogos! Use: /Mochila");
- FogosFavela[10] -= 70;
- DinheiroFavela[10] += 70;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 12) {
- if (FogosFavela[11] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 70) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 70;
- GivePlayerMoney(playerid, -70);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 70 de Fogos! Use: /Mochila");
- FogosFavela[11] -= 70;
- DinheiroFavela[11] += 70;
- GuardarFogos();
- GuardarDinheiro();
- }
- }
- if (listitem == 7) {
- if (Player[playerid][pFaccao] == 1) {
- if (FogosFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Fogos! Use: /Mochila");
- FogosFavela[0] -= 80;
- DinheiroFavela[0] += 80;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (FogosFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Fogos! Use: /Mochila");
- FogosFavela[1] -= 80;
- DinheiroFavela[1] += 80;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (FogosFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Fogos! Use: /Mochila");
- FogosFavela[2] -= 80;
- DinheiroFavela[2] += 80;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (FogosFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Fogos! Use: /Mochila");
- FogosFavela[3] -= 80;
- DinheiroFavela[3] += 80;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (FogosFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Fogos! Use: /Mochila");
- FogosFavela[4] -= 80;
- DinheiroFavela[4] += 80;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (FogosFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Fogos! Use: /Mochila");
- FogosFavela[5] -= 80;
- DinheiroFavela[5] += 80;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (FogosFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Fogos! Use: /Mochila");
- FogosFavela[6] -= 80;
- DinheiroFavela[6] += 80;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (FogosFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Fogos! Use: /Mochila");
- FogosFavela[7] -= 80;
- DinheiroFavela[7] += 80;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (FogosFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Fogos! Use: /Mochila");
- FogosFavela[8] -= 80;
- DinheiroFavela[8] += 80;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 10) {
- if (FogosFavela[9] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Fogos! Use: /Mochila");
- FogosFavela[9] -= 80;
- DinheiroFavela[9] += 80;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 11) {
- if (FogosFavela[10] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Fogos! Use: /Mochila");
- FogosFavela[10] -= 80;
- DinheiroFavela[10] += 80;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 12) {
- if (FogosFavela[11] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 80) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 80;
- GivePlayerMoney(playerid, -80);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 80 de Fogos! Use: /Mochila");
- FogosFavela[11] -= 80;
- DinheiroFavela[11] += 80;
- GuardarFogos();
- GuardarDinheiro();
- }
- }
- if (listitem == 8) {
- if (Player[playerid][pFaccao] == 1) {
- if (FogosFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Fogos! Use: /Mochila");
- FogosFavela[0] -= 90;
- DinheiroFavela[0] += 90;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (FogosFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Fogos! Use: /Mochila");
- FogosFavela[1] -= 90;
- DinheiroFavela[1] += 90;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (FogosFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Fogos! Use: /Mochila");
- FogosFavela[2] -= 90;
- DinheiroFavela[2] += 90;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (FogosFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Fogos! Use: /Mochila");
- FogosFavela[3] -= 90;
- DinheiroFavela[3] += 90;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (FogosFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Fogos! Use: /Mochila");
- FogosFavela[4] -= 90;
- DinheiroFavela[4] += 90;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (FogosFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Fogos! Use: /Mochila");
- FogosFavela[5] -= 90;
- DinheiroFavela[5] += 90;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (FogosFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Fogos! Use: /Mochila");
- FogosFavela[6] -= 90;
- DinheiroFavela[6] += 90;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (FogosFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Fogos! Use: /Mochila");
- FogosFavela[7] -= 90;
- DinheiroFavela[7] += 90;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (FogosFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Fogos! Use: /Mochila");
- FogosFavela[8] -= 90;
- DinheiroFavela[8] += 90;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 10) {
- if (FogosFavela[9] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Fogos! Use: /Mochila");
- FogosFavela[9] -= 90;
- DinheiroFavela[9] += 90;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 11) {
- if (FogosFavela[10] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Fogos! Use: /Mochila");
- FogosFavela[10] -= 90;
- DinheiroFavela[10] += 90;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 12) {
- if (FogosFavela[11] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 90) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 90;
- GivePlayerMoney(playerid, -90);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 90 de Fogos! Use: /Mochila");
- FogosFavela[11] -= 90;
- DinheiroFavela[11] += 90;
- GuardarFogos();
- GuardarDinheiro();
- }
- }
- if (listitem == 9) {
- if (Player[playerid][pFaccao] == 1) {
- if (FogosFavela[0] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Fogos! Use: /Mochila");
- FogosFavela[0] -= 100;
- DinheiroFavela[0] += 100;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 2) {
- if (FogosFavela[1] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Fogos! Use: /Mochila");
- FogosFavela[1] -= 100;
- DinheiroFavela[1] += 100;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 3) {
- if (FogosFavela[2] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Fogos! Use: /Mochila");
- FogosFavela[2] -= 100;
- DinheiroFavela[2] += 100;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 4) {
- if (FogosFavela[3] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Fogos! Use: /Mochila");
- FogosFavela[3] -= 100;
- DinheiroFavela[3] += 100;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 5) {
- if (FogosFavela[4] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Fogos! Use: /Mochila");
- FogosFavela[4] -= 100;
- DinheiroFavela[4] += 100;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 6) {
- if (FogosFavela[5] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Fogos! Use: /Mochila");
- FogosFavela[5] -= 100;
- DinheiroFavela[5] += 100;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 7) {
- if (FogosFavela[6] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Fogos! Use: /Mochila");
- FogosFavela[6] -= 100;
- DinheiroFavela[6] += 100;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 8) {
- if (FogosFavela[7] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Fogos! Use: /Mochila");
- FogosFavela[7] -= 100;
- DinheiroFavela[7] += 100;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 9) {
- if (FogosFavela[8] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Fogos! Use: /Mochila");
- FogosFavela[8] -= 100;
- DinheiroFavela[8] += 100;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 10) {
- if (FogosFavela[9] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Fogos! Use: /Mochila");
- FogosFavela[9] -= 100;
- DinheiroFavela[9] += 100;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 11) {
- if (FogosFavela[10] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Fogos! Use: /Mochila");
- FogosFavela[10] -= 100;
- DinheiroFavela[10] += 100;
- GuardarFogos();
- GuardarDinheiro();
- }
- if (Player[playerid][pFaccao] == 12) {
- if (FogosFavela[11] < 0) {
- SendClientMessage(playerid, COR_ERRO, "Essa favela não tem mais Fogos no armazém");
- return 1;
- }
- if (GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COR_ERRO, " Você não tem dinheiro suficiente.");
- Player[playerid][pFogos] += 100;
- GivePlayerMoney(playerid, -100);
- SCM(playerid, 0x33AAFFFF, "Você comprou pacote de 100 de Fogos! Use: /Mochila");
- FogosFavela[11] -= 100;
- DinheiroFavela[11] += 100;
- GuardarFogos();
- GuardarDinheiro();
- }
- }
- }
- return 1;
- }
- if (dialogid == DIALOG_VENDERFOGOS) {
- if (response) {
- if (listitem == 0) {
- if (Player[playerid][pFogueteiro] == 1) {
- {
- ShowPlayerDialog(playerid, DIALOG_FOGOS, DIALOG_STYLE_LIST, "{FFFFFF}Pacotes de Fogos", "Fogos de 10 - R$ 20\nFogos de 20 - R$ 40\nFogos de 30 - R$ 60\nFogos de 40 - R$ 80\nFogos de 50 - R$ 100\nFogos de 60 - R$ 120\nFogos de 70 - R$ 140\nFogos de 80 - R$ 160\nFogos de 90 - R$ 180\nFogos de 100 - R$ 200", "Comprar", "Cancelar");
- }
- } else {
- SCM(playerid, COR_ERRO, ""
- TAG_ERRO " Você não é Fogueteiro!");
- return 1;
- }
- }
- }
- }
- if (dialogid == DIALOG_DROGAS) {
- if (response) {
- if (listitem == 0) {
- if (Player[playerid][pVapor] >= 1) {
- ShowPlayerDialog(playerid, DIALOG_MACONHA, DIALOG_STYLE_LIST, "Compra de Maconha", "10 gramas\n20 gramas\n30 gramas\n40 gramas\n50 gramas\n60 gramas\n70 gramas\n80 gramas\n90 gramas\n99 gramas", "Comprar", "Cancelar");
- }
- }
- if (listitem == 1) {
- if (Player[playerid][pVapor] >= 1) {
- ShowPlayerDialog(playerid, DIALOG_COCAINA, DIALOG_STYLE_LIST, "Compra de Pó", "Pó de 10\nPó de 20\nPó de 30\nPó de 40\nPó de 50\nPó de 60\nPó de 70\nPó de 80\nPó de 90\nPó de 100", "Comprar", "Cancelar");
- }
- }
- if (listitem == 2) {
- if (Player[playerid][pVapor] >= 1) {
- ShowPlayerDialog(playerid, DIALOG_BALINHA, DIALOG_STYLE_LIST, "Compra de Balinha", "Balinha de 10 - R$ 20\nBalinha de 20 - R$ 40\nBalinha de 30 - R$ 60\nBalinha de 40 - R$ 80\nBalinha de 50 - R$ 100\nBalinha de 60 - R$ 120\nBalinha de 70 - R$ 140\nBalinha de 80 - R$ 160\nBalinha de 90 - R$ 180\nBalinha de 100 - R$ 200", "Comprar", "Cancelar");
- }
- }
- if (listitem == 3) {
- if (Player[playerid][pVapor] >= 1) {
- ShowPlayerDialog(playerid, DIALOG_LANCA, DIALOG_STYLE_LIST, "Compra de Lança", "Lança de 10 - R$ 20\nLança de 20 - R$ 40\nLança de 30 - R$ 60\nLança de 40 - R$ 80\nLança de 50 - R$ 100\nLança de 60 - R$ 120\nLança de 70 - R$ 140\nLança de 80 - R$ 160\nLança de 90 - R$ 180\nLança de 100 - R$ 200", "Comprar", "Cancelar");
- }
- }
- if (listitem == 4) {
- if (Player[playerid][pFogueteiro] >= 1) {
- ShowPlayerDialog(playerid, DIALOG_FOGOS, DIALOG_STYLE_LIST, "Compra de Fogos", "Fogos de 10 - R$ 20\nFogos de 20 - R$ 40\nFogos de 30 - R$ 60\nFogos de 40 - R$ 80\nFogos de 50 - R$ 100\nFogos de 60 - R$ 120\nFogos de 70 - R$ 140\nFogos de 80 - R$ 160\nFogos de 90 - R$ 180\nFogos de 100 - R$ 200", "Comprar", "Cancelar");
- }
- }
- }
- }
- if (dialogid == DIALOG_ARMA) {
- if (response) {
- if (listitem == 0) {
- if (Player[playerid][pFaccao] == 1) {
- if (ArmasFavela[0] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[0]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 30, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 2) {
- if (ArmasFavela[1] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[1]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 30, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 3) {
- if (ArmasFavela[2] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[2]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 30, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 4) {
- if (ArmasFavela[3] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[3]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 30, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 5) {
- if (ArmasFavela[4] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[4]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 30, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 6) {
- if (ArmasFavela[5] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[5]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 30, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 7) {
- if (ArmasFavela[6] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[6]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 30, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 8) {
- if (ArmasFavela[7] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[7]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 30, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 9) {
- if (ArmasFavela[8] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[8]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 30, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 10) {
- if (ArmasFavela[9] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[9]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 30, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 11) {
- if (ArmasFavela[10] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[10]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 30, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 12) {
- if (ArmasFavela[11] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[11]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 30, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- }
- if (listitem == 1) {
- if (Player[playerid][pFaccao] == 1) {
- if (ArmasFavela[0] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[0]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 31, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 2) {
- if (ArmasFavela[1] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[1]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 31, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 3) {
- if (ArmasFavela[2] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[2]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 31, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 4) {
- if (ArmasFavela[3] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[3]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 31, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 5) {
- if (ArmasFavela[4] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[4]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 31, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 6) {
- if (ArmasFavela[5] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[5]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 31, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 7) {
- if (ArmasFavela[6] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[6]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 31, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 8) {
- if (ArmasFavela[7] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[7]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 31, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 9) {
- if (ArmasFavela[8] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[8]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 31, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 10) {
- if (ArmasFavela[9] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[9]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 31, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 11) {
- if (ArmasFavela[10] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[10]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 31, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- if (Player[playerid][pFaccao] == 12) {
- if (ArmasFavela[11] < 0) return SendClientMessage(playerid, COR_ERRO, " Essa favela não tem mais armas no armazém.");
- if (TempoFuzil[playerid] > 0) return SendClientMessage(playerid, COR_ERRO, ""
- TAG_ERRO " Você já equipou recentemente!");
- ArmasFavela[11]--;
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 31, 1500);
- GuardarArmas();
- TempoFuzil[playerid] = 1;
- SetTimerEx("LiberarFuzil", 200000, 0, "d", playerid);
- new string2[280];
- format(string2, sizeof(string2), "{FFFFFF}%s {B452CD}se equipou no armazém.", getPName(playerid));
- MensagemLocal(playerid, COR_ROXO, string2, 30);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement