Es.changeteam

From EventScripts Community Encyclopedia
This article is a stub. Please help by adding to it.



Method: changeteam

Module: es
Class: (no class)
EventScripts version: 2.0

Method Overview

Table of Contents

Contents


Description

Forces a player to move to another team. This is the Python equivalent of: http://www.eventscripts.com/pages/es_changeteam

Arguments

  • userid - The userid of the player to switch.
  • teamnum - The team # you want the player to switch to.
    • 1 - Spectators
    • 2 - Terrorists
    • 3 - Counter-Terrorists


Examples

def player_say(event_var):
    if event_var["text"] == "gospec":
        player = event_var["userid"]
        es.changeteam(player,'1')

Notes

  • You can use this command to switch the user to any team. This will make it so it slays the player, then makes him pick a class.


See Also

blog comments powered by Disqus