12-14-2007, 01:31 AM | #1 |
Join Date: Dec 2007
Posts Rated Helpful 0 Times
|
what iam i doing wrong?
--ff_blah.lua
----------------------------------------------------------------------------- function startup() --Blueteam local team = GetTeam( Team.kBlue ) SetPlayerLimit( Team.kBlue, 2 ) team:SetClassLimit( Player.kCivilian, -1 ) --Redteam team = GetTeam( Team.kRed ) SetPlayerLimit( Team.kRed, 0 ) team:SetClassLimit( Player.kScout, 0 ) team:SetClassLimit( Player.kSniper, -1 ) team:SetClassLimit( Player.kSoldier, -1 ) team:SetClassLimit( Player.kDemoman, -1 ) team:SetClassLimit( Player.kMedic, -1 ) team:SetClassLimit( Player.kHwguy, -1 ) team:SetClassLimit( Player.kPyro, -1 ) team:SetClassLimit( Player.kSpy, -1 ) team:SetClassLimit( Player.kEngineer, -1 ) team:SetClassLimit( Player.kCivilian, -1 ) --yellowteam team = GetTeam( Team.kyellow ) SetPlayerLimit( Team.kyellow, 2 ) team:SetClassLimit( Player.kCivilian, -1 ) --greenteam team = GetTeam( Team.kGreen ) team:SetPlayerLimit( -1 ) end |
|
12-14-2007, 03:48 AM | #2 |
[AE] 0112 Ihmhi *SJB
Wiki Team
Fortress Forever Staff |
Please clearly state to us what the problem you are having is. Asking "What am I doing wrong?" and posting a bunch of Lua code is not going to get you much help.
What is wrong with the code? Does it not work when you load your map? Are the teams not working properly? Please be more detailed.
__________________
Anime: The Thread: Reloaded The one and only anime thread on these here forums. Select the pistol, and then, select your horse. |
|
12-14-2007, 03:51 AM | #3 |
Community Member
Server Owner
Beta Tester Forum Moderator Join Date: Mar 2007
Location: Hawthorne, California
Class/Position: Soldier/Spy/Scout Gametype: AvD Affiliations: :e0:Eternal Order Leader Posts Rated Helpful 12 Times
|
I think the Player Limits aren't working?
__________________
|
|
12-14-2007, 06:56 AM | #5 |
Fortress Forever Staff
Join Date: Sep 2007
Class/Position: O: Scout Affiliations: {NFO} - New Family Order Posts Rated Helpful 0 Times
|
Should the kyellow's be kYellow's?
|
|
12-15-2007, 12:05 AM | #6 |
Join Date: Dec 2007
Posts Rated Helpful 0 Times
|
sorry when i load the map the lua dont work i wanted to get 3 teams
blue team with only 2 players on the team and can be any class but civians red team with any amount of players and can only be civlians yellow team with only 2 players and can be any class but civians |
|
12-15-2007, 12:17 AM | #7 | |
Nutcracker
|
Quote:
If you want red to be only civilians, why have you restricted them from being any class but scout? Anyway, here's what you need: Code:
function startup() -- Set up team limits on each team SetPlayerLimit(Team.kBlue, 2) SetPlayerLimit(Team.kRed, 0) SetPlayerLimit(Team.kYellow, 2) SetPlayerLimit(Team.kGreen, -1) local team = GetTeam( Team.kBlue ) team:SetClassLimit( Player.kCivilian, -1 ) local team = GetTeam( Team.kRed ) team:SetClassLimit( Player.kScout, -1 ) team:SetClassLimit( Player.kSniper, -1 ) team:SetClassLimit( Player.kSoldier, -1 ) team:SetClassLimit( Player.kDemoman, -1 ) team:SetClassLimit( Player.kMedic, -1 ) team:SetClassLimit( Player.kHwguy, -1 ) team:SetClassLimit( Player.kPyro, -1 ) team:SetClassLimit( Player.kSpy, -1 ) team:SetClassLimit( Player.kEngineer, -1 ) team:SetClassLimit( Player.kCivilian, 0 ) local team = GetTeam( Team.kYellow ) team:SetClassLimit( Player.kCivilian, -1 ) end |
|
|
12-15-2007, 12:25 AM | #8 |
Join Date: Dec 2007
Posts Rated Helpful 0 Times
|
thanks man
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|