Jump to content

X060T

Member
  • Posts

    23
  • Joined

  • Last visited

Posts posted by X060T

  1. vbawol, what about this:
    server_cleanupGroups = {
    if (DZE_DYN_AntiStuck3rd > 3) then { DZE_DYN>
    17:20:28   Error position: <DZE_DYN_AntiStuck3rd > 3) then { DZE_DYN>
    17:20:28   Error Undefined variable in expression: dze_dyn_antistuck3rd
    17:20:28 File z\addons\dayz_server\init\server_functions.sqf, line 773
    17:20:28 "get: STRING (5758084), sent: STRING (5758084)"
    17:20:28 "DISCONNECT: X060T (5758084) Object: B 1-1-C:1 (X060T) REMOTE, _characterID: 2 at loc [8855.76,2836.05,0.00172424]"
    17:20:28 Client: Remote object 5:11 not found
    17:20:29 Warning: Cleanup player - person 5:10 not found
    17:20:31 Error in expression <ck") exitWith {  DZE_DYN_AntiStuck2nd = DZE_DYN_AntiStuck2nd + 1;};
    DZE_DYN_Hack>
    17:20:31   Error position: <DZE_DYN_AntiStuck2nd + 1;};
    DZE_DYN_Hack>
    17:20:31   Error Undefined variable in expression: dze_dyn_antistuck2nd
    17:20:31 File z\addons\dayz_server\init\server_functions.sqf, line 787
    17:20:31 Error in expression < = nil;
    };
    
    server_checkHackers = {
    if (DZE_DYN_AntiStuck2nd > 3) then { DZE_DYN>
    17:20:31   Error position: <DZE_DYN_AntiStuck2nd > 3) then { DZE_DYN>
    17:20:31   Error Undefined variable in expression: dze_dyn_antistuck2nd
    17:20:31 File z\addons\dayz_server\init\server_functions.sqf, line 786
    17:20:31 Error in expression <up") exitWith {  DZE_DYN_AntiStuck3rd = DZE_DYN_AntiStuck3rd + 1;};
    DZE_DYN_Grou>
    17:20:31   Error position: <DZE_DYN_AntiStuck3rd + 1;};
    DZE_DYN_Grou>
    17:20:31   Error Undefined variable in expression: dze_dyn_antistuck3rd
    17:20:31 File z\addons\dayz_server\init\server_functions.sqf, line 774
    17:20:31 Error in expression <y]);
    };
    };
    

    v.1.0.4.,

    Map chernarus

    Antihack InfiStar

  2. Hi, all!

     

    I would like to offer you an idea of ​​the script. I'd like to create the area on the map (may be island or locked castle tower) which will be use like the jail. If you want to punish the player for breaking server rules or cheating, then you put it in the jail instead of giving ban.Creating of custom area is rather easily in 3D editor, not as easy as the spawn code.arma2oa_2014_01_22_17_56_31_183.jpgarma2oa_2014_01_22_17_57_14_350.jpg
    So, for creating such script we need some custom spawn location code whith the list UIDs which would call from data base table, because adding  of banned and punished players would be easy.

    Installation:
    ------------------------------------------------------------------​
    1. Go into PHPmyAdmin.​
    2. Click on your database name ( Usually dayz_epoch)
    3. Click on SQL at the top.
    4. Now in the SQL input box paste the below code:​
     
    CREATE TABLE `cust_spawn` (
    `PlayerUID` INT(10) NULL DEFAULT NULL,
    `worldspace` VARCHAR(50) NULL DEFAULT NULL
    )
    COLLATE='utf8_general_ci'
    ENGINE=InnoDB;
    Now click OK.​
    The above code will create a new "cust_spawn" table into the DB.​
    5. Now click "clear" on the SQL page.​
    6. Paste the below code into the SQL page like before:​
     
    CREATE TRIGGER `custom_spawn`
      BEFORE INSERT ON `character_data`
      FOR EACH ROW
    BEGIN
    DECLARE x INT;
    DECLARE y varchar(50);
    SET x = (SELECT `PlayerUID` FROM `cust_spawn` WHERE `PlayerUID`=NEW.PlayerUID);
    SET y = (SELECT `worldspace` FROM `cust_spawn` WHERE `PlayerUID`=NEW.PlayerUID);
    IF NEW.PlayerUID = x THEN
    SET NEW.worldspace=y;
    END IF;
    END;$$
    Before clicking "ok" paste " $$ " into the delimiter box just below the sql box, Now click ok.​
    Now you have made your custom spawn table with the custom spawn point trigger clear.png
    To setup a custom spawn point go into your new "cust_spawn" table on the left side, Click on "Insert" at the top and paste the UID of the player and enter the location you want them to spawn.​
    Example of location coords to paste are below:​
     
    [268,[8627.69,12631.1,0.002]]

    P.S. sorry 4 my English;)

×
×
  • Create New...