mapandreas.inc 851 B

1234567891011121314151617181920212223
  1. // MapAndreas 1.2.1
  2. // 20.7.2014
  3. // Originally created by Kalcor, updated by Mauzen and Pamdex
  4. #define MAP_ANDREAS_MODE_NONE 0
  5. #define MAP_ANDREAS_MODE_MINIMAL 1
  6. #define MAP_ANDREAS_MODE_MEDIUM 2 // currently unused
  7. #define MAP_ANDREAS_MODE_FULL 3
  8. #define MAP_ANDREAS_MODE_NOBUFFER 4
  9. #define MAP_ANDREAS_ERROR_SUCCESS 0
  10. #define MAP_ANDREAS_ERROR_FAILURE 1
  11. #define MAP_ANDREAS_ERROR_MEMORY 2
  12. #define MAP_ANDREAS_ERROR_DATA_FILES 3
  13. #define MAP_ANDREAS_ERROR_INVALID_AREA 4
  14. native MapAndreas_Init(mode, name[]="", len=sizeof(name));
  15. native MapAndreas_FindZ_For2DCoord(Float:X, Float:Y, &Float:Z);
  16. native MapAndreas_FindAverageZ(Float:X, Float:Y, &Float:Z);
  17. native MapAndreas_Unload();
  18. native MapAndreas_SetZ_For2DCoord(Float:X, Float:Y, Float:Z);
  19. native MapAndreas_SaveCurrentHMap(name[]);
  20. native MapAndreas_GetAddress(); //only for plugins