PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Request for scripts => Topic started by: zreez on 13 February, 2009, 17:35:26

Title: a very simple 'Command Script'
Post by: zreez on 13 February, 2009, 17:35:26
We'll its like!!
a script! for ptokax 4.1.1

like When i enter the command like!!!

+newmotd

in the main chat!
the user should get a motd!!
and that motd can be updated daily!!!

plss

thanks in advance!
Title: Re: a very simple 'Command Script'
Post by: CrazyGuy on 13 February, 2009, 18:08:31
That's what textfiles are for :)
Write an motd in Notepad or any other texteditor and save it in your PtokaX/texts folder as "newmotd.txt"
Reload text files in PtokaX and voila +newmotd shows your text file.
Update it as many times as you like but remember to reload textfiles after you save your changes in the file  8)