Skip to content

Commit a263328

Browse files
authored
Merge pull request #98 from NexiusTailer/develop
Lots of fixes and improvements
2 parents ca0c9ee + 70fd12f commit a263328

39 files changed

+5241
-4019
lines changed

.github/ISSUE_TEMPLATE/function_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ labels: function
1818
<!-- If you know equivalent of the function or functions in MTA, please write it here. -->
1919

2020
**Additional information**
21-
<!-- The additional information can be an article about it, wiki of SAMP or something that can helps us. -->
21+
<!-- The additional information can be an article about it, wiki of SA-MP or something that can helps us. -->

README.md

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
*amx* is a software package that allows the execution of unmodified San
66
Andreas: Multiplayer 0.3.7 gamemodes, filterscripts and plugins on Multi
7-
Theft Auto: San Andreas 1.5.8 and higher servers. It is open source, and [**a prebuilt
7+
Theft Auto: San Andreas 1.6 and higher servers. It is open source, and [**a prebuilt
88
binary for Windows is available for testing purposes right now**](https://github.com/multitheftauto/amx/releases).
99

1010
- [License](#license)
@@ -86,12 +86,19 @@ features:
8686
## Installation
8787

8888
*amx* consists of a binary server module (.dll/.so) and a Lua resource.
89-
It will only run on MTA:SA 1.0 and later. Installation steps are lined
89+
It will only run on MTA:SA 1.6 and later. Installation steps are lined
9090
out below.
9191

9292
### Extracting
9393

94-
Extract the "mods" folder into your MTA "server" directory.
94+
- All needed binary files are in the archive provided on Releases
95+
page. Unpack amx.zip and extract the `mods` folder into your MTA
96+
`server` directory.
97+
98+
- `amx` folder located in mods/deathmatch/resources is a place for the
99+
mentioned Lua resources. It will be empty at this point, so you need
100+
to copy all the latest files of `amx` folder from this repository
101+
into your `amx` folder.
95102

96103
### Configuration
97104

@@ -125,13 +132,16 @@ Extract the "mods" folder into your MTA "server" directory.
125132

126133
The following rights are used for the following purposes:
127134

128-
- `general.ModifyOtherObjects`: to access files of `amx-*`
129-
resources
135+
- `general.ModifyOtherObjects`:
136+
- to access files of `amx-*` resources
130137
- `function.startResource` \
131138
`function.stopResource` \
132139
`function.restartResource`:
133140
- to automatically (re)start filterscripts when `amx` starts
134141
- for rcon
142+
- `function.getServerPassword` \
143+
`function.setServerPassword`:
144+
- for rcon
135145

136146
### Migrating gamemodes, filterscripts, plugins from an SA-MP server
137147

@@ -179,7 +189,7 @@ Information about this is lined out below.
179189

180190
- In SA-MP, there is one folder that contains all gamemodes and
181191
another that contains all filterscripts. In MTA, it is the
182-
convention to create a separate resource (i.e. folder) for each
192+
convention to create a separate resource (i.e. folder) for each
183193
gamemode. *amx* follows the MTA convention for better integration,
184194
which means that a resource needs to be created for each gamemode
185195
and filterscript. The naming convention for these is amx-*name* for
@@ -250,7 +260,7 @@ Information about this is lined out below.
250260

251261
## Running gamemodes and filterscripts
252262

253-
Before you can run sa-mp modes or filterscripts, you need to start the
263+
Before you can run SA-MP modes or filterscripts, you need to start the
254264
*amx* resource. Type this command in the server console or as admin in
255265
the ingame console:
256266

@@ -378,7 +388,7 @@ amxRegisterPawnPrototypes(prototypes);
378388
native amxVersion ( &Float:ver );
379389
```
380390

381-
Retrieves the *amx* version as a floating point number, e.g. `1.3`.
391+
Retrieves the *amx* version as a floating point number, e.g. `1.3`.
382392

383393
### amxVersionString
384394

@@ -523,7 +533,7 @@ with [amxRegisterLuaPrototypes](#amxRegisterLuaPrototypes). Both
523533
functions associate a number of function names with their argument types
524534
and (optionally) return type. To specify a return type, prepend the
525535
function name with the type letter followed by a colon (:), for example:
526-
`f:testfn`. If you do not specify a return type (i.e. only specify the
536+
`f:testfn`. If you do not specify a return type (i.e. only specify the
527537
name, `testfn`), "i" will be assumed.
528538

529539
See the syntax sections of the two registration functions for the
@@ -666,16 +676,11 @@ is perfect. Below is a list of limitations that may or may not be
666676
addressed in later versions of *amx* and Multi Theft Auto.
667677

668678
- The following scripting functions are currently not implemented and
669-
will have no effect when called: AllowAdminTeleport,
670-
AllowInteriorWeapons, AllowPlayerTeleport,
671-
DisableInteriorEnterExits, EnableStuntBonusForAll,
672-
EnableStuntBonusForPlayer, EnableTirePopping (tire popping is always
673-
on), EnableZoneNames, LimitGlobalChatRadius, PlayerPlaySound,
674-
SendDeathMessage (use the "killmessages" resource on your server
675-
instead for graphical death messages), SetDeathDropAmount,
676-
SetDisabledWeapons, SetEchoDestination, SetNameTagDrawDistance,
677-
SetPlayerDisabledWeapons, SetTeamCount, SetVehicleNumberPlate,
678-
ShowPlayerNameTagForPlayer, TextDrawSetProportional,
679+
will have no effect when called: DisableInteriorEnterExits,
680+
EnableStuntBonusForAll, EnableStuntBonusForPlayer, EnableTirePopping
681+
(tire popping is always on), PlayerPlaySound, SendDeathMessage (use
682+
the "killmessages" resource on your server instead for graphical
683+
death messages), SetNameTagDrawDistance, TextDrawSetProportional,
679684
UsePlayerPedAnims.
680685

681686
## Credits

amx-deps/a_amx.inc

Lines changed: 0 additions & 175 deletions
This file was deleted.

amx-deps/amxdeploy.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ sub copySelection {
231231

232232
print "> Configuring\n";
233233

234-
# Read sa-mp config
234+
# Read SA-MP config
235235
my %sampcfg;
236236
open SAMPCFG, $oldsrvpath . "/server.cfg";
237237
while(<SAMPCFG>) {
@@ -279,7 +279,7 @@ sub copySelection {
279279

280280
# Get filterscripts already in amx meta.xml
281281
my %usedFilterscripts = %{{ map {$_ => 1 if(!/^$/)} split(/\s+/, $filterscriptsNode->att("value")) }};
282-
# Add filterscripts that are in samp's server.cfg and also exist in MTA
282+
# Add filterscripts that are in SA-MP's server.cfg and also exist in MTA
283283
if($sampcfg{filterscripts}) {
284284
for(split /\s+/, $sampcfg{filterscripts}) {
285285
next if(!-e $newsrvpath . "/mods/deathmatch/resources/amx-fs-$_");
@@ -289,7 +289,7 @@ sub copySelection {
289289

290290
# Get plugins already in amx meta.xml
291291
my %usedPlugins = %{{ map {$_ => 1 if(!/^$/)} split(/\s+/, $pluginsNode->att("value")) }};
292-
# Add plugins that are in samp's server.cfg and also exist in MTA
292+
# Add plugins that are in SA-MP's server.cfg and also exist in MTA
293293
if($sampcfg{plugins}) {
294294
for(split /\s+/, $sampcfg{plugins}) {
295295
next if(!-e $newsrvpath . "/mods/deathmatch/resources/amx/plugins/$_.dll" && !-e $newsrvpath . "/mods/deathmatch/resources/amx/plugins/$_.so");

amx-deps/meta.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<meta>
22
<info name="Advanced Map Xtreme" author="arc_" type="gamemode" />
33
<!-- This is only a dummy file to prevent server errors. -->
4-
<!-- See install.html for installation instructions -->
54
</meta>

amx-deps/src/CFunctions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ int CFunctions::amxLoad(lua_State *luaVM) {
176176
return 1;
177177
}
178178

179-
// Register sa-mp and plugin natives
179+
// Register SA-MP and plugin natives
180180
amx_CoreInit(amx);
181181
amx_ConsoleInit(amx);
182182
amx_FloatInit(amx);

0 commit comments

Comments
 (0)