mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
47 lines
835 B
C
47 lines
835 B
C
|
|
#pragma once
|
|
|
|
#include <windows.h>
|
|
|
|
#define MAX_PLAYERS 1004
|
|
#define MAX_ACTORS 1000
|
|
#define MAX_VEHICLES 2000
|
|
#define MAX_OBJECTS 1000
|
|
#define PLAYER_PED_SLOTS 210
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
typedef unsigned short VEHICLEID;
|
|
typedef unsigned short ACTORID;
|
|
typedef unsigned short PLAYERID;
|
|
|
|
typedef struct _VECTOR {
|
|
float X,Y,Z;
|
|
} VECTOR, *PVECTOR;
|
|
|
|
typedef struct _MATRIX4X4 {
|
|
VECTOR right;
|
|
DWORD flags;
|
|
VECTOR up;
|
|
float pad_u;
|
|
VECTOR at;
|
|
float pad_a;
|
|
VECTOR pos;
|
|
float pad_p;
|
|
} MATRIX4X4, *PMATRIX4X4;
|
|
|
|
//-----------------------------------------------------------
|
|
#pragma pack(1)
|
|
typedef struct _ENTITY_TYPE
|
|
{
|
|
// ENTITY STUFF
|
|
DWORD vtable; // 0-4
|
|
|
|
char _pad4[16];
|
|
|
|
MATRIX4X4 *mat; // 20-24
|
|
|
|
} ENTITY_TYPE;
|
|
|
|
//-----------------------------------------------------------
|