ULX

Author Topic: Force the !motd screen  (Read 3474 times)

0 Members and 1 Guest are viewing this topic.

Offline Deathtitan77

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 6
Force the !motd screen
« on: February 22, 2013, 09:00:15 AM »
A command to force the !motd screen on someone.

Offline nathan736

  • Full Member
  • ***
  • Posts: 143
  • Karma: 4
Re: Force the !motd screen
« Reply #1 on: February 22, 2013, 09:48:29 AM »
use 
function forceulx(target_plys)
for k,v inpairs (target_plys) do
v:concommand("ulx motd")
end
end
should be easy to add as a command 
ps: this is roughly what you would do
a person asked me how to code lua and i said this " its like building a rocket up side down then  realizing you did it all wrong."

Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
Re: Force the !motd screen
« Reply #2 on: February 22, 2013, 12:08:25 PM »
or you could just use the cexec to force the ulx motd command on the player.
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline Deathtitan77

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 6
Re: Force the !motd screen
« Reply #3 on: February 22, 2013, 01:56:42 PM »
Can I please have some instructions on how to force a motd screen on a player's screen using cexec?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Force the !motd screen
« Reply #4 on: February 22, 2013, 02:42:19 PM »
Not sure using xgui, but from game or server console, as superadmin (default),
ulx cexec <player> say !motd
or more sneakily
ulx cexec <player> ulx motd
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Deathtitan77

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 6
Re: Force the !motd screen
« Reply #5 on: February 23, 2013, 04:04:57 AM »
Thanks for the reply.