Jump to content

farooqaaa

Member
  • Content Count

    46
  • Joined

  • Last visited

  • Medals

Posts posted by farooqaaa


  1. According to Arma 2 Wiki the player event "HandleDamage" should process the damage returned from that event but it's not working in Arma 3 and damage is handled by the engine no matter what this event returns.

    Example code:

    player addEventHandler ["HandleDamage", { _damage = 0; _damage; }];
    

    I know that I can set allowDamage to false to stop the player from taking damage but that's not what I want to do. I want to customize the damage before it is processed.

    Can anyone help? How does Arma 3 handle this event?

    Thanks


  2. I think that it is rediculous to kick or ban people from servers due to a recent release where servers seem to crash when players throw grenades.

    I am sure that you can come up with a better way in order to prevent players from using grenades..

    It's not ridiculous if even the server name has "No grenades!" appended to it and you are warned when you spawn each time.


  3. New Arma 3 update brought a new bug. Throwing grenades will crash your server. I'm not sure when this will be fixed so I need to way to keep order on my server.

    How can I kick or ban a player automatically that throws grenades?

    I have got the throwing grenades part right. I have added an antigrenade script to all my missions and it warns the user but how can I tell the server to kick/ban the player?

    If that's not possible then how can I stop players from throwing grenades?

    The only solution is to edit all missions and remove grenades but that's a lot of work.

    Thanks in advance.


  4. Thanks a lot. I never thought about that. That clears the server messages part.

    But for other stuff I need a while loop going which for some reason doesn't work.

    I did put it in the area and the code worked too but it wasn't running as a loop, just once.

    My code also had a few sleep calls which were supposed to be executed after a minute but they all executed at once.


  5. The only one that seems to be working so far is the Zeu Server Briefing addon.

    How would I go about doing this: https://dev-heaven.net/projects/serversidescripting/wiki/Example_Messaging

    That shows regular messages to clients that are connected to your server but it's working.

    I have added it inot the Zeu code but still now luck.

      _handle = []ExecVM "\userconfig\zeu\zeu_A3serverBriefing.hpp";
     waitUntil {scriptDone _handle};
     {Publicvariable _x}foreach ["ZEU_SERVERTITLE",  "ZEU_SERVERINFO"];
     if ( isServer ) then
     {
    
    _init = '
    if ( !isDedicated ) then 
    {
    	zeu_serverbriefing = this;
    	[] spawn {
    
    		waitUntil { (!isNull player) && (! isnil "ZEU_SERVERTITLE") && (! isnil "ZEU_SERVERINFO")};
    		player createDiarySubject ["zeu_serverPage",ZEU_SERVERTITLE];
    		player createDiaryRecord ["zeu_serverPage",["Server Info",ZEU_SERVERINFO]];			
    	};
    
    }';
    "logic" createUnit [[1,1,1], (createGroup sideLogic), _init, 0.5, "corporal"];
    
    " 
    [] spawn {
      		while {true} do {
       			hintSilent ""TeamSpeak IP : xx.xx.xx.xx"";
       			sleep 10;
       			hintSilent ""VoIP enabled"";
           		sleep 10;
           		hintSilent ""Any other information needed"";
       			sleep 300;
      		};
    };
    " call CreateLogicCode;
    
     };
    


  6. Disregard that. It's working now.

    ------------------------

    Does this work for dedicated servers? I have done everything but my players still not see it.

    Am I missing something?

    I have made a @zeu folder inside Arma 3 root and there's an "addons" folder inside it where I have put the .pbo file.

    I have added "-mod=@CBA_A3;@zeu" to the launch parameters too but still no luck.

×