(Request) Help Command

dealtime

New member
Donators
Messages
6
Points
1
Hi,

Is it possible or already exist?

Example :

Player want to know which commands are enable or existing in the server by typing /help in the chat.

Help
Welcome to the Helping Center
You can use those commands :
/pm "PlayerName" Message (Private Message)
/claim (Receive Rewards for voting)
.....
...
..
(Sry for my english)
 
Last edited:
Advertisement

Official Game Server Partner

dealtime

New member
Donators
Messages
6
Points
1
Chat based command with a reply message


Code:
#include "API\Atlas\Atlas.h"
#pragma comment(lib, "ArkApi.lib")
 
void TestCMD(AShooterPlayerController* shooter_controller, FString* message, int mode)
{
    if (!shooter_controller->PlayerStateField()) return;
    Log::GetLog()->warn("Test Chat Command Called: {}", message->ToString());
    ArkApi::GetApiUtils().SendServerMessage(shooter_controller, FColorList::Green, L"{}, you tried the test command", *ArkApi::GetApiUtils().GetCharacterName(NewPlayer));
}
 
void Load()
{
    Log::Get().Init("Test Plugin");
    ArkApi::GetCommands().AddChatCommand("/test", &TestCMD);
}
 
void Unload()
{
    ArkApi::GetCommands().RemoveChatCommand("/test");
}
 
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
    switch (ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH:
        Load();
        break;
    case DLL_PROCESS_DETACH:
        Unload();
        break;
    }
    return TRUE;
}
 
Top