Befehl bind

B1on1C
Hi Leute wollt mal fragen wie man einen Serverbefehl in der cfg einfügen kann, dass ich z.B. nur Z zum map restart drücken brauch. Wäre nett wenn mir da jemand helfen könnte. Habe es schon probiert aber hat nich ganz geklappt.

bind Z "/rcon map_restart"

MfG B1on1C campend
yoda
Das rconpassword muss natürlich hinterlegt sein, dann sollte es mit
bind Z "rcon map_restart"
gehen. (Ohne das / )
B1on1C
hmm klappt nich ganz. sagen wir mal das rcon heißt: cod

habe es schon mit folgenen bind probiert aber es klappt nicht unglücklich

bind Z "rcon cod map_restart"

bind Z "/rcon cod map_restart"

bind Z "cod map_restart"

bind Z "/cod map_restart"

probiert aber steht immer unbekannter Befehl

wenn ich im Game bin und per Console restarten will klappt es mit dem Befehl

/rcon cod map_restart

Wie meintest du das mit rcon hinterlegt das rcon pw was ich verwende ist das richtige.

Hoffe mir kann nochmal jemand helfen.

Greetz
yoda
Mal als Beispiel für den richtigen Ablauf:
PW = cod

Konsole öffnen, dann

Passwort eingeben:
/rconpassword cod
ENTER

Map restarten:
/rcon map_restart
ENTER

Müsstest dann also z. B.:

bind Z "rconpassword cod"
bind Y "rcon map_restart"

Bei mir klappt das ohne Probleme.
B1on1C
Danke dir hat geklappt smile
yoda
Gern geschehen smile
B1on1C
Doch nochmal ne frage bei der änderung des gametypes klappt das nich ganz unglücklich

Könntest du mir sagen wie d.h. THX

Also gametype tdm und gametype sd
yoda
Per Konsole?

TDM:

/rcon set g_gametype tdm
/rcon map_restart

oder

/rcon set gametype tdm
/rcon map_restart

S&D:

/rcon set g_gametype sd
/rcon map_restart

oder

/rcon set gametype sd
/rcon map_restart