Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
Sign in to follow this  
anap

Передача денег(SC v3.0)

Доброго времени суток! Вопрос в следующем, как убрать меню передачи денег у ботов?

if (_isMan and _isAlive and !_isZombie and !_isAnimal and !(_traderType in serverTraders)) then {
	if (s_givemoney_dialog < 0) then {
		s_givemoney_dialog = player addAction [format["Передать деньги %1", (name _cursorTarget)], "ZSC\actions\give_player_dialog.sqf",_cursorTarget, 3, true, true, "", ""];
	};
    } else {
	player removeAction s_givemoney_dialog;
	s_givemoney_dialog = -1;
    };

fb41e0915e0d.jpg

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Можно создать переменную в variables.sqf, в которую добавить массив из скинов ботов и сделать запрет показа меню передачи денег для них.

AI_Skins = ["First", "Second" ... ];
if (_isMan and _isAlive and !_isZombie and !_isAnimal and !(_traderType in serverTraders) and !(_typeOfCursorTarget in AI_Skins)) then {

Share this post


Link to post
Share on other sites



  • 0

Криво установили 3.0. ботам изначально нельзя передавать деньги.

Share this post


Link to post
Share on other sites
  • 0

Криво установили 3.0. ботам изначально нельзя передавать деньги.

Скорее всего из-за того, что я менял скины. + это DZAI, видимо ты говоришь про WAI.

Edited by anap (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Similar Content

    • By thessend
      Начну сначала.
      У меня стоит радиационная зона на скриптах перенесенная в мод( с добавлением агента и лечением) собственно при нахождении в зоне накапливаются агенты(логично,да) и есть от этих агентов лечение, тоже добавленное на основе витаминок сделанное которое при использовании убирает N кол-во агентов. Их в пачке 10 штук. 
      Суть темы в том, что при использовании этой самой таблетки остальные таблетки становятся зараженными сальмонеллой. Откуда она берется я так и не смог выяснить вообще. 
      Если нужна еще какая то информация - пишите, дополню. 
       
       
    • By BorizzK
      Ситуация такая
      В функцию надо передать 27 разнашерстных параметров
      если указывать больше 19 при запуске сервер крашит без крашлога и тп
      Передавать через массивы? вариант, но хотелось бы сделать красиво-красиво
       
      Взялся за класс Param
      прикинул - Param'сы бывают от 1 до 5 параметровые
      Значит можно передать 5 шт Param5 и 1 Param2
       
      Взялся тестить
      void FormingAreas() { private ref Param5<string, int, vector, float, int> MainParams; MainParams = new Param5<string, int, vector, float, int>("", 0, vector.Zero, 0.0, 0); MainParams.param1 = "AREA 1"; MainParams.param2 = 1; MainParams.param3 = vector.Zero; MainParams.param4 = 1.1; MainParams.param5 = 2; AddAreaParams(MainParams); }  
      Собственно ошибка возникает тут
       
      void AddAreaParams(Param p) { ref Areas Area = new ref Areas; //AreaMainParams Param AreaMainParams = Param.Cast(p); Area.name = AreaMainParams.param1; //318 строка Area.id = AreaMainParams.param2; Area.center = AreaMainParams.param3; Area.center[1] = GetGame().SurfaceY(Area.center[0], Area.center[2]); Area.radius = AreaMainParams.param4; Area.maxplayers = AreaMainParams.param5; Тут про компиляции ошибочка
      $CurrentDir://mpmissions//dayzOffline.chernarusplus//_MOD//StrikeAreas//StrikeAreasClass.c(318): Can't find variable 'param1'
       
      Можно конечно определить MainParams в классе и передавать через него вызывая AddAreaParams без параметров
       
      Но хотелось бы разобраться именно с таким вариантом
       
      Спасибо!
    • By almalk454
      Здравствуйте, в общем появилась необходимость передать данные на сервер, чтобы тот записал их в лог файл. Начал копать и наткнулся на PublicVariable, и PublicVariableServer. На сайте багемии говорится:
      Send the variable value to the server
      Т.е. послать переменную на сервер. В общем в необходимом файле я сделал так: 
       
      LOG_ = format["Testing: Player(%1)", (name player)]; publicVariableServer LOG_; А как отловить изменение или передачу этой переменной со стороны сервера?
       
       
       
  • Our picks

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.