Raised This Month: $ Target: $400
 0% 

[REQ] Server Password


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FuzionMonkey
Junior Member
Join Date: Jul 2004
Old 01-24-2008 , 23:20   [REQ] Server Password
Reply With Quote #1

Could someone make a plugin that will change the server password?

something like sm_password passhere
__________________
FuzionMonkey is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 01-25-2008 , 01:17   Re: [REQ] Server Password
Reply With Quote #2

Code:
#pragma semicolon 1

#include <sourcemod>

public OnPluginStart()
{
    RegAdminCmd("sm_password", Command_Password, ADMFLAG_PASSWORD, "sm_password <password>");
}

public Action:Command_Password(client, args)
{
    if (args < 1)
    {
        ReplyToCommand(client, "[SM] Usage: sm_password <password>");
        return Plugin_Handled;
    }

    new String:arg[255];
    GetCmdArgString(arg, sizeof(arg));

    ServerCommand("sv_password \"%s\"", arg);

    return Plugin_Handled;
}
bl4nk is offline
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 14:41.


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