Перейти к содержимому
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.

Featured Replies

  • 3 weeks later...
Опубликовано:
Thank you, i'm watch the movie, i think i can do the same.

 

ttthhhhaaaannnKKKKKSSSS

 

i want that movie you have it?

plz

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

After looking at momo5502's Welcome Message script released here -> viewtopic.php?f=40&t=10822

I've come up with this:

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace InfinityScript.Examples
{
   using InfinityScript;
   using System;

   public class namesv1 : BaseScript
   {
       public namesv1()
       {
           var config = File.ReadAllLines("scripts\\teams.txt");
           base.Call("setDvar", new Parameter[] { "g_teamname_allies", config[1] });
           base.Call("setDvar", new Parameter[] { "g_teamname_axis", config[0] });
           base.PlayerConnected += delegate(Entity entity)
           {
               entity.SetClientDvar("g_teamname_allies", config[1]);
               entity.SetClientDvar("g_teamname_axis", config[0]);
           };
       }
   }
}

 

So, you create on "scripts" folder, a file called "teams.txt", in wich you write something like:

^1-^0[^4TG^0]^1-^2Clan
^2Visitantes

In wich each line defines a team's name.

Much easier for server admins to change the team names without having to re-compile the script every time.

You can even change team names on a running server (changing on map restart, after saving the changes on the txt)

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

In which each line defines a team's name.

Much easier for server admins to change the team names without having to re-compile the script every time.

You can even change team names on a running server (changing on map restart, after saving the changes on the txt)

 

Now that is expansion of thoughts ! Wow and appreciate that.

  • 1 month later...
Опубликовано:
After looking at momo5502's Welcome Message script released here -> http://fourdeltaone.net/viewtopic.php?f=40&t=10822

I've come up with this:

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace InfinityScript.Examples
{
   using InfinityScript;
   using System;

   public class namesv1 : BaseScript
   {
       public namesv1()
       {
           var config = File.ReadAllLines("scripts\\teams.txt");
           base.Call("setDvar", new Parameter[] { "g_teamname_allies", config[1] });
           base.Call("setDvar", new Parameter[] { "g_teamname_axis", config[0] });
           base.PlayerConnected += delegate(Entity entity)
           {
               entity.SetClientDvar("g_teamname_allies", config[1]);
               entity.SetClientDvar("g_teamname_axis", config[0]);
           };
       }
   }
}

 

So, you create on "scripts" folder, a file called "teams.txt", in wich you write something like:

^1-^0[^4TG^0]^1-^2Clan
^2Visitantes

In wich each line defines a team's name.

Much easier for server admins to change the team names without having to re-compile the script every time.

You can even change team names on a running server (changing on map restart, after saving the changes on the txt)

thats very good but when release this script?

Опубликовано:
ICEBOY":3nx3azab]how to change team pic ?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using InfinityScript;

namespace InfinityScript.Examples
{
   using InfinityScript;
   using System;

   public class namesv1 : BaseScript
   {
       public namesv1()
       {
           var config = File.ReadAllLines("scripts\\teams.txt");
           base.Call("setDvar", new Parameter[] { "g_teamname_axis", config[0] });
           base.Call("setDvar", new Parameter[] { "g_teamname_allies", config[1] });
           base.PlayerConnected += delegate(Entity entity)
           {
			entity.SetClientDvar("g_teamname_axis", config[0]);
               entity.SetClientDvar("g_teamname_allies", config[1]);
               Call("setdvar", "g_teamicon_axis", config[2]);
               Call("setdvar", "g_teamicon_allies", config[3]);
           };
       }
   }
}

teams.txt

^1Team 1
^3Team 2
cardicon_tiger
cardicon_skull_black

Creadits to DidUknowiPwn for helping me with those two extra lines.

Опубликовано:
ICEBOY":i9olfiiq]how to change team pic ?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using InfinityScript;

namespace InfinityScript.Examples
{
   using InfinityScript;
   using System;

