ETMods.net

N!tmod, a Wolfenstein: Enemy Territory Modification!

You are not logged in.

Announcement

You can donate to help us keeping services online.

#1 28-Jan-12 11:28:30

HK_Delirium
BETA Tester
From: France
Registered: 01-Jun-10
Posts: 18
Website

Custom command for "only headshot mode"

Hi

On N!tmod 2.1RC1 (2.6b server), I'm trying to create a custom command in order to switch between an only headshot mode and the classic aiming mode.

I've tested some commands but no one worked.

ex :
[command]
command = headshoton
exec = /set g_headshot 1
desc = only headshot
levels = 4 5 6

[command]
command = headshotoff
exec = /set g_headshot 0
desc = only headshot off
levels = 4 5 6

OR

[command]
command = headshoton
exec = /rcon **** set g_headshot 1
desc = only headshot
levels = 4 5 6

[command]
command = headshoton
exec = /rcon **** set g_headshot 1
desc = only headshot
levels = 4 5 6

I need some help to make it work, beacause it's a very usefull command for my server.

Thanks

Offline

#2 28-Jan-12 15:38:43

LSD_WoL
Moderator
Registered: 19-Apr-10
Posts: 44
Website

Re: Custom command for "only headshot mode"

Try:

[command]
command = headshoton
exec = g_headshot 1
desc = only headshot
levels = 4 5 6

[command]
command = headshotoff
exec = g_headshot 0
desc = only headshot off
levels = 4 5 6

Offline

#3 05-Mar-12 21:06:31

HK_Delirium
BETA Tester
From: France
Registered: 01-Jun-10
Posts: 18
Website

Re: Custom command for "only headshot mode"

It works perfectly.
Thanks WoL

Offline

Board footer

Powered by FluxBB