[Release] Simple timed messages plugin

InfinityScript plugins for dedicated servers.
User avatar
szczurcio
TeknoHorse
TeknoHorse
Posts: 568
Joined: Sun Nov 17, 2013 8:31 am
Location: iw5mp.exe

[Release] Simple timed messages plugin

Postby szczurcio » Wed Jan 08, 2014 1:52 pm

Hey,
since IAM is stupid and only allows one timed_messages.txt file for all your servers I've made a really simple timed messages plugin.

How this works:

1) Download and extract the zip file
2) Put TMes.dll in your scripts folder
3) Make a "tmes" folder in your scripts folder
4) In the "tmes" folder, create a plaintext (.txt) file with your timed messages. You can of course use color codes (^3 and so on)
5) Now in your server set 3 dvars: tmes_file (the file, with extensions), tmes_interval (how often the messages will be "said", in seconds) and tmes_prefix (the prefix for the messages, could be a color code or your clan name).


HOW TO SET DVARS:

in server.cfg:

seta tmes_file <filename>

same for tmes_interval and tmes_prefix.

Now reboot your server, loadScript "TMes.dll" and enjoy :).
You do not have the required permissions to view the files attached to this post.
nastyboy
TeknoRat
TeknoRat
Posts: 19
Joined: Sun Oct 27, 2013 10:33 am

Re: [Release] Simple timed messages plugin

Postby nastyboy » Thu Jan 09, 2014 1:15 pm

works grate with the rcon fix
TeknoMW3 2.7.1.3 Server Files Download

TeknoMW3 2.7.0.1 To 2.7.0.3 Update
User avatar
[XtrM] xilonor
TeknoHorse
TeknoHorse
Posts: 909
Joined: Mon Oct 28, 2013 6:08 am
Location: France, Lyon, Rhône-Alpes
Contact:

Re: [Release] Simple timed messages plugin

Postby [XtrM] xilonor » Thu Jan 09, 2014 2:39 pm

Not Worked for me.

[ScriptLoader::LoadAssembly] Loading script TMes v1.0.0.0
[ScriptLoader::LoadAssembly] An error occurred during initialization of the script TMes: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Input string was not in the correct format

at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0

at TMes.TMes..ctor () [0x00000] in <filename unknown>:0

at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)

at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

--- End of inner exception stack trace ---

at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0

at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0

at System.Activator.CreateInstance (System.Type type) [0x00000] in <filename unknown>:0

at InfinityScript.ScriptLoader.LoadAssembly (System.Reflection.Assembly assembly)
[XtrM] Xiloиoя™|╭☛ Team [XtrM] SkillZz ||Leader|
Crack GTA V Solo/Online + DLC: ╭☛ Here
User avatar
szczurcio
TeknoHorse
TeknoHorse
Posts: 568
Joined: Sun Nov 17, 2013 8:31 am
Location: iw5mp.exe

Re: [Release] Simple timed messages plugin

Postby szczurcio » Thu Jan 09, 2014 3:36 pm

[XtrM] xilonor wrote:Not Worked for me.


Just like the message says, the interval was not in a correct format. Which probably means you simply didn't set the dvar. If you did, make sure it is a positive integer
nastyboy
TeknoRat
TeknoRat
Posts: 19
Joined: Sun Oct 27, 2013 10:33 am

Re: [Release] Simple timed messages plugin

Postby nastyboy » Thu Jan 09, 2014 3:40 pm

in server.cfg add these

top of server.cfg
LoadScript "TMes.dll"

bottom of server.cfg
seta tmes_file "timedmessages.txt"
seta tmes_interval "16"
seta tmes_prefix "Console: " you can set this to what ever

in script folder make folder tmes and inside make txt file timedmessages.txt

easy as that.
TeknoMW3 2.7.1.3 Server Files Download

TeknoMW3 2.7.0.1 To 2.7.0.3 Update
User avatar
[XtrM] xilonor
TeknoHorse
TeknoHorse
Posts: 909
Joined: Mon Oct 28, 2013 6:08 am
Location: France, Lyon, Rhône-Alpes
Contact:

Re: [Release] Simple timed messages plugin

Postby [XtrM] xilonor » Tue Jan 14, 2014 1:13 am

nastyboy wrote:in server.cfg add these

top of server.cfg
LoadScript "TMes.dll"

bottom of server.cfg
seta tmes_file "timedmessages.txt"
seta tmes_interval "16"
seta tmes_prefix "Console: " you can set this to what ever

in script folder make folder tmes and inside make txt file timedmessages.txt

easy as that.


Thank you Very Much :) it's worked now ^^
[XtrM] Xiloиoя™|╭☛ Team [XtrM] SkillZz ||Leader|
Crack GTA V Solo/Online + DLC: ╭☛ Here
MeganMatthews
TeknoCricket
TeknoCricket
Posts: 5
Joined: Mon Feb 24, 2020 10:45 am

Re: [Release] Simple timed messages plugin

Postby MeganMatthews » Mon Feb 24, 2020 10:46 am

Thanks for the release!

Return to “InfinityScript”

Who is online

Users browsing this forum: No registered users and 3 guests