Raised This Month: $51 Target: $400
 12% 

a little help | modify plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
@LeX
Junior Member
Join Date: Nov 2018
Old 11-23-2019 , 23:46   a little help | modify plugin
Reply With Quote #1

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

Last edited by @LeX; 11-24-2019 at 02:27.
@LeX is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-24-2019 , 09:42   Re: a little help | modify plugin
Reply With Quote #2

How do you know the plugin works ??
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
@LeX
Junior Member
Join Date: Nov 2018
Old 11-24-2019 , 09:54   Re: a little help | modify plugin
Reply With Quote #3

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

Last edited by @LeX; 11-24-2019 at 09:56.
@LeX is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-25-2019 , 09:08   Re: a little help | modify plugin
Reply With Quote #4

How about assigning an admin by the steamid
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
@LeX
Junior Member
Join Date: Nov 2018
Old 11-25-2019 , 10:01   Re: a little help | modify plugin
Reply With Quote #5

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
@LeX is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 11-25-2019 , 10:09   Re: a little help | modify plugin
Reply With Quote #6

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***")      } }

Last edited by LearninG; 11-25-2019 at 10:14.
LearninG is offline
@LeX
Junior Member
Join Date: Nov 2018
Old 11-25-2019 , 10:27   Re: a little help | modify plugin
Reply With Quote #7

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
@LeX is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 11-25-2019 , 11:28   Re: a little help | modify plugin
Reply With Quote #8

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.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 11-25-2019 at 11:28.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
@LeX
Junior Member
Join Date: Nov 2018
Old 11-25-2019 , 11:34   Re: a little help | modify plugin
Reply With Quote #9

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.
@LeX is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 11-25-2019 , 11:50   Re: a little help | modify plugin
Reply With Quote #10

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.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
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 19:21.


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