Raised This Month: $ Target: $400
 0% 

Change server pass...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Qlim4X
Member
Join Date: Jun 2007
Old 07-11-2007 , 00:20   Change server pass...
Reply With Quote #1

hi again

i want to make a script that can change the server password adn only other admins can see the pass and not the users

my admins dont have rcon access so they use amx_cvar sv_password and all the players can see the pass

so i need to creat a script that can change the pass just typing in the console pro_pass mypass
any ideas????

thx

this is my try but have problem when press to time the same password
Quote:
/* AMXMOD X script.
*
* (c) Copyright 2007 Qlim4X
* This file is provided as is (no warranties).
*
* For #Pro.Gather in GrNet. Internal use only.
*
*/
#include <amxmod>
#include <amxmisc>

public plugin_init()
{
register_plugin("pro.gather ChangePass","1.0","qlim4x")
register_concmd("pro_pass","set_password",ADM IN_BAN,"<password>")
register_cvar("sm_password","scrim",FCVAR_ARC HIVE|FCVAR_PROTECTED)
return PLUGIN_CONTINUE
}


public set_password(id, level, cid)
{
if(!cmd_access(id,level,cid,1))
return PLUGIN_HANDLED
new set_pass[32]
read_argv ( id, set_pass, 31 )
set_cvar_string ( "sv_password", set_pass )
return PLUGIN_HANDLED
}

Last edited by Qlim4X; 07-11-2007 at 04:07.
Qlim4X is offline
 


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 21:27.


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