Player switchteam
From Fortress Forever Wiki
Jump to navigationJump to search
player_switchteam( player, current, desired )This function is called whenever a player tries to switch teams. Return true or false to allow/disallow. Inputsplayer(CFFPlayer) The player trying to change teams current team(integer) The team he's on now new team(integer) the team he's trying to switch to Examplesfunction player_switchteam( player, old, new ) -- No traitors. BroadcastMessageToPlayer(player, "Changing teams is not allowed.") return false end |