   public class namesv1 : BaseScript
   {
       public namesv1()
       {
           var config = File.ReadAllLines("scripts\\teams.txt");
           base.Call("setDvar", new Parameter[] { "g_teamname_axis", config[0] });
           base.Call("setDvar", new Parameter[] { "g_teamname_allies", config[1] });
           base.PlayerConnected += delegate(Entity entity)
           {
			entity.SetClientDvar("g_teamname_axis", config[0]);
               entity.SetClientDvar("g_teamname_allies", config[1]);
               Call("setdvar", "g_teamicon_axis", config[2]);
               Call("setdvar", "g_teamicon_allies", config[3]);
           };
       }
   }
}

teams.txt

^1Team 1
^3Team 2
cardicon_tiger
cardicon_skull_black

Creadits to DidUknowiPwn for helping me with those two extra lines.

tnx.i made it and work nice.

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

Hello !

 

If I want this code :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using InfinityScript;

namespace InfinityScript.Examples
{
   using InfinityScript;
   using System;

   public class namesv1 : BaseScript
   {
       public namesv1()
       {
           var config = File.ReadAllLines("scripts\\teams.txt");
           base.Call("setDvar", new Parameter[] { "g_teamname_axis", config[0] });
           base.Call("setDvar", new Parameter[] { "g_teamname_allies", config[1] });
           base.PlayerConnected += delegate(Entity entity)
           {
			entity.SetClientDvar("g_teamname_axis", config[0]);
               entity.SetClientDvar("g_teamname_allies", config[1]);
               Call("setdvar", "g_teamicon_axis", config[2]);
               Call("setdvar", "g_teamicon_allies", config[3]);
           };
       }
   }
}

teams.txt

^1Team 1
^3Team 2
cardicon_tiger
cardicon_skull_black

Where do I put it and in what file?

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

 

If I want this code :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using InfinityScript;

namespace InfinityScript.Examples
{
   using InfinityScript;
   using System;

   public class namesv1 : BaseScript
   {
       public namesv1()
       {
           var config = File.ReadAllLines("scripts\\teams.txt");
           base.Call("setDvar", new Parameter[] { "g_teamname_axis", config[0] });
           base.Call("setDvar", new Parameter[] { "g_teamname_allies", config[1] });
           base.PlayerConnected += delegate(Entity entity)
           {
			entity.SetClientDvar("g_teamname_axis", config[0]);
               entity.SetClientDvar("g_teamname_allies", config[1]);
               Call("setdvar", "g_teamicon_axis", config[2]);
               Call("setdvar", "g_teamicon_allies", config[3]);
           };
       }
   }
}

teams.txt

^1Team 1
^3Team 2
cardicon_tiger
cardicon_skull_black

Where do I put it and in what file?

compile it in a C# compiler

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

Ok but how ? With what?

Where to put files?

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

hi guys...

please help me...

1)i crate a new text

2)copy this writing in this text file:

namespace InfinityScript.Examples
{
   using InfinityScript;
   using System;

   public class namesv1 : BaseScript
   {
       public namesv1()
       {
           base.Call("setDvar", new Parameter[] { "g_teamname_allies", "teama" });
           base.Call("setDvar", new Parameter[] { "g_teamname_axis", "^4OTHER^1S" });
           base.PlayerConnected += delegate (Entity entity) {
               entity.SetClientDvar("g_teamname_allies", "teama");
               entity.SetClientDvar("g_teamname_axis", "^4OTHER^1S");
           };
       }
   }
}

3)save this names.dll

3)move to script folder in my server.

4)in my server.cfg add this line : loadscript "names.dll" and save .

**i run my server but this not changed? **

****PLEASE HELP ME****

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

namespace InfinityScript.Examples
{
   using InfinityScript;
   using System;

   public class namesv1 : BaseScript
   {
       public namesv1()
       {
           base.Call("setDvar", new Parameter[] { "g_teamname_allies", "^3[^1DC^3]^3{^1RuSHeR^3}" });
           base.Call("setDvar", new Parameter[] { "g_teamname_axis", "^2PLAYER^4S" });
           base.PlayerConnected += delegate (Entity entity) {
               entity.SetClientDvar("g_teamname_allies", "^3[^1DC^3]^3{^1RuSHeR^3}");
               entity.SetClientDvar("g_teamname_axis", "^2PLAYER^4S");
           };
       }
   }
}

 

its my team names.....

its true? :?:

please compile this for me :oops:

TNX guys... ;) .

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.