mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 06:45:37 +03:00
d17945c087
Fixed entity_set_size bug. Switched non-blocking forwards to POST.
48 lines
607 B
C++
Executable File
48 lines
607 B
C++
Executable File
#ifndef _MSGS_INCLUDE_H
|
|
#define _MSGS_INCLUDE_H
|
|
|
|
#include "engine.h"
|
|
|
|
#define MAX_MESSAGES 255
|
|
|
|
#define BLOCK_NOT 0
|
|
#define BLOCK_ONCE 1
|
|
#define BLOCK_SET 2
|
|
|
|
enum {
|
|
arg_byte = 1,
|
|
arg_char,
|
|
arg_short,
|
|
arg_long,
|
|
arg_angle,
|
|
arg_coord,
|
|
arg_string,
|
|
arg_entity,
|
|
};
|
|
|
|
enum {
|
|
type_int = 1,
|
|
type_float,
|
|
type_string,
|
|
};
|
|
|
|
class argMsg
|
|
{
|
|
public:
|
|
argMsg();
|
|
void Reset();
|
|
void Send();
|
|
int Type();
|
|
|
|
int type;
|
|
REAL fData;
|
|
std::string cData;
|
|
int iData;
|
|
};
|
|
|
|
extern AMX_NATIVE_INFO msg_Natives[];
|
|
extern std::vector<argMsg*> Msg;
|
|
extern int msgHooks[256];
|
|
extern int msgBlocks[256];
|
|
|
|
#endif //_MSGS_INCLUDE_H
|