SA-MP/server/main.h

78 lines
1.2 KiB
C
Raw Normal View History

#ifndef SAMPSRV_MAIN_H
#define SAMPSRV_MAIN_H
2023-10-28 23:37:40 +08:00
#define DEFAULT_MAX_PLAYERS 50
#define DEFAULT_LISTEN_PORT 8192
2023-11-01 21:30:19 +08:00
#define ARRAY_SIZE(a) ( sizeof((a)) / sizeof(*(a)) )
// ------------
// VERSION INFO
// ------------
#define SAMP_VERSION "0.3.7-R2"
// ------------
// OS SPECIFICS
// ------------
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
2023-11-14 22:24:57 +08:00
#define SLEEP(x) { Sleep(x); }
#include <windows.h>
2023-11-17 23:25:37 +08:00
#include <mmsystem.h>
#include <time.h>
#else
2023-11-14 22:24:57 +08:00
#define SLEEP(x) { usleep(x * 1000); }
2023-11-01 21:30:19 +08:00
#ifndef stricmp
#define stricmp strcasecmp
#endif
#endif
// --------
// INCLUDES
// --------
// Regular crap
#include <stdio.h>
#include <stdlib.h>
// Std
#include <map>
#include <string>
// Raknet
#include "../raknet/GetTime.h"
2023-11-16 22:36:25 +08:00
// amx
#include "amx/amx.h"
#include "console.h"
#include "scrhttps.h"
#include "scrtimers.h"
#include "gamemodes.h"
#include "filterscripts.h"
#include "playerpool.h"
#include "vehiclepool.h"
#include "pickuppool.h"
#include "objectpool.h"
#include "menupool.h"
#include "textdrawpool.h"
#include "labelpool.h"
#include "gangzonepool.h"
#include "actorpool.h"
#include "netgame.h"
#include "plugins.h"
void logprintf(char* format, ...);
2023-11-17 23:23:17 +08:00
void flogprintf(char* format, ...);
#ifdef LINUX
char* strlwr(char* str);
#endif
#endif // SAMPSRV_MAIN_H