ServerName
#1

hi im trying to make a cmd "/servername [name]" so it changed servers name..get it??please help!

SendRconCommand
Reply
#2

anyone help??
Reply
#3

You dont need to do that.

Just type in this cmd in the game:

Код:
/rcon hostname "Your Server Name" //Without the quotes
Reply
#4

pawn Код:
COMMAND:svname(playerid,params[])
{
    new servername,string[150],Name[24],string2[200];
    GetPlayerName(playerid,Name,MAX_PLAYER_NAME);
    if(!IsPlayerAdmin(playerid)) return 1;
    if(sscanf(params,"s",servername)) return SendClientMessage(playerid,-1,"USAGE: /svname [name]");
    format(string,sizeof(string),"hostname %s",servername);
    SendRconCommand(string);
    format(string2,sizeof(string2),"Admin: %s changed the name of the server to: %s",Name(playerid),servername);
    SendClientMessageToAll(-1,string2);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)