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

Password Set/Info


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 09-23-2009 , 17:01   Password Set/Info
Reply With Quote #1

.:: Description ::.
  • Simple plugin to set password in your server and password info with say command.
.:: Usage ::.

ADMINS

  • Use amx_password in console.
ALL
  • say or say_team
    • pass or pw : Show the value of the cvar sv_password.
.:: Cvars ::.
  • psi_showmode
    • 2 : Show the new password to all.
    • 1 : Show the new password to admins, and ***PROTECTED*** to normal players.
    • 0 : Show ***PROTECTED*** to all.
      • Default : 0
  • psi_showinfo
    • 1 : Enable the password informant.
    • 0 : Disable the password informant.
      • Default : 1
.:: Multilingual ::.

Need Translations

ML Thread


Already have
.:: Credits ::.
.:: Includes ::.
PHP Code:
#include <amxmodx>
#include <amxmisc> 
.:: Files ::.
  • password_setinfo.txt --> addons/amxmodx/data/lang
  • password_setinfo.sma --> addons/amxmodx/scripting
  • password_setinfo.amxx --> addons/amxmodx/plugins
.:: Changelog ::.
  • 1.0 : First release.
  • 2.0 : Continue working when AMXX is off.
  • 3.0 : Add new cvar and change the plugin name.
  • 4.0 : Add multilingual.
.:: Notes ::.

Last edited by #8 SickneSS; 01-17-2010 at 13:28.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
relaX_skullz
Member
Join Date: Aug 2009
Location: Zagreb, Croatia
Old 09-23-2009 , 17:06   Re: Set Password
Reply With Quote #2

What do you need this for :S

bind p "amx_cvar sv_password pass" ??
relaX_skullz is offline
Old 09-23-2009, 17:10
#8 SickneSS
This message has been deleted by #8 SickneSS. Reason: New Version -Dont Use Binds-
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-23-2009 , 18:22   Re: Set Password
Reply With Quote #4

Something like this is usually not repetitive so using console is the only way I would do something like this (using amx_cvar).
__________________
fysiks is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 09-23-2009 , 18:48   Re: Set Password
Reply With Quote #5

bind "p" "messagemode sv_password"
__________________
minimiller is offline
Send a message via MSN to minimiller
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-23-2009 , 18:59   Re: Set Password
Reply With Quote #6

As far as the code goes, use pcvars for sv_password. Use get_cvar_pointer("sv_password") to get the pointer.

The "Modification" is not "ALL".
__________________
fysiks is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 09-23-2009 , 22:31   Re: Set Password
Reply With Quote #7

I am not sure in this case but i think...

PHP Code:
    if(!cmd_access(idlevelcid1)) 
Should be:

PHP Code:
    if(!cmd_access(idlevelcid2)) 
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 09-24-2009 , 04:20   Re: Set Password
Reply With Quote #8

Quote:
Originally Posted by Alucard^ View Post
I am not sure in this case but i think...

PHP Code:
    if(!cmd_access(idlevelcid1)) 
Should be:

PHP Code:
    if(!cmd_access(idlevelcid2)) 
nope(:
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 09-24-2009 , 07:54   Re: Set Password
Reply With Quote #9

Make it ML,

there already is a dictionary for it...

I don't see why color print should be used...
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 09-24-2009 , 12:50   Re: Set Password
Reply With Quote #10

Quote:
Originally Posted by crazyeffect View Post
I don't see why color print should be used...
And why not? ;P
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Reply


Thread Tools
Display Modes

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 20:33.


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