forked from philip1337/samp-plugin-mapandreas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapandreas.inc
29 lines (24 loc) · 909 Bytes
/
mapandreas.inc
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
// MapAndreas 1.2
// 11.6.2014
// Originally created by Kalcor, updated by Mauzen
#if defined _mapandreas_included
#endinput
#endif
#define _mapandreas_included
#pragma library mapandreas
#define MAP_ANDREAS_MODE_NONE 0
#define MAP_ANDREAS_MODE_MINIMAL 1
#define MAP_ANDREAS_MODE_MEDIUM 2 // currently unused
#define MAP_ANDREAS_MODE_FULL 3
#define MAP_ANDREAS_MODE_NOBUFFER 4
#define MAP_ANDREAS_ERROR_SUCCESS 0
#define MAP_ANDREAS_ERROR_FAILURE 1
#define MAP_ANDREAS_ERROR_MEMORY 2
#define MAP_ANDREAS_ERROR_DATA_FILES 3
#define MAP_ANDREAS_ERROR_INVALID_AREA 4
native MapAndreas_Init(mode, const name[]="", len=sizeof(name));
native MapAndreas_FindZ_For2DCoord(Float:X, Float:Y, &Float:Z);
native MapAndreas_FindAverageZ(Float:X, Float:Y, &Float:Z);
native MapAndreas_Unload();
native MapAndreas_SetZ_For2DCoord(Float:X, Float:Y, Float:Z);
native MapAndreas_SaveCurrentHMap(const name[]);