Ir para conteúdo

Sound Of Kill

Campones
  • Total de itens

    39
  • Registro em

  • Última visita

Tudo que Sound Of Kill postou

  1. HUAHAUAHAUAHAUAUAHAUAHAAUAHAUAUAHAAUAUAHAHAU Peguei 3 amigos meus ja!! DASHAA
  2. Commands.cpp abaixo de {"/kick",&Commands::kickPlayer}, add {"/votar",&Commands::msgvote}, {"/voto",&Commands::votegm}, no fim de Commands.cpp bool Commands::msgvote(Creature* creature, const std::string &cmd, const std::string &param) { Player* player = dynamic_cast<Player*>(creature); if(player){ if(game->votacao == true){ if(player->jahvotou == false) { if(param == "yes") { player->jahvotou = true; game->votosyes++; std::ostringstream info; info << "Você votou 'sim'."; player->sendTextMessage(MSG_EVENT_ADVANCE, info.str().c_str()); } else if(param == "no") { player->jahvotou = true; game->votosno++; std::ostringstream info; info << "Você votou 'não'."; player->sendTextMessage(MSG_EVENT_ADVANCE, info.str().c_str()); } else { std::ostringstream info; info << "Digite '/votar yes' para votar sim e '/votar no' para votar não."; player->sendTextMessage(MSG_EVENT_ADVANCE, info.str().c_str()); } } else { std::ostringstream info; info << "Você já votou."; player->sendTextMessage(MSG_EVENT_ADVANCE, info.str().c_str()); } } else { std::ostringstream info; info << "Não há votação ocorrendo no momento."; player->sendTextMessage(MSG_EVENT_ADVANCE, info.str().c_str()); } } } bool Commands::votegm(Creature* creature, const std::string &cmd, const std::string &param) { std::ostringstream msg; if(game->votacao == false) { //inicia a votacao msg << "Votaçao iniciada. Tópico: " << param << ". Para votar digite /votar yes ou /votar no."; game->votacao = true; for(AutoList<Player>::listiterator it = Player::listPlayer.list.begin(); it != Player::listPlayer.list.end(); ++it) { (*it).second->sendTextMessage(MSG_EVENT_ADVANCE, msg.str().c_str()); } } else { //encerra a votacao int number = game->votosyes + game->votosno; int votyes = game->votosyes; int votno = game->votosno; msg << "Votação encerrada. " << number << " votaram. Destes, " << votyes << " votaram sim e " << votno << " votaram não."; game->votacao = false; game->votosyes = 0; game->votosno = 0; for(AutoList<Player>::listiterator it = Player::listPlayer.list.begin(); it != Player::listPlayer.list.end(); ++it) { (*it).second->sendTextMessage(MSG_EVENT_ADVANCE, msg.str().c_str()); (*it).second->jahvotou = false; } } } Commands.h em baixo de bool showFrags(Creature* creature, const std::string &cmd, const std::string &param); add CODE bool msgvote(Creature* creature, const std::string &cmd, const std::string &param); bool votegm(Creature* creature, const std::string &cmd, const std::string &param); Game.cpp acima de QUOTE void Game::addCommandTag(std::string tag) add CODE int votosyes = 0; int votosno = 0; bool votacao = false; Game.h acima de void addCommandTag(std::string tag); add int votosyes; int votosno; bool votacao; Player.cpp procure por maglevel = 20; em baixo add jahvotou = false; Player.h procure por int premium; #endif em baixo add bool jahvotou; Se Estiver Com Algum bug me FALE! Obs : Codigo em 7.6 By frerety , eu transformei em 8.0!
  3. Otimo , Meus Parabems!
  4. MUITO BOMMMMMMMMMMMMMMMMMMMMM!!!!!!1
  5. vamos começar : em commands.ccp: add: Código: CODE #ifdef __KICK_ALL_MUS__ {"/kickall",&Commands::kickall}, #endif No final : Código: CODE #ifdef __KICK_ALL_MUS__ bool Commands::kickall(Creature* creature, const std::string& cmd, const std::string& param) { AutoList<Player>::listiterator it = Player::listPlayer.list.begin(); while(it != Player::listPlayer.list.end()) { if((*it).second->getAccessLevel() < 5){ (*it).second->kickPlayer(); it = Player::listPlayer.list.begin(); } else{ ++it; } } return true; } #endif agora em commands.h : add: Código: CODE #ifdef __KICK_ALL_MUS__ bool kickall(Creature* creature, const std::string& cmd, const std::string& param); #endif em parametros : Código: CODE -D__KICK_ALL_MUS__ Creditos: Mustorze;D! 1% Gm Volcano pq ele pedio lol!
  6. Cara De Acordo Com novos items obmt sei la ele nao funfa perfeito as coisas de gelo vira monstros !
  7. MATA O PLAYER Q SUX NAO? Vamos começar! Agora Em Commands.ccp: Abaixo de : CODE {"/raid",&Commands::forceRaid}, Add: CODE #ifdef __KILL_MUS__ {"/kill",&Commands::killplayer}, #endif No final : CODE #ifdef __KILL_MUS__ bool Commands::killplayer(Creature* creature, const std::string& cmd, const std::string& param) { Player* playerkill = g_game.getPlayerByName(param); if(playerkill){ Player* player = creature->getPlayer(); if(player && player->getAccessLevel() <= playerkill->getAccessLevel()){ player->sendTextMessage(MSG_STATUS_CONSOLE_BLUE, "voce nao pode matar esse player."); return true; } playerkill->changeHealth(-9999999); return true; } return false; } #endif Agora em Commands.h abaixo de : CODE bool forceRaid(Creature* creature, const std::string& cmd, const std::string& param); Add: CODE #ifdef __KILL_MUS__ bool killplayer(Creature* creature, const std::string& cmd, const std::string& param); #endif Em Parametros Add: CODE -D__KILL_MUS__ Creditos : Mustorze!
  8. Mas Eu tenho rar ele instala bunitin e na hora de abri da um erro vo tenta de novo ;D!
  9. Bom Cara Mas no 8.0 isso nao funfa!
  10. eu fis isso para tutores , e amigos ou para sseu xar!
  11. Cara Fiquei supreso com um exe sem virus mais nao abre xO!
  12. Nossa Muito BOM!!!!!!!!!!!!!!!!! HUHU SE E MEU FAN MUSTORZE!
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...