Jump to content

Darky88

Members
  • Posts

    79
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by Darky88

  1. Language.h -// Room for more level 2 348-399 not used + LANG_KICK_WORLD_ANNOUNCE = 348, +// Room for more level 2 349-399 not used Level2.cpp //kick player bool ChatHandler::HandleKickPlayerCommand(const char *args) { Player* target; if(!extractPlayerTarget((char*)args,&target)) return false; if (m_session && target==m_session->GetPlayer()) { SendSysMessage(LANG_COMMAND_KICKSELF); SetSentErrorMessage(true); return false; } // check online security if (HasLowerSecurity(target, 0)) return false; // send before target pointer invalidate PSendSysMessage(LANG_COMMAND_KICKMESSAGE,GetNameLink(target).c_str()); + sWorld.SendWorldText(LANG_KICK_WORLD_ANNOUNCE,nameOrIP.c_str(),m_session ? m_session->GetPlayerName() : "CONSOLE",reason); ); target->GetSession()->KickPlayer(); return true; } mangos_string.sql delete from `mangos_string` where `entry`='348'; insert into `mangos_string` (`entry`, `content_default`, `content_loc1`, `content_loc2`, `content_loc3`, `content_loc4`, `content_loc5`, `content_loc6`, `content_loc7`, `content_loc8`) values('348','|cffff0000[GM]:|r %s was kiked by %s. Reason: %s.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); U like that?? (NOT TESTED)
  2. Simpre mode yello msg (i dont test it) Level2.cpp //kick player bool ChatHandler::HandleKickPlayerCommand(const char *args) { Player* target; if(!extractPlayerTarget((char*)args,&target)) return false; if (m_session && target==m_session->GetPlayer()) { SendSysMessage(LANG_COMMAND_KICKSELF); SetSentErrorMessage(true); return false; } // check online security if (HasLowerSecurity(target, 0)) return false; // send before target pointer invalidate PSendSysMessage(LANG_COMMAND_KICKMESSAGE,GetNameLink(target).c_str()); + sWorld.SendWorldText(LANG_COMMAND_KICKMESSAGE,GetNameLink(target).c_str()); target->GetSession()->KickPlayer(); return true; }
  3. You force a clients to auto-join channel general, local defense,... And that channels allowtwosides.chat=0 I like create new chanel, and clients auto-join in all zones of the map and allowtwoside=0 That is possible.
  4. Hi I need 1 channel whit two side, 1 for horde and 1 alliance, this channel is auto-channel join for all players, others server "4sc3nt" have this. anyone know how to do it??? 1000thx PD: Sorry for my bad english
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use