• Print

Author Topic: Use the jail command  (Read 4260 times)

0 Members and 1 Guest are viewing this topic.

Offline simpleee

  • Newbie
  • *
  • Posts: 13
  • Karma: 1
Use the jail command
« on: December 22, 2013, 12:09:29 pm »
hello,
how can i use the jail comand with lua? And how the Slap? Something like this?  :
Code: [Select]
RunConsoleCommand( "ulx", "slap", target_plys)
Thx
« Last Edit: December 22, 2013, 01:29:02 pm by simpleee »

Offline Cobalt

  • Full Member
  • ***
  • Posts: 216
  • Karma: 44
  • http://steamcommunity.com/id/__yvl/
Re: Use the jail command
« Reply #1 on: December 22, 2013, 02:43:23 pm »
assuming target_plys is a table already defined,

Code: Lua
  1. for i=1, #target_plys do
  2. RunConsoleCommand( "ulx", "slap", target_plys[i]:Nick() )
  3. end

Or you can use ULib.slap.

  • Print