-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMessageBuffer.h
35 lines (29 loc) · 915 Bytes
/
MessageBuffer.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
/* ======== Basic Admin tool ========
* Copyright (C) 2004-2007 Erling K. Sæterdal
* No warranties of any kind
*
* License: zlib/libpng
*
* Author(s): Erling K. Sæterdal ( EKS )
* Credits:
* Menu code based on code from CSDM ( http://www.tcwonline.org/~dvander/cssdm ) Created by BAILOPAN
* Helping on misc errors/functions: BAILOPAN,karma,LDuke,sslice,devicenull,PMOnoTo,cybermind ( most who idle in #sourcemod on GameSurge realy )
* ============================ */
#ifndef _INCLUDE_MESSAGEBUFFER
#define _INCLUDE_MESSAGEBUFFER
typedef struct
{
char Message[MAX_LOGLEN+1];
bool InUse;
}stMessageBuffer;
class MessageBuffer
{
public:
void AddMsgToBuffer(const char *Msg, ...);
bool HasBufferedMessages();
const char *GetNextBufferedMsg();
private:
void ClearList();
//static int ConvertFromAmxxStyleAdminRights(char *Flags);
};
#endif // end _INCLUDE_MESSAGEBUFFER