Mám nový problém pomôžte mňa už z toho jeb....
tu je script
/*
This script is made by Rochet2
Please give credits if you are going to use this script somewhere.
For TrinityCore
Trinirycore command example as the base and a little help from SD2 forums.
Adds a .developer command to your core.
The notifications work like the GM tag's,
but the command ONLY shows the <Dev> tag before your name, does nothing more
*/
#include "ScriptPCH.h"
#include "Chat.h"
class viptag_commandscript : public CommandScript
{
public:
viptag_commandscript() : CommandScript("viptag_commandscript") { }
static bool VipTagWorldCommand(ChatHandler* handler, const char* args)
{
if (!*args)
{
if (handler->GetSession()->GetPlayer()->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_Vip))
handler->GetSession()->SendAreaTriggerMessage("|cffff0000Vip mode is ON|r");
else
handler->GetSession()->SendAreaTriggerMessage("|cffff0000Vip mode is OFF|r");
return true;
}
std::string argstr = (char*)args;
if (argstr == "on")
{
handler->GetSession()->SendAreaTriggerMessage("|cffff0000Vip mode is ON|r");
handler->GetSession()->GetPlayer()->SetFlag(PLAYER_FLAGS, PLAYER_FLAGS_Vip);
return true;
}
if (argstr == "off")
{
handler->GetSession()->SendAreaTriggerMessage("|cffff0000Vip mode is OFF|r");
handler->GetSession()->GetPlayer()->RemoveFlag(PLAYER_FLAGS, PLAYER_FLAGS_Vip);
return true;
}
handler->SendSysMessage(LANG_USE_BOL);
handler->SetSentErrorMessage(true);
return false;
}
ChatCommand* GetCommands() const
{
static ChatCommand VipTagCommandTable[] =
{
{ "Vip", SEC_PLAYER, true, &VipTagWorldCommand, "", NULL },
{ NULL, 0, false, NULL, "", NULL }
};
return VipTagCommandTable;
}
};
void AddSC_viptag_commandscript()
{
new viptag_commandscript();
}
TU JE VYPIS COMPILE