Raised This Month: $14 Target: $400
 3% 

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 , 18: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 14: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 , 18: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, 18: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 , 19:22   Re: Set Password
Reply With Quote #3

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 , 19:48   Re: Set Password
Reply With Quote #4

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 , 19:59   Re: Set Password
Reply With Quote #5

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 , 23:31   Re: Set Password
Reply With Quote #6

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 , 05:20   Re: Set Password
Reply With Quote #7

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 , 08:54   Re: Set Password
Reply With Quote #8

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 , 13:50   Re: Set Password
Reply With Quote #9

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^
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 09-24-2009 , 13:54   Re: Set Password
Reply With Quote #10

Quote:
Originally Posted by Alucard^ View Post
And why not? ;P
This limits its for CS 1.6 Only.

Idea: Show the new password to admins, and PROTECTED to normal players.

PHP Code:
    register_cvar("sp_author"AUTHOR,FCVAR_SPONLY|FCVAR_SERVER
    
register_cvar("sp_version"VERSIONFCVAR_SPONLY|FCVAR_SERVER
You dont need to have 2 cvars, and i dont see point to having such cvars for such simple plugin.

Use pcvar pointer for sv_password.
__________________
xPaw is offline
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 13:47.


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