* Add public vars for plugin data and small refactoring get_xvar_id native
* Add new command to display info about the plugin and add url to amxx plugins command
* Add optional args to register_plugin native (url, description)
* Add enum of args for register_plugin native
* Creating a variable inside an if statement (C++17)
* Displaying the URL of the plugin if it is present
* Getting an ID only with more than three arguments
* Creating a variable inside an if statement (C++17)
* Fix typo
* Revert "Creating a variable inside an if statement (C++17)"
This reverts commit 835e0bc6c413f11b1bbf964daea87b57f653f5d7.
* Revert "Creating a variable inside an if statement (C++17)"
This reverts commit b2c1e7c77576c02a00c8c3f103457000d3298ceb.
* Revert "Displaying the URL of the plugin if it is present"
This reverts commit 9e31230368449966d16635c696d97c04adadeaa9.
* Binary compatibility for previously compiled plugins
* Displaying the URL of the plugin if it is present
* Quotation marks replaced by square brackets and change arg name to id
* Fix getting url
* The 'atoi' function replaced to 'stoi'
* Add likely/unlikely defines for using built-in function provided by GCC
* Small fixes with auto and inconsistent var name
* Replace stoi to strtol function
* Removed explicit buffer id
* Revert "Add likely/unlikely defines for using built-in function provided by GCC"
This reverts commit 94cee479ed245b98195501466850d01a3f08fd13.
* Add url and description params to get_plugin function
* Add new public var with current map name
* Add a constant to define max map's name length
* Reducing the maximum buffer size to store a map's name
* The PLATFORM_MAX_PATH constant replaced to MAX_MAPNAME_LENGTH
* Lack register_event() on event_enable/disable
Lack register_event() on enable_event and disable_event descriptions
* It shoud be m_iJoiningState not m_iJointState
It shoud be m_iJoiningState not m_iJointState
Just a small fix on json_parse return description. I'm sure it was supposed to be `Invalid_JSON` instead of `Invalid_JSONValue`.
Thank you, guys, that's one of my favorites features.
* Replace atoi by strtol in the config parser
* Move hamdata.ini data to gamedata files
* Reference the new files in master file
* Remove all the parsing code and use config manager to get the offsets
* Remove any hamdata.ini references
* Clean up menu_create() internal code
No code changes. Just modernizing code a little and tidying up things.
* Implement menu_create() "ml" param
* Include newmenu.inc to VS project files
* Adjust documentation
* Put back the quote in the log error message.
* Additions to hlsdk_const
Added values to hlsdk_const using regamedll_cs and reapi as reference.
* Update cstrike_const.inc
* Prefix constants with CS_ to avoid name collision and for consistency
* Fun: Replace ENTINDEX with TypeConversion for consistency
* Fun: Add a class wrapping player's data
* Fun: Make TraceLine a post forward
Reason: as it is it breaks plugins hooking TraceLine because of the original game call is being superceded and other modules can't catch it. It looks like it's this way from the very start fun module has been introduced 13 years ago before. Fakemeta module comes a little later.
* Fun: Clean up code
* Fun: Toggle PlayerPreThink forward on demand
* Fun: Toggle TraceLine forward on demand
* Fun: Add HITZONE* constants for use with set/get_user_hitzone()
* Fun: Refactor a litte the player class
* Fun: Clean up a little more
* Fun: Fix typo in set_user_hitzones from previous commit
* Allow get_players to get the players num only
* used empty brackets instead of zero
* Add get_playersnum_ex stock to amxmisc.inc
* Added missing empty brackets
* Remove brackets from get_players
* Fixed a typo in function description
* Change letters to flags in get_playersnum_ex description
* Add constants for stats functions
* Changed STATS_ to STATSX_ and added 2 more defines
* Added constants for all games
* Add csstats_const.inc and add _MAX_ constats to enum
* Change bodyhits
* Improve messages.inc and message_stocks.inc documentation
* Fix typos
* Fixed typos, added a bunch of @notes and better register_message callback function explanation
* Removed extra argument in set_msg_arg_string
* Creates => Sends
* Fixed param information
* Removed whitespace that prevented the API to generate client_disconnected information
* Fixed documentation.
* Update lang.inc
* Documentation fix
(g/s)et_user_hitzones() functions weren't generating properly in the API due to a whitespace in front of the comment blocks. @return for give item() was missing.
* Whitespace prevented API documentation from generating
* Update lang.inc
* Add JSON module
* Merge upstream changes
Fix memory leaks
* Add json include to PackageScript
* Merge upstream changes
Fix memory leaks and increase max nesting
* Fix documentation
* Use AutoPtr in managing JSON handles
* Merge upstream changes
Order of items in an array is preserved after removing an item.
* Merge upstream
* Fix crash
* Add VS projects files and fix mixed tab/spaces
* Remove erroring on "json_free"
* Add comments to "json.inc" file
* Remove overloaded operators
* Use of "override" keyword where needed
* Fix parameter's name
* Compile as static library, update AMBuildScript and link to core
* Update VS project files to include the library
* Add UTF-8 Rewind library (v1.5.1) to third_party directory
* Update ACKNOWLEDGEMENTS.txt
* Move AMXX buffer in its own function
* Move constants from string.inc to string_const.inc and update project files
* Move stocks from string.inc to string_stocks.inc and update project files
* Improve UTF-8 support in containi() and update documentation
* Improve UTF-8 support in strcmp() and update documentation
* Improve UTF-8 support in strfind() and update documentation
Worth to be noted that this native with ignorecase set was not working properly. So broken that no one reported the issue.
This adds also a safety check for "pos" parameter to not go < 0.
* Improve UTF-8 support in strncmp() and update documentation
* Improve UTF-8 support in equali() and update documentation
* Add an option to some UTF-8 Rewind functions for avoiding invalid data to be replaced
By default it replaces any invalid byte or sequence of bytes by 0xFFFD (3 bytes). It can be problematic when the input buffer is not changed (from a plugin) and that some natives need to calculate a position from the converted string. With such replacement, the position is displaced due the final string length being larger.
This compiles the library as C++, because I added some silly param with a default default value which is not supported by C.
* Improve UTF-8 support in replace_string/ex() and update documentation
* Add is_string_category() and update documentation
* Update a little testsuite plugin (and fix linux compilation)
* Add mb_strotolower/upper() and update documentation
* Add mb_ucfirst() and update documentation
* Add mb_strtotile() and update documentation
* Improve UTF-8 support in get_players() and find_player() with name/case insenstive flags set
* Fix KliPPy's complain
* elog_message
Like "log_message". Logs a message to the current server log file, however the messages sent are also sent to all plugins and can be hooked using "register_logevent".
* Update amxmodx.cpp
* Update Editor.sci
* Update UnitfrmMain.dfm