Author Topic: disable player team changing  (Read 868 times)

0 Members and 1 Guest are viewing this topic.

Offline -Snowy-

  • Major(1)
  • Posts: 44
    • Snowy
disable player team changing
« on: December 26, 2007, 05:13:20 am »
if anyone has played my zombie script in the script release section they may notice that in the team game mode, people can change teams using the esc menu buttons, giving them the ability to go from zombie to human and vis versa when they shouldnt. ive tried doing some onteamchange stuff but unfortunately it doesnt differentiate between a team change using the menu and a team change using /setteam. im curious to know if there is a way to detect the difference, change teams using a different code that the onteamchange procedure doesnt detect, or to disable changing teams with the menu altogether.

Offline JupiterShadow

  • Camper
  • ***
  • Posts: 269
  • MS Paint + Adobe Lighting effects FTW!
    • 55274-640-8484137-23948
Re: disable player team changing
« Reply #1 on: December 26, 2007, 05:18:57 am »
There was a script on a soldat climb server, (I forgotten its name) Where when you change teams, via esc menu, the server will automaticly change you back to the team you were originally on.

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Re: disable player team changing
« Reply #2 on: December 31, 2007, 07:26:19 pm »
just save the team the player should be on is a var. And then in OnJoinTeam check if the values match.