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

How to use ServerCommand in C#?

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

I want to use commands like dropclient etc in C#

Sorry for asking such a noob question. This is because there are no documentation for InfinityScript. Nukem's server Addon was documented and nicely organaized with examples etc.. that made me learn a lot and use functions with ease. Please do the same if you have free time. (PLEASE!)

BTW, I'm using InfinityScript because Nukem's addon is not supported otherwise I won't even look at it (Even though it is SO AWESOME but rewriting all my codes to it is a lot of work >_<)

I tried to search for ServerCommand and found only an event OnServerCommand and couldn't deal with it. --> noob

Again, please make a documentation. Pleeeease!

Edit:

I know now it's Utilities.ExecuteCommand(""); I found it in an old post.

Featured Replies

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

Well InfinityScript does not need to be documented since the source is in your iw5m folder.

You can check how the functions work there.

 

Other functions you can Call(""); are just GSC functions

Most of them are documented here: http://zeroy.com/script/

If not you can look for them in the GSC codes yourself

Опубликовано:
  • Автор

From Utilities.cs:

public static void ExecuteCommand(string command)

{

GameInterface.Cbuf_AddText(command + "\n");

}

How in the world can I know that this command is a servercommand?

 

public static Entity AddTestClient()

{

var entref = GameInterface.AddTestClient();

 

if (entref == 0)

{

return null;

}

 

return Entity.GetEntity(entref);

}

What in the world is this for god sake? I have absolutely no idea.

I believe it's important to have documentation. At least the usage of each function and a little example.

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

ExecuteCommand executes something on the server. I.e. Utilities.ExecuteCommand("quit") and you put that on an event such PlayerConnected and it will close the server the second the client is connected.

 

https://www.assembla.com/code/qczm-iw5/subversion/nodes

Опубликовано:
  • Автор
ExecuteCommand executes something on the server. I.e. Utilities.ExecuteCommand("quit") and you put that on an event such PlayerConnected and it will close the server the second the client is connected.

 

https://www.assembla.com/code/qczm-iw5/subversion/nodes

Thank you. I'll try to understand the codes. Open source projects help a lot.

Anyway, try to make a documentation for InfinityScript.. it will be good.

Опубликовано:
Anyway, try to make a documentation for InfinityScript.. it will be good.

ayee.jpg

Couldn't agree more.

 

also

 

>ServerCommand

>opened thread in hope for the server command hook

>topic was about executecommand instead

>not impressed

Join the conversation

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

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

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

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

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

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

Account

Navigation

Поиск

Поиск

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.