forked from SmileYzn/RePugMod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdmin.h
45 lines (33 loc) · 1.25 KB
/
Admin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#pragma once
#define ADMIN_CONFIG_FILE "cstrike/addons/pugmod/users.txt"
class CAdmin
{
public:
void Load();
bool Check(int EntityIndex);
bool Check(edict_t* pEntity);
bool Check(CBasePlayer* Player);
bool Check(const char* Auth);
void Menu(CBasePlayer* Player);
static void MenuHandle(int EntityIndex, P_MENU_ITEM Item);
void MenuKick(int EntityIndex);
static void MenuKickHandle(int EntityIndex, P_MENU_ITEM Item);
void MenuBan(int EntityIndex);
static void MenuBanHandle(int EntityIndex, P_MENU_ITEM Item);
static void MenuBanHandleExtra(int EntityIndex, P_MENU_ITEM Item);
void MenuSlap(int EntityIndex);
static void MenuSlapHandle(int EntityIndex, P_MENU_ITEM Item);
void MenuTeam(int EntityIndex);
static void MenuTeamHandle(int EntityIndex, P_MENU_ITEM Item);
static void MenuTeamHandleExtra(int EntityIndex, P_MENU_ITEM Item);
void MenuMap(int EntityIndex);
static void MenuMapHandle(int EntityIndex, P_MENU_ITEM Item);
void MenuControl(int EntityIndex);
static void MenuControlHandle(int EntityIndex, P_MENU_ITEM Item);
void Chat(CBasePlayer* Player, const char* Args);
void Rcon(CBasePlayer* Player, const char* Args);
void SwapTeams(CBasePlayer* Player);
private:
std::map<std::string, std::string> m_Data;
};
extern CAdmin gAdmin;