RSSy MYGO.pl Opublikowano Czerwiec 1, 2020 o 07:22 RSSy Udostępnij Opublikowano Czerwiec 1, 2020 o 07:22 I want the steam ID to be saved in the file and path below Code: configs/user-steams.ini PHP Code: #include <amxmodx> #include <nvault> #define MAX_PLAYERS 32 new const SteamIDList[][] = { "STEAM_6:0:40857791", "STEAM_6:0:1543600141", "STEAM_6:0:765433307" }; new g_Vault , g_szAuthID[ MAX_PLAYERS + 1 ][ 34 ]; public plugin_init() { g_Vault = nvault_open( "SteamIDMenu" ); LoadVault(); register_clcmd( "say /menu" , "ShowMenu" ); } public plugin_end() { nvault_close( g_Vault ); } public client_authorized( id ) { get_user_authid( id , g_szAuthID[ id ] , charsmax( g_szAuthID[] ) ); } public ShowMenu( id ) { if ( nvault_get( g_Vault , g_szAuthID[ id ] ) ) { //Player in vault } } LoadVault() { nvault_prune( g_Vault , 0 , get_systime() ); for ( new i = 0 ; i < sizeof( SteamIDList ) ; i++ ) { nvault_set( g_Vault , SteamIDList[ i ] , "1" ); } } user-steams.ini: Code: "STEAM_6:0:40857791" "STEAM_6:0:1543600141" "STEAM_6:0:765433307" { I think this code is for loading accounts PHP Code: format(configsDir, 63, "%s/user-steams.ini", configsDir) LoadVault(configsDir) Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi