Raised This Month: $32 Target: $400
 8% 

Remove setinfo _pw when leave the Server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 05-16-2017 , 14:13   Remove setinfo _pw when leave the Server
Reply With Quote #1

Hello, i have problems. Any Admins go to other Servers and get hacked about setinfo _pw in my servers. So is there any Way that my Server remove the Setinfo Login when he left my Server?


Thx for Answers.
Godofwar is offline
RAW_192
Senior Member
Join Date: Feb 2017
Old 05-16-2017 , 14:26   Re: Remove setinfo _pw when leave the Server
Reply With Quote #2

You mean that the admins password is getting hacked?

You setting admin powers using steam iD or IP?
RAW_192 is offline
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 05-16-2017 , 14:32   Re: Remove setinfo _pw when leave the Server
Reply With Quote #3

No i am adding admins via Nickname +Password. SO i need a Plugin what remove the setinfo login log after leave the server.
Godofwar is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-16-2017 , 15:25   Re: Remove setinfo _pw when leave the Server
Reply With Quote #4

Set up your admins with their SteamID, then you wouldn't need to use a password
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 05-16-2017 , 15:29   Re: Remove setinfo _pw when leave the Server
Reply With Quote #5

i dont want add steamids. They can use then every nick what they want and i dont want that- So is there a way or not?
Godofwar is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-16-2017 , 15:37   Re: Remove setinfo _pw when leave the Server
Reply With Quote #6

Quote:
Originally Posted by Godofwar View Post
i dont want add steamids. They can use then every nick what they want and i dont want that- So is there a way or not?
Do like I said above then use this.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 05-16-2017 , 16:39   Re: Remove setinfo _pw when leave the Server
Reply With Quote #7

i can make you script get change client setinfo when disconnect but he need to put in consol every time when want connect him setinfo pass
mean him setinfo pass will be not saved.
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-16-2017 , 19:14   Re: Remove setinfo _pw when leave the Server
Reply With Quote #8

Quote:
Originally Posted by D3XT3R View Post
i can make you script get change client setinfo when disconnect but he need to put in consol every time when want connect him setinfo pass
mean him setinfo pass will be not saved.
How do you plan to send a command to a player that isn't connected to the server?

Authenticating by SteamID is the only valid solution for this situation.
__________________

Last edited by fysiks; 05-16-2017 at 19:15.
fysiks is offline
woooow
Member
Join Date: Mar 2017
Old 05-17-2017 , 02:38   Re: Remove setinfo _pw when leave the Server
Reply With Quote #9

if this so important to you

i suggest you to change setinfo _pw to something else

check amxx.cfg

// Name of setinfo which should store a password on a client
// Note: Always prefix the field with an underscore ("_")
// (Example: setinfo _pw "password")

// Default value: "_pw"
amx_password_field "_pw"

always keep the new setinfo as a secret between you and your admins
this way you will be safe.

also if you want i can make simple code to clean the setinfo after each connect
but not in disconnect.

edit

PHP Code:
#include <amxmodx> 

public plugin_init()
{
    
register_plugin"Godofwar""2.0""X" );
}

public 
client_putinserver(id)
{
    if(
get_user_flags(id) & ADMIN_KICK)
    {
        
set_task(15.0"remove_password"id)
    }
}

public 
client_disconnect(id
    
remove_task(id)

public 
remove_password(id)
{
    new 
passwordField[32];
    
get_cvar_string("amx_password_field"passwordField31);
    
client_cmd(id"setinfo ^"%s^" ..."passwordField);


Last edited by woooow; 05-17-2017 at 04:24.
woooow is offline
RAW_192
Senior Member
Join Date: Feb 2017
Old 05-17-2017 , 02:56   Re: Remove setinfo _pw when leave the Server
Reply With Quote #10

Just use Steam ID to set passwords...
Nick is never recommended
RAW_192 is offline
Reply



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 00:04.


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