AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   a little help | modify plugin (https://forums.alliedmods.net/showthread.php?t=319871)

@LeX 11-23-2019 23:46

a little help | modify plugin
 
hello dear,
I wish I could ...
this little plugin....

Spoiler

when an admin enters the server and once he gets access, the admin will change the password from setinfo with *** PROTECTED ***, and when they leave the server they will set the password they have previously had, ie the password their connection.
but only for admins, other users are not affected.
the above plugin works but once the map changes the admins will have to enter the password again in setinfo in order to be able to connect, which is why this request.
Thanks for reading this post :)

Natsheh 11-24-2019 09:42

Re: a little help | modify plugin
 
How do you know the plugin works ??

@LeX 11-24-2019 09:54

Re: a little help | modify plugin
 
the part with "if (is_user_admin (id))" I did not test it but I would like it to work, only for server admins without that "if" was tested, I do not want to retrieve information from other players, I do not steal data , I do not want to believe that we are doing something "unclean" the intention is to protect the administrators information regarding the password information from setinfo

there are more and more exploits about these aspects, all I want to do is be cautious :)

Natsheh 11-25-2019 09:08

Re: a little help | modify plugin
 
How about assigning an admin by the steamid

@LeX 11-25-2019 10:01

Re: a little help | modify plugin
 
allocating admin on steamid may be possible but slot name will no longer have, admin can take whatever name you want there are more disadvantages by allocating admin on steamid than on nick, being on nick is tighter

LearninG 11-25-2019 10:09

Re: a little help | modify plugin
 
i don't understand what you are doing , but this is the correct way of checking each player :
Code:
public Check() {     new players[32] , pnum , id     get_players(players , pnum , "hc") // do not include bots and hltv proxies     for(new i; i < pnum; i++)     {         id = players[i]         if(!is_user_admin(id)) continue // skip normal players         set_user_info(id, "_pw", "***PROTECTED***")     } }

@LeX 11-25-2019 10:27

Re: a little help | modify plugin
 
I want that when an admin exits the server that value "steinfo _pw *** PROTECTED ***" returns to the value before entering the server. I give an example: I enter the server, I am admin and I have the value "setinfo _pw password123", when I entered the server it changes to "setinfo _pw *** PROTECTED ***" but when I leave the server the value is put back on "password123", the plugin above changes the value as I requested but the password will have to be set every time the admin enters the server, I want to avoid this, that the admin will not have to enter the password every time

^SmileY 11-25-2019 11:28

Re: a little help | modify plugin
 
if you want to force change a password in setinfo, or admin will be kicked duo incorrect password or flag access will not be set. According users.ini configuration.

What exactly you want to do ?
Since only change setinfo _pw on client to make _pw PROTECT do not make any sense! Since _pw is stored on client side and cannot be changed or viewed by other clients.

@LeX 11-25-2019 11:34

Re: a little help | modify plugin
 
I want to announce that the information from setinfo can be stolen, you can give /tc, thanks anyway for trying to help me, I will redirect somewhere else.

^SmileY 11-25-2019 11:50

Re: a little help | modify plugin
 
Try to speak correctly, i did still not understand what you need.
Information can't just be STOLEN from client, and you also can't just change when player enter and restore after leaves since flag access won't be given to admin.


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

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