RSSy MYGO.pl Opublikowano Kwiecień 20, 2018 o 07:00 RSSy Udostępnij Opublikowano Kwiecień 20, 2018 o 07:00 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 Attached Files Get Plugin or Get Source (customkeyvalues.sp - 4.2 KB) customkeyvalues.inc (643 Bytes) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się