pm to ops on connect
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

pm to ops on connect

Started by ??Empie??, 13 November, 2003, 02:13:39

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

??Empie??

Hi I need a simple script that PM's a message (in a .txt file) to every connecting operator. I feel kinda stupid that I can't make it myself, but it just wont work :( (and I cant find it on the board anywhere).

A script that pm's a message that is in the script to connecting operators will also do(, but its a message of 12 lines) :)

thx in advance!

klownietklowniet

Why don't you post the script you have been working on here. Then we can help you complete it and you learn some more scripting...  ;-)

Hint nr1:
-----------
   SendToOps(from, data) - Sends data to main chat of all operators
  from - nick of sending user or bot or anything
  data - string to send
  Ex.: SendToOps("Banner", "User XX has been banned.")
       Shows in mainchat of every operator User XX has been banned.

   SendPmToOps(from, data) - Sends private message to all operators from specified nick
  from - nick of user or bot who's sending the PM
  data - string to send

-- From Scripting.txt

Hint nr2:
-----------
   NewUserConnected()


Hint nr3:
-----------
   readfrom(filename)
   local line = read("*a'')
   readfrom()
[ > DC - UniteD < ]

??Empie??

Thx!

The reading from a file  I already have, I'll give it a try with the other hints added :)

Please give me a day, I will post the script here, working or not :)

klownietklowniet

[ > DC - UniteD < ]

SMF spam blocked by CleanTalk