Author Topic: Can't use command that has player arg with target restrictions  (Read 1213 times)

0 Members and 1 Guest are viewing this topic.

Offline iSnipeu

  • Jr. Member
  • **
  • Posts: 83
  • Karma: 12
Code: [Select]
function ulx.example( calling_ply, target_ply )
target_ply:PrintMessage( HUD_PRINTTALK, "Worked!" )
end
local example = ulx.command( CATEGORY_NAME, "ulx example", ulx.example, "!example", true )
example:addParam{ type=ULib.cmds.PlayerArg, target="!^", ULib.cmds.ignoreCanTarget }
example:defaultAccess( ULib.ACCESS_ALL )
example:help( "Example Command" )

Attempting to call that from console (on a dedi) will do nothing.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: Can't use command that has player arg with target restrictions
« Reply #1 on: July 01, 2013, 10:27:23 AM »
May be something to do with self targeting from console, will look into it.
Experiencing God's grace one day at a time.