Raised This Month: $ Target: $400
 0% 

[REQ] amx_pw instead typing amx_cvar sv_password


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rsbane
Member
Join Date: Jul 2008
Old 06-14-2009 , 05:24   [REQ] amx_pw instead typing amx_cvar sv_password
Reply With Quote #1

Can anyone make this?
I think amx_pw is free to use and it will help on ClanWar servers like amx_rr
rsbane is offline
QualiTy
BANNED
Join Date: May 2009
Old 06-14-2009 , 07:39   Re: [REQ] amx_pw instead typing amx_cvar sv_password
Reply With Quote #2

Why? Use alliases.
QualiTy is offline
rsbane
Member
Join Date: Jul 2008
Old 06-14-2009 , 09:24   Re: [REQ] amx_pw instead typing amx_cvar sv_password
Reply With Quote #3

How can I do that?
rsbane is offline
QualiTy
BANNED
Join Date: May 2009
Old 06-14-2009 , 11:35   Re: [REQ] amx_pw instead typing amx_cvar sv_password
Reply With Quote #4

I'm not really sure, but I can give You an allias, which lets You start server with messages "Game will be live in 2312j4hl restarts" And You only need to type "Rcon Start" ...
QualiTy is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 06-14-2009 , 11:53   Re: [REQ] amx_pw instead typing amx_cvar sv_password
Reply With Quote #5

Code:
#include <amxmodx> #include <amxmisc>   public plugin_init()         register_clcmd("amx_pw", "cmdPW", ADMIN_CVAR);   public cmdPW(iCl, iLvl, iCmd) {         if (!cmd_access(iCl, iLvl, iCmd, 2))                 return PLUGIN_HANDLED;           new szArg[32];         read_argv(1, szArg, 31);           set_cvar_string("sv_password", szArg);         console_print(iCl, "^"sv_password^" has been set to ^"%s^"", szArg);           return PLUGIN_HANDLED; }
__________________
hleV is offline
rsbane
Member
Join Date: Jul 2008
Old 06-14-2009 , 16:10   Re: [REQ] amx_pw instead typing amx_cvar sv_password
Reply With Quote #6

Quote:
Originally Posted by hleV View Post
Code:
#include <amxmodx> #include <amxmisc>   public plugin_init()         register_clcmd("amx_pw", "cmdPW", ADMIN_CVAR);   public cmdPW(iCl, iLvl, iCmd) {         if (!cmd_access(iCl, iLvl, iCmd, 2))                 return PLUGIN_HANDLED;           new szArg[32];         read_argv(1, szArg, 31);           set_cvar_string("sv_password", szArg);         console_print(iCl, "^"sv_password^" has been set to ^"%s^"", szArg);           return PLUGIN_HANDLED; }
thank you hlev , but I cant compile plugin, can you attach compilied version?
rsbane is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-14-2009 , 16:28   Re: [REQ] amx_pw instead typing amx_cvar sv_password
Reply With Quote #7

Quote:
Originally Posted by rsbane View Post
can you attach compilied version?
No, it's not allowed here. I see that it fails to compile online but compiles perfectly locally. I've seen that issue twice today .
__________________
fysiks is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 06-15-2009 , 06:11   Re: [REQ] amx_pw instead typing amx_cvar sv_password
Reply With Quote #8

http://www.amxmodx.org/webcompiler.cgi
It can be broken sometimes, but should work usually.
SnoW is offline
Send a message via MSN to SnoW
sila
Member
Join Date: Jun 2009
Location: Krusevac
Old 06-15-2009 , 10:44   Re: [REQ] amx_pw instead typing amx_cvar sv_password
Reply With Quote #9

http://forums.alliedmods.net/showthread.php?p=13046 - amx_rr 1 1
http://forums.alliedmods.net/showthread.php?p=105216 - amx_pass pw , amx_nopass
__________________
sila is offline
Send a message via ICQ to sila Send a message via MSN to sila Send a message via Skype™ to sila
sila
Member
Join Date: Jun 2009
Location: Krusevac
Old 06-15-2009 , 10:56   Re: [REQ] amx_pw instead typing amx_cvar sv_password
Reply With Quote #10

Quote:
Originally Posted by hleV View Post
Code:
#include <amxmodx> #include <amxmisc> public plugin_init() register_clcmd("amx_pw", "cmdPW", ADMIN_CVAR);

public cmdPW(iCl, iLvl, iCmd) { if (!cmd_access(iCl, iLvl, iCmd, 2)) return PLUGIN_HANDLED;

new szArg[32];
read_argv(1, szArg, 31);

set_cvar_string("sv_password", szArg);
console_print(iCl, "^"sv_password^" has been set to ^"%s^"", szArg);

return PLUGIN_HANDLED;
}

[ 48] unknown unknown unknown amx_pw.amxx runnin

Plugin works great. Can u make a normal say msg.

amx_pw "123"
[AMXX] sv_password is now "***PROTECTED***"
amx_pw "321"
[AMXX] sv_password changed to "321"
amx_pw "111"
[AMXX] sv_password changed to "111"
amx_pw "" or amx_nopw
[AMXX] sv_password is now "***UNPROTECTED***"
__________________

Last edited by sila; 06-15-2009 at 11:02.
sila is offline
Send a message via ICQ to sila Send a message via MSN to sila Send a message via Skype™ to sila
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 20:49.


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