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

[Help] Problem building my .dll (script)

Featured Replies

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

Add:

 public List PlayerStop [img][/img]= new List();

At the top. Also you're not follow how it's supposed to be.

 

6a9498b2f69fad7ac01d57b38875fbcb.png

It's somewhat supposed to look like that.

 public List PlayerStop [img][/img]= new List();

goes below basescript and then everything else is after base()

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

To be honest man, i'm completely confused and have no idea what I am doing.

 

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

namespace ClassLibrary1
{
   public class Nades : BaseScript
   {
       public bool Nades(Entity player, int amount)
       {
           if (PlayerStop.Contains(player.GetField("name")))
               return false;
           var offhand = player.Call("getcurrentoffhand");
           player.Call("setweaponammoclip", offhand, amount);
           player.Call("givemaxammo", offhand);
           return true;
       }
   }
}

 

That is what I have so far, if you don't mind showing me what the problem is, that would be awesome.

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

Hahaha, alright. Ill just try throwing some things together and if I still cant get it, ill looks at some tutorials.

But I should be using the code you gave for the unlimited nades right? If so, where would i put the second part?

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

All code starts in the constructor for the class which should extend BaseScript and call base() in the constructor. Also, you need to define PlayerStop somewhere... Are you trying to use it as a list of players or as an individual player. I would suggest you look at the examples in scripts/src/examples

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.