Author Topic: Is there a ULib.cmds.PlayerArg for teams?  (Read 1935 times)

0 Members and 1 Guest are viewing this topic.

Offline Fleamonji

  • Newbie
  • *
  • Posts: 45
  • Karma: 0
Is there a ULib.cmds.PlayerArg for teams?
« on: April 03, 2011, 11:45:40 AM »
As the title suggests, for ULib.cmds.PlayerArg - is there an equivalent for teams?

EDIT:  Found the docs, doesn't appear to be one.  Would it be possible to make my own?

EDIT2:  Add some sorta ULib.cmds.TeamArg please :D
« Last Edit: April 03, 2011, 12:13:03 PM by Fleamonji »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Is there a ULib.cmds.PlayerArg for teams?
« Reply #1 on: April 03, 2011, 05:54:34 PM »
Rather than writing a new argument type for this, it seems that this would be better implemented as a string arg restricted to team names.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Is there a ULib.cmds.PlayerArg for teams?
« Reply #2 on: April 03, 2011, 06:39:52 PM »
Agreed.
Logic to it.
String = blue (a team),
within function, get all players, for each player, if player team name = blue, then do ...
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming