Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Do you want to be able to configure the font through the config? 88 пользователей проголосовало

  1. 1. Do you want to be able to configure the font through the config?

    • Don't care!
      15
    • No!
      5
    • Yes!
      107

Пожалуйста, войдите или зарегистрируйтесь для голосования в опросе.

Featured Replies

Опубликовано:
Is this good? :(

haven't tested if the plugin actually works though..

 

[scriptLoader] An error occurred during initialization of the script Message: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Array index is out of range.

 at Message.Message..ctor () [0x00000] in :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 :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 :0 

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

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

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

 at System.Activator.CreateInstance (System.Type type) [0x00000] in :0 

 at InfinityScript.ScriptLoader.LoadAssembly (System.Reflection.Assembly assembly) [0x00000] in :0

 

 

You probably don't have 5 lines in your message.txt file... ;)

  • Ответы 82
  • Просмотры 7,2k
  • Created
  • Последний ответ

Top Posters In This Topic

Опубликовано:
Aalalex":2kvv1vkz]
Is this good? :(

haven't tested if the plugin actually works though..

 

[scriptLoader] An error occurred during initialization of the script Message: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Array index is out of range.

 at Message.Message..ctor () [0x00000] in :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 :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 :0 

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

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

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

 at System.Activator.CreateInstance (System.Type type) [0x00000] in :0 

 at InfinityScript.ScriptLoader.LoadAssembly (System.Reflection.Assembly assembly) [0x00000] in :0

 

 

You probably don't have 5 lines in your message.txt file... ;)

 

Ah, yes.

:/

Thanks.

  • 2 weeks later...
Опубликовано:

Occassionally when players enter it shown welcome message to everyone, so have reported it showing on every player entering. Can you check it only shows to player connecting.

 

Are you also able to make it so the icon could be an image file

  • 2 weeks later...
Опубликовано:

Ummmmm I have a Question...

I wanna set a Icon, but i dont know where i have to Drop it? :?:

 

Another Question....

~>Can be any Image or you have some [special] Images List?

~>Type of Image?

Example: .jpg .icon .bmp

 

~>Size?

Example: 12 x 12 or 46 x 46

 

Sorry, if i did some Stupid Question.... but i wanna know and i didnt find any post talking about it :?

  • 2 weeks later...
Опубликовано:
@momo would you be so kind and upload the source? ;)

from ilspy:

using InfinityScript;
using System;
using System.IO;
namespace Message
{
public class Message : BaseScript
{
	public Message()
	{
		Log.Write(4, "Momo5502's Welcome Message Plugin loaded!");
		string[] settings = File.ReadAllLines("scripts\\message.txt");
		Log.Write(4, "Message set to:");
		Log.Write(4, "  1st Line: \"" + settings[0] + "\"");
		Log.Write(4, "  2nd Line: \"" + settings[1] + "\"");
		Log.Write(4, "  3rd Line: \"" + settings[2] + "\"");
		Log.Write(4, "Icon set to: \"" + settings[3] + "\"");
		int message_displayed = 0;
		base.Call("precacheShader", new Parameter[]
		{
			settings[3]
		});
		base.add_PlayerConnected(delegate(Entity entity)
		{
			message_displayed = 0;
			entity.add_SpawnedPlayer(delegate
			{
				if (message_displayed == 0)
				{
					HudElem elem = HudElem.CreateFontString(entity, "default", 2.5f);
					elem.SetPoint("CENTER", "CENTER", 0, -50);
					elem.SetText(settings[0]);
					HudElem text = HudElem.CreateFontString(entity, "default", 2f);
					text.SetPoint("CENTER", "CENTER", 0, -30);
					text.SetText(settings[1]);
					HudElem text1 = HudElem.CreateFontString(entity, "default", 1.75f);
					text1.SetPoint("CENTER", "CENTER", 0, -10);
					text1.SetText(settings[2]);
					message_displayed = 1;
					HudElem icon = HudElem.CreateIcon(entity, settings[3], 60, 60);
					icon.SetPoint("CENTER", "CENTER", 0, 30);
					icon.set_Alpha(1f);
					message_displayed = 1;
					entity.AfterDelay(5000, delegate(Entity Entity)
					{
						elem.SetText("");
						text.SetText("");
						text1.SetText("");
						icon.set_Alpha(0f);
					});
				}
			});
		});
	}
}
}

I am not developing, I merely dragged and dropped this file into ILSpy and copied the decompiled source. This post is completely without prejudice.

Опубликовано:
@momo would you be so kind and upload the source? ;)

from ilspy:

using InfinityScript;
using System;
using System.IO;
namespace Message
{
public class Message : BaseScript
{
	public Message()
	{
		Log.Write(4, "Momo5502's Welcome Message Plugin loaded!");
		string[] settings = File.ReadAllLines("scripts\\message.txt");
		Log.Write(4, "Message set to:");
		Log.Write(4, "  1st Line: \"" + settings[0] + "\"");
		Log.Write(4, "  2nd Line: \"" + settings[1] + "\"");
		Log.Write(4, "  3rd Line: \"" + settings[2] + "\"");
		Log.Write(4, "Icon set to: \"" + settings[3] + "\"");
		int message_displayed = 0;
		base.Call("precacheShader", new Parameter[]
		{
			settings[3]
		});
		base.add_PlayerConnected(delegate(Entity entity)
		{
			message_displayed = 0;
			entity.add_SpawnedPlayer(delegate
			{
				if (message_displayed == 0)
				{
					HudElem elem = HudElem.CreateFontString(entity, "default", 2.5f);
					elem.SetPoint("CENTER", "CENTER", 0, -50);
					elem.SetText(settings[0]);
					HudElem text = HudElem.CreateFontString(entity, "default", 2f);
					text.SetPoint("CENTER", "CENTER", 0, -30);
					text.SetText(settings[1]);
					HudElem text1 = HudElem.CreateFontString(entity, "default", 1.75f);
					text1.SetPoint("CENTER", "CENTER", 0, -10);
					text1.SetText(settings[2]);
					message_displayed = 1;
					HudElem icon = HudElem.CreateIcon(entity, settings[3], 60, 60);
					icon.SetPoint("CENTER", "CENTER", 0, 30);
					icon.set_Alpha(1f);
					message_displayed = 1;
					entity.AfterDelay(5000, delegate(Entity Entity)
					{
						elem.SetText("");
						text.SetText("");
						text1.SetText("");
						icon.set_Alpha(0f);
					});
				}
			});
		});
	}
}
}

I am not developing, I merely dragged and dropped this file into ILSpy and copied the decompiled source. This post is completely without prejudice.

I already got you can view it with .NET Reflector

Опубликовано:
  • Автор
@momo would you be so kind and upload the source? ;)

from ilspy:

using InfinityScript;
using System;
using System.IO;
namespace Message
{
public class Message : BaseScript
{
	public Message()
	{
		Log.Write(4, "Momo5502's Welcome Message Plugin loaded!");
		string[] settings = File.ReadAllLines("scripts\\message.txt");
		Log.Write(4, "Message set to:");
		Log.Write(4, "  1st Line: \"" + settings[0] + "\"");
		Log.Write(4, "  2nd Line: \"" + settings[1] + "\"");
		Log.Write(4, "  3rd Line: \"" + settings[2] + "\"");
		Log.Write(4, "Icon set to: \"" + settings[3] + "\"");
		int message_displayed = 0;
		base.Call("precacheShader", new Parameter[]
		{
			settings[3]
		});
		base.add_PlayerConnected(delegate(Entity entity)
		{
			message_displayed = 0;
			entity.add_SpawnedPlayer(delegate
			{
				if (message_displayed == 0)
				{
					HudElem elem = HudElem.CreateFontString(entity, "default", 2.5f);
					elem.SetPoint("CENTER", "CENTER", 0, -50);
					elem.SetText(settings[0]);
					HudElem text = HudElem.CreateFontString(entity, "default", 2f);
					text.SetPoint("CENTER", "CENTER", 0, -30);
					text.SetText(settings[1]);
					HudElem text1 = HudElem.CreateFontString(entity, "default", 1.75f);
					text1.SetPoint("CENTER", "CENTER", 0, -10);
					text1.SetText(settings[2]);
					message_displayed = 1;
					HudElem icon = HudElem.CreateIcon(entity, settings[3], 60, 60);
					icon.SetPoint("CENTER", "CENTER", 0, 30);
					icon.set_Alpha(1f);
					message_displayed = 1;
					entity.AfterDelay(5000, delegate(Entity Entity)
					{
						elem.SetText("");
						text.SetText("");
						text1.SetText("");
						icon.set_Alpha(0f);
					});
				}
			});
		});
	}
}
}

I am not developing, I merely dragged and dropped this file into ILSpy and copied the decompiled source. This post is completely without prejudice.

I already got you can view it with .NET Reflector

Cheaters... :lol:

Опубликовано:
@momo would you be so kind and upload the source? ;)

from ilspy:

I am not developing, I merely dragged and dropped this file into ILSpy and copied the decompiled source. This post is completely without prejudice.

Thank you.

EDIT: That code is not compilable. ILSpy doesn't decompile the code correctly. .NET Reflector works like a charm though.

Опубликовано:

Hmm HUD Icons seem to hate me, when I use the icon you used it works fine..

but when I want to use for example this one: specialty_longsprint_upgrade

its screws up and shows some strange blocky image :S

what am I doing wrong here? :(

Опубликовано:
Aalalex":3lzfveh6]Hmm HUD Icons seem to hate me, when I use the icon you used it works fine..

but when I want to use for example this one: specialty_longsprint_upgrade

its screws up and shows some strange blocky image :S

what am I doing wrong here? :(

maybe name of the icon is wrong.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.