mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 11:53:14 +08:00
add hostkick (#259)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#include "game/commands/PlayerCommand.hpp"
|
||||
#include "game/backend/NativeHooks.hpp"
|
||||
#include "game/gta/Natives.hpp"
|
||||
|
||||
namespace YimMenu::Features
|
||||
{
|
||||
class HostKick : public PlayerCommand
|
||||
{
|
||||
using PlayerCommand::PlayerCommand;
|
||||
virtual void OnCall(Player player) override
|
||||
{
|
||||
NETWORK::NETWORK_SESSION_KICK_PLAYER(player.GetId());
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
static HostKick _HostKick{"HKick", "Host Kick", "Only available as host and the target is unblockable"};
|
||||
}
|
||||
@@ -7,6 +7,7 @@ namespace YimMenu::Submenus
|
||||
auto menu = std::make_shared<Category>("Kick");
|
||||
|
||||
auto kicks = std::make_shared<Group>("Kicks");
|
||||
kicks->AddItem(std::make_shared<PlayerCommandItem>("hkick"_J));
|
||||
kicks->AddItem(std::make_shared<PlayerCommandItem>("shkick"_J));
|
||||
kicks->AddItem(std::make_shared<PlayerCommandItem>("endkick"_J));
|
||||
kicks->AddItem(std::make_shared<PlayerCommandItem>("nfkick"_J));
|
||||
|
||||
Reference in New Issue
Block a user