Jump to content

5nine

Member
  • Posts

    82
  • Joined

  • Last visited

Posts posted by 5nine

  1. Hey,

    Im trying to get the server to do stuff (delete a marker basically) when a certain player disconnects.

    either

    _MEH_disconnect = addMissionEventHandler ["Handledisconnect",{
    	if ((_this select 3) == plyrname) then {dcname = (_this select 3)}; diag_log format ["%1 disconnected",(_this select 3)];
    	}];
    

    or

    ["Stacked_EH", "onPlayerDisconnected", {dcname = _name; diag_log format ["%1 disconnected",_name];}] call BIS_fnc_addStackedEventHandler;

    works. Its not even giving me an rpt error... Am i even close to using those eventhandlers correct? the documentation on the BIKI is not enough =(

     

    loop that is waiting for variable change is 

    waitUntil {_startTime + territory_time_limit > time or (getMarkerColor "TerritoryWars_dot" == "") or (dcname == plyrname); sleep 5;};

     

    Or is there a way for a script running clientside to exitWith {deletemarker "blablabla"}; when he disconnects?

  2. from what i recall it is only addactions attached to player that gets you kicked by epoch ah, not addactions attached to objects, in this case a vehicle (_cab), so it could be worth a shot if you change the method to call a cab, maybe attach an addaction to an object inside each trader instead?

  3. remind me, why do i even bother checking back on this thread? its NOT epoch antihack compatible! atleast read the first post before you attempt to install a script... 

     

    Im gonna help you anyway, use mgm's Transport for Arma instead, because IF you read his first post, it IS epoch AH compatible, but you might have to spent a couple of minutes configuring that script which might be to much for you lazy f-cker..

     

    edit: oh, i forgot to give you a link to mgm's thread, because searching is probably not for you now, is it? 

  4. edit this: 

    class RscTitles
    {
    
    #include "dialog\statusBar.hpp"
    
    class CfgNotifications
    {
    class cabtext
    {
    title = "Nibble Taxis";
    iconPicture = "\A3\ui_f\data\map\mapcontrol\taskIcon_ca.paa";
    color[] = {0.8,0.8,0,1};
    description = "%1";
    duration = 5;
    priority = 0;
    };
    };
    
    };
    

     into this:

    class RscTitles
    {
    
    #include "dialog\statusBar.hpp"
    };
    class CfgNotifications
    {
    class cabtext
    {
    title = "Nibble Taxis";
    iconPicture = "\A3\ui_f\data\map\mapcontrol\taskIcon_ca.paa";
    color[] = {0.8,0.8,0,1};
    description = "%1";
    duration = 5;
    priority = 0;
    };
    };
    
    
  5. I have a nice regular member who is quite vocal about his thoughts, he loves PvP, thinks with less explosives and harder bases it can get boring and he would make a perfect target for such a script :)

    My admins on the otherhand are all PvE, they wouldn't enjoy being hunted as much as the guy i have in mind. He wants a bit more excitement and this would do it.

     

    This can easily be done and I would gladly do it just press the spoiler below and donate what you think it is worth:

    Just kidding, got ya!

     

    In all seriousness, I cant think of a way to give a certain player the scroll action unless you add his GUID to a list, but that would be a pain.. Maybe something you can choose to do with your freq jammer? And also add a cost to it? Give me some ideas!

  6. Anyone work out the markers staying after the mission ends.. or for that matter how to make the mission end?  I run it just fine.. everything works but when I'm dead the mission persist and the marker stays until server restart. I've been so busy working on map stuff I haven't had the time to dive into this issue yet.

     

     

    Got everything working but 2 things... the admin map markers do not go away once killed and the mission does not end (probably tied together).  If after dying I restart the mission it works but the old markers do not disappear and then no new markers are placed showing my location.

     

    Yes, im terribly sorry about that, i made a mistake when I introduced marker_refreshtime. A fix has been pushed to github

  7. Does the marker stay over the admin all the time or does it refresh every X seconds?

     

    It refreshes, every 5 seconds if i remember correctly.

     

    After testing this script out, using the built in init file is crap.

    use/add the on player respawn files and on player killed file in your mission pbo to ensure add and removal.

    However with this script as is the menus double and triple up allowing for multiple spawning in of reinforcements and if mission canceled only the last 3 ai are deleted and the rest kill you. lol

    But all in all thanks for the share and I might modify it to work properly and post it up

     

    Yeah it was pretty sloppy put together, I published a new version now, see first post

     

     

    added to server..dont get a scroll option for the admin hunt :/ <--- ignore

     

    xD i did not forget to put the ID in the admin id part :P

     

    so added admin IDs and still does not work...is this just a mouse scroll option?

     

    Try the new version, it has better code to add the scroll option

  8. i know.

    but why I have this error.

    the variable "cab1occupied" is defined inside the "NibbleGaming_taxis.pbo" that runs only serverside. 

     

    please check your rpt log for the line #NibbleGaming Taxis: Published client variables

     

    if you cant find it, you did something wrong when compiling your pbo

  9.  

    When  I seat at the cab I have kik with "BE: Script Restriction #40 ". In the scripts.log:

    *........ #40 "able ["cabdest",0]>0} or {gotout}; removeAllActions _cab;

    deletemarkerLocal _name1;
    deletemarkerLocal _name2;
    deletemarkerLocal "*
    Help Me please
    (Sry my English)

     

     

     

    Search it's a great tool my friend  

     

     

    He has only 1 post. He learned how to post so far. Search training starts at post 10 :)

     

    It was actually me who screwed up, i forgot to add that exception when I edited the first post. fixed now

  10. You need to add the whole line from the log to the txt. Tbh it might be better to avoid function words such as call spawn etc in your vars, makes life a lot easier ;)

     

    you are absolutely right, It's changed now. I also updated first post with link to github instead of dropbox. 

     

    I actually knew this since I had a player named "Callis" who always got kicked when entering a trader safezone on my dayz epoch server =)

  11. i remove "call" from line 1 at publicvariableval.txtoriginal

    but again i have the restriction

     

    the file publicvariableval.txtoriginal is not used, you need to add the exceptions in publicvariableval.txt 

    and dont remove "call" from that file, add exceptions instead, otherwise your server will be vulnerable 

  12. I know 5nine won't mind as he has been tremendously kind and friendly already PM'd me & offered help on it so I can say this here...

     

    I am creating another taxi script, customization is one of the main design goals, you will be able to change taxi fixed destination position, name, icon everything from one master config file. << this is if you prefer "taxi fixed destinations only" service mode.

     

    however, as an alternative, I am planning to add a click-n-go feature so you won't have to add any waypoints. player will hit M to open map, click anywhere on map (must be mainland though, taxis can't fly - just yet) and it will take the player somewhere about there. I haven't started writing this feature yet though so it might take a while. currently I am working on access control lists to control access to realtime map marker updates.

    admins should have totalOmniscience seeing all details of all taxis anwhere on the map whereas players should see only see vehicles that are serving them.

     

    Im really looking forward to see this =) And as I said, you are more than welcome to use any part of my script. 

×
×
  • Create New...