Server Password
#1

is there any command to change the server password on runtime?
Reply
#2

pawn Код:
dcmd_lockserver(playerid,params[])
{
    new string[156];
    if(AccInfo[playerid][Level] >= 4 || IsPlayerAdmin(playerid))
    {
        if(ServerInfo[Locked] == 0)
        {
        if(!strlen(params)) return
        SendClientMessage(playerid, white, "Usage: /lockserver [Password]") &&
        SendClientMessage(playerid, COLOR_SININE, "Command: Will server lock with specified Password");
        strmid(ServerInfo[Password], params[0], 0, strlen(params[0]), 128);
        format(string, 128, "Server Password: %s ", params);
        return ShowPlayerDialog(playerid, DIALOG_TYPE_SERVLOCK, DIALOG_STYLE_MSGBOX, "Lock/Unlock Server", string, "Yes", "No");
        }
        else return SendClientMessage(playerid,red,"ERROR: Server is Locked!");
    }
    else return ErrorMessages(playerid, 1);
}
i use this Maybe it will help you
Reply
#3

well I was thinking about normal server password, when you want to connect to server from samp launcher :/
Reply
#4

Add this to your Server.CFG

passoword yourpassowrdhere

is that what you talking about?

Код:
This forum requires that you wait 120 seconds between posts. Please try again in 42 seconds.
Reply
#5

Server.cfg:

password [yourpassword]

In-Game:

/rcon password [yourpassword]
Reply
#6

Akira297 your damn fast i was about to say it
Reply
#7

he wanted to change the rcon password in game instead of just login in as rcon.

pawn Код:
/rcon rcon_password [PASSWORD] - Change the rcon's password
Reply
#8

Quote:
Originally Posted by leonardo1434
Посмотреть сообщение
he wanted to change the rcon password in game instead of just login in as rcon.

pawn Код:
/rcon rcon_password [PASSWORD] - Change the rcon's password
Negative. He stated the 'server's password' ~ Which I've already listed above.
Reply
#9

No, you can't change the server password in-game.
Unless you are using a custom made password system.
Reply
#10

Better you all look at this.

https://sampwiki.blast.hk/wiki/Controlling_Your_Server


Quote:
Originally Posted by Akira297
Посмотреть сообщение
Negative. He stated the 'server's password' ~ Which I've already listed above.
Quote:
Originally Posted by SEnergy
Посмотреть сообщение
is there any command to change the server password on runtime?
Are you blind or what?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)