Server name
#1

How can i change the server name just with a simple command? like if i did
/servername

server name could be for example: ServerName1


if they type /servername2 server name would change to servername2?

and they cant pick what they want it as.
only servername and servername2?

how would i do that?
Reply
#2

Something like this would do the trick, although i don't understand why would
you allow players to change your server hostname ...
pawn Код:
if(!strcmp(cmdtext, "/servername", true))
    {
        SendRconCommand("hostname ServerName1");
        return 1;
    }
    if(!strcmp(cmdtext, "/servername2", true))
    {
      SendRconCommand("hostname ServerName2");
      return 1;
    }
Reply
#3

ah, no, there not being able to, i have a command ready, and i was just thinking, if you change the server name with /rcon hostname.. you should be able to do a rcon send.

But yah,
Im setting it for a certain admin level where they can change it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)