How to make a command for sobeit?

xoris82

Новичок
Автор темы
23
1
I want to make a command in sobeit and when I type /slap + id it slaps another player.
 

writeline

Новичок
15
8
Бездумное использование ChatGPT
Here's a hint for you how to do it, it's not a complete code, then you can finish it yourself.

C++:
std::thread([&]
    {
        while (!isSampAvailable()) {}
        sampRegisterChatCommand("slap", CMDPROC__SlapId);
    }
).detach();
}

void CMDPROC__SlapId(const char*)
{
    std::string text_("/slap id");
}

I also recommend looking at this repository from SR_Team - GitHub - mod_s0beit_sa_asi
 
  • Нравится
Реакции: xoris82