Black-Cell.net

  • December 17, 2018, 11:44:55 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: TF2 Playerlist Script  (Read 3268 times)

HeroKerr

  • Renegade Server Half-Moderator
  • Offline Offline
  • Posts: 1102
    • View Profile
TF2 Playerlist Script
« on: August 11, 2009, 09:44:11 PM »

Can't think of anywhere else I can ask so here goes.

I've got a TF2 server and i'm looking for a simple-ish script I can't think how to write.

Basically, my TF2 bot messages the channel this when a player joins: "(nick(can be more than 1 word)) joined Team (team)".

I need a script to record this information so a !pi/pl script will list the players ingame. Teams are blue, red and spectator.

All the messages needed: "(nick) [killstats] disconnected" "(nick) joined Team Spectator/Red/Blue"

I wanted the output to be similar to a renegade playerlist.

Red: Redteam
Blue: Blueteam
Spectator: Specteam

Hope someone can help.
Logged
Not all is lost the spirits shriek
You will be hunted WE SHALL SEEK
Perserverance, turn the page
Enter Shikari Enter Shikari

♫Enter Shikari - Enter Shikari♫

GodPower

  • Offline Offline
  • Posts: 686
    • View Profile
Re: TF2 Playerlist Script
« Reply #1 on: September 05, 2009, 04:32:34 PM »

Uuuh, you could write a script to track it of   on *:INPUT:  like you suggest I suppose, but it'd probably be rather easy for people to mess with. Like assuming your bot also displays ingame chat, all someone ingame would have to do is say "That idiot joined team red" and the bot would add "that idiot" as a player to the team red list 0_o
Since you already have a TF2 bot, wouldnt it be possible to build it into that?
(Yes, this was an epic fast only-a-month-late response :P)
Logged

Santa Claus

  • Renegade Division Leader
  • Offline Offline
  • Posts: 811
  • Egg098
    • View Profile
Re: TF2 Playerlist Script
« Reply #2 on: September 10, 2009, 07:58:03 PM »

something very simple from a very long time ago. there is a better way of doing it but i dont know where that script is so this will have to do unless i hope youve got something better.....as havoc said....late.


on *:TEXT:*:%servchan:{
  if ($nick isin $read(ircshun.txt, s, $nick)) { halt }
  else {
    if ($1 == !pl) { set -su5 %pl on | dde RenegadFDS FDSCommand Command player_info | timerplsend 1 2 plsend }
  }
}

on *:SIGNAL:FDS:{
  if ($1 isin %playerlimit) && (%pl == on) {
    if ($left($4,3) == GDI) { set -su5 %GDI %GDI $2 }
    if ($left($4,3) == Nod) { set -su5 %Nod %Nod $2 }
  }
}

alias plsend {
  if (%GDI == $null) && (%Nod == $null) { msg %servchan No players }
  else {
    msg %servchan 8GDI: %GDI
    msg %servchan 4Nod: %Nod
  }
}
Logged

HeroKerr

  • Renegade Server Half-Moderator
  • Offline Offline
  • Posts: 1102
    • View Profile
Re: TF2 Playerlist Script
« Reply #3 on: September 14, 2009, 12:59:42 AM »

Chars, got a bot from a St0rmServ admin that he wrote so all is good.

And sup egg.
Logged
Not all is lost the spirits shriek
You will be hunted WE SHALL SEEK
Perserverance, turn the page
Enter Shikari Enter Shikari

♫Enter Shikari - Enter Shikari♫

Santa Claus

  • Renegade Division Leader
  • Offline Offline
  • Posts: 811
  • Egg098
    • View Profile
Re: TF2 Playerlist Script
« Reply #4 on: September 25, 2009, 11:05:08 PM »

alright. hows things?
Logged

HeroKerr

  • Renegade Server Half-Moderator
  • Offline Offline
  • Posts: 1102
    • View Profile
Re: TF2 Playerlist Script
« Reply #5 on: September 30, 2009, 07:59:23 PM »

not too bad. just working and shit, you at reading festival?
Logged
Not all is lost the spirits shriek
You will be hunted WE SHALL SEEK
Perserverance, turn the page
Enter Shikari Enter Shikari

♫Enter Shikari - Enter Shikari♫

Vixenish

  • Sexy Teen Girl and Official BC Loli Rape Bike
  • Renegade Server Half-Moderator
  • Offline Offline
  • Posts: 489
    • View Profile
    • http://www.redvsblue.com
Re: TF2 Playerlist Script
« Reply #6 on: October 02, 2009, 08:56:37 PM »

I love you both...a lot. Don't judge me.
Logged

Santa Claus

  • Renegade Division Leader
  • Offline Offline
  • Posts: 811
  • Egg098
    • View Profile
Re: TF2 Playerlist Script
« Reply #7 on: October 03, 2009, 03:35:33 PM »

nah i didn't go this year, would've needed a couple of days off work on monday and tues to recover from it. gonna go next year now i'm earning my millions. you at uni yet?
Logged
Pages: [1]   Go Up