Skip to content

Commit 3d4c32c

Browse files
authored
Merge pull request #102 from NexiusTailer/develop
Improvements and fixes
2 parents 5083889 + cc6c70c commit 3d4c32c

File tree

19 files changed

+901
-249
lines changed

19 files changed

+901
-249
lines changed

README.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Compatibility is quite high:
4040
- Almost all SA-MP **scripting functions** and **callbacks** are
4141
implemented.
4242
- **Database** functions (`db_*`) are implemented.
43-
- SA-MP server **plugins** work unmodified.
43+
- SA-MP server **plugins** work unmodified, if they don't use memory hacking.
4444
- SA-MP style **rcon** commands are available from the server console
4545
and the ingame console.
4646

@@ -83,6 +83,9 @@ features:
8383
- You can **load plugins dynamically**, while the server is running.
8484
Use the `loadplugin` console command for this.
8585

86+
- There is no hard-coded max filterscript count, the **number of
87+
running filterscripts is unlimited**.
88+
8689
## Installation
8790

8891
*amx* consists of a binary server module (.dll/.so) and a Lua resource.
@@ -203,7 +206,7 @@ Information about this is lined out below.
203206

204207
The meta.xml files of gamemodes and filterscripts are slightly
205208
different. Two resources, amx-test and amx-fs-test, are included
206-
with the *amx* download as examples. Most times you can simply
209+
in the *amx* repository as examples. Most times you can simply
207210
copy-paste these to a new resource and adjust the names in it.
208211

209212
- To specify what **filterscripts to autostart** when *amx* loads,
@@ -224,10 +227,10 @@ Information about this is lined out below.
224227
plugins to start, separated by spaces. For example:
225228

226229
```xml
227-
<setting name="plugins" value="irc sampmysql"/>
230+
<setting name="plugins" value="irc mysql"/>
228231
```
229232

230-
This will load irc.dll and sampmysql.dll on Windows, or .so on
233+
This will load irc.dll and mysql.dll on Windows, or .so on
231234
Linux.
232235

233236
- jbeta's mapcycler resource (shipped with the MTA server) is used for
@@ -675,12 +678,18 @@ Even though *amx* offers a high level of compatibility, not everything
675678
is perfect. Below is a list of limitations that may or may not be
676679
addressed in later versions of *amx* and Multi Theft Auto.
677680

681+
- The following scripting functions will require certain resources
682+
installed to have effect when called: DisableInteriorEnterExits
683+
(disable enex markers implemented by "interiors" resource,
684+
otherwise they are always disabled), SendDeathMessage (invoke
685+
graphical death messages from "killmessages" resource).
686+
678687
- The following scripting functions are currently not implemented and
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.
688+
will have no effect when called: DisableRemoteVehicleCollisions,
689+
EnablePlayerCameraTarget, EnableStuntBonusForAll,
690+
EnableStuntBonusForPlayer, EnableTirePopping (tire popping is
691+
always on), EnableVehicleFriendlyFire, SetObjectNoCameraCol,
692+
SetPlayerShopName, TextDrawSetProportional, TextDrawSetSelectable.
684693

685694
## Credits
686695

amx-test/pawno/include/a_amx.inc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,22 @@ forward OnPlayerKeyUp(playerid, key);
3434
// World
3535
native Float:GetGameSpeed();
3636
native SetGameSpeed(Float:speed);
37+
native Float:GetRainLevel();
38+
native SetRainLevel(Float:level);
39+
native ResetRainLevel();
3740
native GetSkyGradient(&topRed, &topGreen, &topBlue, &bottomRed, &bottomGreen, &bottomBlue);
3841
native SetSkyGradient(topRed = 0, topGreen = 0, topBlue = 0, bottomRed = 0, bottomGreen = 0, bottomBlue = 0);
3942
native ResetSkyGradient();
43+
native Float:GetFogDistance();
44+
native SetFogDistance(Float:distance);
45+
native ResetFogDistance();
4046
native GetCloudsEnabled();
4147
native SetCloudsEnabled(bool:enable);
48+
native SetWeatherBlended(weatherid);
4249
native GetInteriorSoundsEnabled();
4350
native SetInteriorSoundsEnabled(bool:enable);
51+
native GetOcclusionsEnabled();
52+
native SetOcclusionsEnabled(bool:enable);
4453
native IsGarageOpen(garageid);
4554
native SetGarageOpen(garageid, bool:open);
4655
native IsGlitchEnabled(const name[]);
@@ -51,6 +60,7 @@ native Float:GetAircraftMaxHeight();
5160
native SetAircraftMaxHeight(Float:height);
5261
native Float:GetJetpackMaxHeight();
5362
native SetJetpackMaxHeight(Float:height);
63+
native GetWeaponSlot(weaponid);
5464
native GetFPSLimit();
5565
native SetFPSLimit(fps);
5666
native GetRandomPlayer();
@@ -127,6 +137,8 @@ native IsPlayerHeadless(playerid);
127137
native SetPlayerHeadless(playerid, bool:headless);
128138
native GetPlayerBlurLevel(playerid);
129139
native SetPlayerBlurLevel(playerid, level);
140+
native IsPlayerMapForced(playerid);
141+
native ForcePlayerMap(playerid, bool:forceOn);
130142
native FadePlayerCamera(playerid, bool:fadeIn, Float:timeToFade = 1.0, red = 0, green = 0, blue = 0);
131143
native SetPlayerControlState(playerid, const control[], bool:controlState);
132144
native IsPlayerCursorShowing(playerid);
@@ -241,7 +253,7 @@ native SetBotAlpha(botid, alpha);
241253
242254
// Scoreboard
243255
native AddScoreBoardColumn(const column[]);
244-
native SetPlayerScoreBoardData(playerid, const column[], const data[]);
256+
native SetPlayerScoreBoardData(playerid, const column[], const value[]);
245257
native RemoveScoreBoardColumn(const column[]);
246258
247259
// Player Data

0 commit comments

Comments
 (0)