Loading...
Loading...
Helps with AMX Mod X (Pawn) coding conventions and best practices.
npx skill4agent add hedgefog/amxx-modding-kit amxmodx-basics| Category | Description |
|---|---|
| Basics | Syntax, basics |
| Code Style | File structure, formatting, braces, spacing, plugin registration |
| Naming Conventions | Hungarian notation, variable prefixes, naming patterns |
| Constants & Enums | Define constants, enums, TASKID constants |
| Macros | Common macros, IS_PLAYER, patterns to avoid |
| Function Declarations | Return types, @ prefix, static variables |
| Validations | FM_NULLENT, entity checks, player validation, early returns |
| Category | Description |
|---|---|
| Hooks | Ham, FakeMeta, ReAPI, Event, Message hooks and handles |
| Forwards | CreateMultiForward, ExecuteForward, pre/post patterns |
| Natives | Native registration and implementation |
| Callbacks | Tasks, SQL queries, CVar queries |
| Menus | Menu creation, callbacks, and patterns |
| Commands | Client, server, and console commands |
| CVars | CVar creation, binding, and change hooks |
| Category | Description |
|---|---|
| Optimizations | Native call reduction, dynamic hooks, model path caching |
| Data Structures | Arrays, Tries, entity access, strings |
| API | Description |
|---|---|
| assets | Asset management from JSON configs |
| custom-entities | OOP-style custom entities |
| custom-events | Pub/sub event system |
| custom-weapons | Custom weapon framework |
| entity-force | Physics force application |
| entity-grab | Entity grab and carry |
| player-camera | Custom camera views |
| player-model | Custom player models |
| player-music | MP3 music playback |
| player-roles | Player role management |
| rounds | Round management |
| shops | In-game shop system |
| states | State machine implementation |
#pragma semicolon 1register_plugin()FM_NULLENT-10FM_NULLENTFM_NULLENT00MACRO()_Suffix@@{EntityName}_{MethodName}public@constconst &thisHAM_*FMRES_*HC_*PLUGIN_*g_pfwhamg_pfwfmget_user_msgidregister_messageLibraryName_OnSomethingFw_g_pfwNative_constTask_Callback_SQLQuery_{Name}Callback_Menu_{Name}menu_destroyCommand_ServerCommand_register_concmdclient_cmdengclient_cmdcreate_cvarregister_cvarbind_pcvar_*get_pcvar_*g_pTracexs_vec_setxs_vec_copyg_rgszg_i*Numgmsgg_rg*[MAX_PLAYERS + 1]idpPlayerindexpEntityArrayDestroyTrieDestroyplugin_end()