Pretty much like
this extension I made, but in plugin form so it isn't such a hassle for others to use.
This plugin was made with the idea of allowing easy transfer of information between maps/mappers and plugins.
Mappers can add keys/values for entities through hammer by clicking "Smart Edit" and filling in the boxes:
Then, once the map is loaded on the server, the plugin will pick up any keys/values that the server tries to throw out, and provides a native to allow plugins to easily get them.
Following from the example of the image above:
PHP Code:
char tier[8];
bool success = GetCustomKeyValue( 0, "mod_tier", tier, sizeof( tier ) );
PrintToServer( "Map tier: %i (%s)", StringToInt( tier ), success ? "success" : "failure" );
// output: "Map tier: 3 (success)"
Note: This plugin requires the
DHooks extension