├── .github
└── ISSUE_TEMPLATE
│ ├── bug_report.md
│ ├── config.yml
│ ├── feature_request.md
│ └── function_request.md
├── LICENSE
├── README.md
├── amx-deps
├── amxdeploy.exe
├── amxdeploy.pl
├── meta.xml
└── src
│ ├── .gitignore
│ ├── CFunctions.cpp
│ ├── CFunctions.h
│ ├── Common.h
│ ├── Makefile
│ ├── StdInc.cpp
│ ├── StdInc.h
│ ├── UTF8.h
│ ├── amx
│ ├── CMakeLists.txt
│ ├── amx.c
│ ├── amx.h
│ ├── amxDGram.def
│ ├── amxDGram.rc
│ ├── amxFile.rc
│ ├── amxFixed.def
│ ├── amxFixed.rc
│ ├── amxFloat.def
│ ├── amxFloat.rc
│ ├── amxProcess.def
│ ├── amxProcess.rc
│ ├── amxargs.c
│ ├── amxargs.def
│ ├── amxargs.rc
│ ├── amxaux.c
│ ├── amxaux.h
│ ├── amxcons.c
│ ├── amxcons.h
│ ├── amxcore.c
│ ├── amxdbg.c
│ ├── amxdbg.h
│ ├── amxdef.asm
│ ├── amxdefn.asm
│ ├── amxdgram.c
│ ├── amxexec.asm
│ ├── amxexecn.asm
│ ├── amxfile.c
│ ├── amxfile.def
│ ├── amxfloat.c
│ ├── amxgc.c
│ ├── amxgc.h
│ ├── amxjitr.asm
│ ├── amxjits.asm
│ ├── amxjitsn.asm
│ ├── amxprocess.c
│ ├── amxstring.c
│ ├── amxstring.def
│ ├── amxstring.rc
│ ├── amxtime.c
│ ├── amxtime.def
│ ├── amxtime.rc
│ ├── dllmain.c
│ ├── fixed.c
│ ├── fpattern.c
│ ├── fpattern.h
│ ├── minGlue.h
│ ├── minIni.c
│ ├── minIni.h
│ ├── osdefs.h
│ ├── pawndbg.c
│ ├── pawnrun.c
│ ├── premake5.lua
│ ├── term_ga.c
│ ├── term_ga.h
│ ├── termwin.c
│ └── termwin.h
│ ├── include
│ ├── ILuaModuleManager.h
│ ├── lapi.h
│ ├── lauxlib.h
│ ├── lcode.h
│ ├── ldebug.h
│ ├── ldo.h
│ ├── lfunc.h
│ ├── lgc.h
│ ├── llex.h
│ ├── llimits.h
│ ├── lmem.h
│ ├── lobject.h
│ ├── lopcodes.h
│ ├── lparser.h
│ ├── lstate.h
│ ├── lstring.h
│ ├── ltable.h
│ ├── ltm.h
│ ├── lua.h
│ ├── lua.hpp
│ ├── luaconf.h
│ ├── lualib.h
│ ├── lundump.h
│ ├── lvm.h
│ ├── lzio.h
│ └── sqlite3.h
│ ├── king.rc
│ ├── lib
│ ├── lua5.1.exp
│ ├── lua5.1.lib
│ ├── lua5.1.so
│ ├── sqlite3.exp
│ └── sqlite3.lib
│ ├── linux
│ ├── binreloc.c
│ ├── binreloc.h
│ ├── getch.c
│ ├── getch.h
│ └── sclinux.h
│ ├── ml_base.cpp
│ ├── ml_base.h
│ ├── premake5.lua
│ ├── resource.h
│ ├── syscalls.cpp
│ ├── util.cpp
│ └── util.h
├── amx-fs-test
├── meta.xml
├── testfs.amx
└── testfs.pwn
├── amx-test
├── meta.xml
├── pawno
│ ├── include
│ │ ├── a_actor.inc
│ │ ├── a_amx.inc
│ │ ├── a_http.inc
│ │ ├── a_npc.inc
│ │ ├── a_objects.inc
│ │ ├── a_players.inc
│ │ ├── a_samp.inc
│ │ ├── a_sampdb.inc
│ │ ├── a_vehicles.inc
│ │ ├── core.inc
│ │ ├── datagram.inc
│ │ ├── file.inc
│ │ ├── float.inc
│ │ ├── string.inc
│ │ └── time.inc
│ ├── libpawnc.dll
│ ├── new.pwn
│ ├── pawn.ico
│ ├── pawnc.dll
│ ├── pawncc.exe
│ ├── pawno.exe
│ └── settings.ini
├── testgm.amx
└── testgm.pwn
└── amx
├── client
├── anim.lua
├── arrowmarkers.lua
├── bone_attach_c.lua
├── bone_pos_rot.lua
├── client.lua
├── garages.lua
├── map_waypoint.lua
├── mouselook.lua
├── samp_nametags.lua
└── util.lua
├── images
├── closebtn.png
├── closebtn_hover.png
└── logo_small.png
├── meta.xml
├── scriptfiles
├── properties
│ ├── banks.txt
│ ├── businesses.txt
│ ├── houses.txt
│ ├── interiors.txt
│ └── police.txt
└── vehicles
│ ├── bone.txt
│ ├── flint.txt
│ ├── ls_airport.txt
│ ├── ls_gen_inner.txt
│ ├── ls_gen_outer.txt
│ ├── ls_law.txt
│ ├── lv_airport.txt
│ ├── lv_gen.txt
│ ├── lv_law.txt
│ ├── pilots.txt
│ ├── red_county.txt
│ ├── sf_airport.txt
│ ├── sf_gen.txt
│ ├── sf_law.txt
│ ├── sf_train.txt
│ ├── tierra.txt
│ ├── trains.txt
│ ├── trains_platform.txt
│ └── whetstone.txt
├── server
├── _triggerqueue.lua
├── amx.lua
├── defines.lua
├── events.lua
├── natives
│ ├── a_actors.lua
│ ├── a_http.lua
│ ├── a_mta.lua
│ ├── a_npc.lua
│ ├── a_objects.lua
│ ├── a_players.lua
│ ├── a_samp.lua
│ ├── a_sampdb.lua
│ └── a_vehicles.lua
├── rcon.lua
├── syscalls.lua
└── util.lua
└── shared
├── anim_define.lua
├── attach_func.lua
├── bone_attach.lua
├── ped_anim.lua
├── sound_offset.lua
└── vehicle_info.lua
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | labels: bug
5 |
6 | ---
7 |
8 | **Describe the bug**
9 |
10 |
11 | **To reproduce**
12 |
21 |
22 | **Expected behaviour**
23 |
24 |
25 | **Screenshots**
26 |
30 |
31 | **Version**
32 |
38 |
39 | **Additional context**
40 |
41 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/config.yml:
--------------------------------------------------------------------------------
1 | blank_issues_enabled: false
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | labels: enhancement
5 |
6 | ---
7 |
8 | **Is your feature request related to a problem? Please describe.**
9 |
10 |
11 | **Describe the solution you'd like**
12 |
13 |
14 | **Describe alternatives you've considered**
15 |
16 |
17 | **Additional context**
18 |
19 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/function_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Function request
3 | about: Tell us about a function that does not work here, but works in SA-MP
4 | labels: function
5 |
6 | ---
7 |
8 | **Function name**
9 |
10 |
11 | **Describe the function**
12 |
13 |
14 | **Examples of using of the function**
15 |
16 |
17 | **Equivalent in MTA**
18 |
19 |
20 | **Additional information**
21 |
22 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2008 Multi Theft Auto and amx contributors
2 |
3 | This software is provided 'as-is', without any express or implied
4 | warranty. In no event will the authors be held liable for any damages
5 | arising from the use of this software.
6 |
7 | Permission is granted to anyone to use this software for any purpose,
8 | excluding commercial applications, and to alter it and redistribute it
9 | freely, subject to the following restrictions:
10 |
11 | 1. The origin of this software must not be misrepresented; you must not
12 | claim that you wrote the original software. If you use this software
13 | in a product, an acknowledgment in the product documentation would be
14 | appreciated but is not required.
15 |
16 | 2. Altered source versions must be plainly marked as such, and must not be
17 | misrepresented as being the original software.
18 |
19 | 3. This notice may not be removed or altered from any source
20 | distribution.
21 |
--------------------------------------------------------------------------------
/amx-deps/amxdeploy.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/multitheftauto/amx/3d4c32cf9572f3c6bef0ed68b918162a474cd53e/amx-deps/amxdeploy.exe
--------------------------------------------------------------------------------
/amx-deps/meta.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/amx-deps/src/CFunctions.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/multitheftauto/amx/3d4c32cf9572f3c6bef0ed68b918162a474cd53e/amx-deps/src/CFunctions.h
--------------------------------------------------------------------------------
/amx-deps/src/Common.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/multitheftauto/amx/3d4c32cf9572f3c6bef0ed68b918162a474cd53e/amx-deps/src/Common.h
--------------------------------------------------------------------------------
/amx-deps/src/Makefile:
--------------------------------------------------------------------------------
1 | #### Start of system configuration section ####
2 |
3 | ASM = nasm
4 | CC = gcc
5 | LD = gcc
6 | PROG = king.so
7 | CXX = gcc
8 | CPP = gcc
9 |
10 | # Compiler flags
11 | # NOTE: add -g for debug, remove for release!
12 | ASMFLAGS = -O1 -f elf -I./amx/
13 | CPPFLAGS = -MD -O2 -Wall -I./ -I/usr/local/include/boost-1_35 -I./amx -I./include -I./linux -DAMX_DONT_RELOCATE -DFLOATPOINT
14 | LDFLAGS = -fPIC -s -shared -Wl,-soname,$(PROG).1,-R./
15 | LIBS = -lpthread -lstdc++ -llua5.1 -lsqlite3 -lboost_filesystem-gcc41-mt-s -lboost_system-gcc41-mt-s
16 |
17 | #### End of system configuration section ####
18 |
19 | #### Source and object files
20 |
21 | SRC_AMXASM = ./amx/amxexecn.asm
22 | OBJ_AMXASM = $(patsubst %.asm,%.o,$(SRC_AMXASM))
23 |
24 | SRC_AMX = ./amx/amx.c ./amx/amxaux.c ./amx/amxcons.c ./amx/amxcore.c ./amx/amxfile.c ./amx/amxstring.c ./amx/amxtime.c ./amx/float.c
25 | OBJ_AMX = $(patsubst %.c,%.o,$(SRC_AMX))
26 |
27 | SRC_LOCAL = $(wildcard ./*.cpp) $(wildcard ./linux/*.c)
28 | OBJ_LOCAL = $(patsubst %.cpp,%.o,$(patsubst %.c,%.o,$(SRC_LOCAL)))
29 |
30 | CPPSRCS = $(SRC_LOCAL) $(SRC_AMX)
31 | CPPOBJS = $(OBJ_AMX) $(OBJ_LOCAL)
32 | ASMSRCS = $(SRC_AMXASM)
33 | ASMOBJS = $(OBJ_AMXASM)
34 | DEPS = $(patsubst %.o,%.d,$(OBJS))
35 |
36 | #### Make rules
37 |
38 | all : kingasm king
39 |
40 | kingasm :
41 | $(ASM) $(ASMFLAGS) $(ASMSRCS)
42 |
43 | king : $(CPPOBJS)
44 | $(CC) $(CPPFLAGS) $(LDFLAGS) -o $(PROG) $(CPPOBJS) $(ASMOBJS) $(LIBS)
45 |
46 | clean :
47 | -rm *.d
48 | -rm *.o
49 | -rm ./amx/*.o
50 | -rm ./amx/*.d
51 | -rm ./linux/*.o
52 | -rm ./linux/*.d
53 | -rm $(PROG)
54 |
55 | -include $(DEPS)
56 |
--------------------------------------------------------------------------------
/amx-deps/src/StdInc.cpp:
--------------------------------------------------------------------------------
1 | #include "StdInc.h"
2 |
--------------------------------------------------------------------------------
/amx-deps/src/StdInc.h:
--------------------------------------------------------------------------------
1 | #ifndef _STDINC_H
2 | #define _STDINC_H
3 |
4 | #ifdef WIN32
5 | #define WIN32_LEAN_AND_MEAN
6 | #include
7 | #else
8 | #include
9 | #endif
10 |
11 | #include
12 | #include
13 | #include
14 | #include
15 | #include