Raised This Month: $51 Target: $400
 12% 

[EXTENSION] CustomKeyValues


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 02-16-2018 , 14:45   [EXTENSION] CustomKeyValues
Reply With Quote #1

Note: Use the plugin version instead: https://forums.alliedmods.net/showthread.php?p=2588562

This extension 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 extension 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 GetCustomKeyValue0"mod_tier"tiersizeoftier ) );
PrintToServer"Map tier: %i (%s)"StringToInttier ), success "success" "failure" );
    
// output: "Map tier: 3 (success)" 

Last edited by hmmmmm; 10-27-2019 at 08:54. Reason: Bigger banner for plugin
hmmmmm is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode