Author Topic: Getting a team...  (Read 3738 times)

0 Members and 1 Guest are viewing this topic.

ViXXoR

  • Goblin Pup
  • *
  • Posts: 1
  • Reputation: +0/-0
Getting a team...
« on: January 23, 2004 02:17 pm CST »
Hello,
I have been trying for a little while and I can't seem to find out how to find out what team a bot will be on right before he joins, I'm trying to set it's name based on what team it will be joining...

Thx
« Last Edit: December 31, 1969 06:00 pm CST by ViXXoR »
VX

Hersh

  • Elvin Legion
  • *****
  • Posts: 413
  • Reputation: +0/-0
(No subject)
« Reply #1 on: January 23, 2004 08:36 pm CST »
Maybe #getinfo shows the team?
And either way, its safe to assume the bot isn't going to be on your team, so just run in and kill it.

Hersh
« Last Edit: December 31, 1969 06:00 pm CST by Hersh »

I kissed a drunk girl on the lips.
This post, by its very length, defends itself against the risk of being read.

-eViL-

  • Minotaur Rager
  • ******
  • Posts: 880
  • Reputation: +0/-0
(No subject)
« Reply #2 on: January 23, 2004 08:43 pm CST »
leave it to eViL:

function onClientChangeTeam(%clientId, %team)
{
if(getClientbyName((%Name=Client::getName(%clientId))) == 0)
{
echo("Bot: " @ %Name @ " Joined Team " @ %Team);
}
}
« Last Edit: December 31, 1969 06:00 pm CST by -eViL- »
There's nothing ever wrong but nothing's ever right
Such a cruel contradiction

-Icer-

  • Elvin Legion
  • *****
  • Posts: 417
  • Reputation: +0/-0
(No subject)
« Reply #3 on: January 23, 2004 09:30 pm CST »
Quote from: "-eViL-"
leave it to eViL:

function onClientChangeTeam(%clientId, %team)
{
if(getClientbyName((%Name=Client::getName(%clientId))) == 0)
{
echo("Bot: " @ %Name @ " Joined Team " @ %Team);
}
}


Not everyone knows what that means.  :wink:
« Last Edit: December 31, 1969 06:00 pm CST by -Icer- »

-eViL-

  • Minotaur Rager
  • ******
  • Posts: 880
  • Reputation: +0/-0
(No subject)
« Reply #4 on: January 23, 2004 09:33 pm CST »
put it in autoexec.cs and it "should" work.  if you have presto or something else running, then it may not because presto is gay.
« Last Edit: December 31, 1969 06:00 pm CST by -eViL- »
There's nothing ever wrong but nothing's ever right
Such a cruel contradiction