Author Topic: Rename Script  (Read 3173 times)

Offline TGX-SpIkE

  • Rank: Private
  • *
  • Posts: 144
Rename Script
« on: July 11, 2009, 09:30:53 am »
When it is possible.

I think a good idea is a rename command. To rename other players. That would be cool. Is this possible?

Offline Joker{eXtreme}

  • Rank: Private
  • *
  • Posts: 6108
    • http://www.mycallofduty.com
Re: Rename Script
« Reply #1 on: July 11, 2009, 11:51:50 am »
It is very cool, I have it in the PST server ;)

We will see what we can do to put it in the other various mods

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: Rename Script
« Reply #2 on: July 11, 2009, 03:00:34 pm »
You can force a player to change his name in eXtreme+ RCON (in-game).
You can't set a name though. His name is changed to Unknown Soldier, which will be handled by the Unknown Soldier handler automatically.

Offline TGX-SpIkE

  • Rank: Private
  • *
  • Posts: 144
Re: Rename Script
« Reply #3 on: July 11, 2009, 03:15:41 pm »
Year, but better is this

rcon set name "number of playerslot" Penis

now Player "...." renamed to Penis^^

that is a dream in my mod^^

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: Rename Script
« Reply #4 on: July 11, 2009, 03:29:36 pm »
Are we talking about 2.4?

Offline Joker{eXtreme}

  • Rank: Private
  • *
  • Posts: 6108
    • http://www.mycallofduty.com
Re: Rename Script
« Reply #5 on: July 11, 2009, 03:48:05 pm »
Quote from: "TGX-SpIkE";p="28854"
Year, but better is this

rcon set name "number of playerslot" Penis

now Player "...." renamed to Penis^^

that is a dream in my mod^^

Yep, I know what you are talking about.

Pat I'll PM you the code, works fine in COD4 and CODWW right now

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: Rename Script
« Reply #6 on: July 11, 2009, 04:16:05 pm »
oki doki -- I'll fix him up with some 2.4 code

Offline TGX-SpIkE

  • Rank: Private
  • *
  • Posts: 144
Re: Rename Script
« Reply #7 on: July 13, 2009, 04:37:56 am »
Cna i fin somewhere a puplic script? Wanna have it for extreme 1.6^^

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: Rename Script
« Reply #8 on: July 13, 2009, 09:37:14 am »
Command monitor player rename script for eXtreme+ 1.6.
Replace existing _ex_cmdmonitor.gsc with new one.

Usage:

Login to server:
/rcon login <password>

Get player entity number:
/rcon status

Issue command to rename player:
/rcon set rename <playerent> <newname>

EDIT: deleted attachment

Offline TGX-SpIkE

  • Rank: Private
  • *
  • Posts: 144
Re: Rename Script
« Reply #9 on: July 14, 2009, 04:51:21 am »
Wow, nice, ok now its time for a little Donation, thank u.

Offline TGX-SpIkE

  • Rank: Private
  • *
  • Posts: 144
Re: Rename Script
« Reply #10 on: July 14, 2009, 05:25:21 am »
Ok, tested it now on my puplic server, but it renames all players Oo

I was the number 1 on rcon status

type rcon set rename 1 Test

and than everyplayer get the name test Oo

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: Rename Script
« Reply #11 on: July 14, 2009, 07:46:28 am »
Oops. That's what happens when you're testing code on your own.
Fixed file attached.

Offline TGX-SpIkE

  • Rank: Private
  • *
  • Posts: 144
Re: Rename Script
« Reply #12 on: July 14, 2009, 08:56:23 am »
I love u so :-*

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: Rename Script
« Reply #13 on: July 14, 2009, 11:48:15 am »
Thanks for the donation!