sv_password auto remove
Posted: 2012 Nov 29 23:13
Keista problema , neveikia t.y nenuima password kai serveris tusčias. Kompiliavimo klaidų nėra.
Code: Select all
#include <amxmodx> #define PLUGIN_NAME "pw removeris"#define PLUGIN_VERS "0.1"#define PLUGIN_AUTH "" new gPointer_Password; new const tuscia[] = ""; public plugin_init() {register_plugin(PLUGIN_NAME, PLUGIN_VERS, PLUGIN_AUTH) gPointer_Password = get_cvar_pointer( "sv_password" );} public client_disconnect(id)if (get_playersnum() == 0)set_pcvar_string(gPointer_Password, tuscia) // if 0 players sv_pasword priskiria ""