Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 38
  1. #21
    Senior Member
    Join Date
    Nov 2013
    Location
    Nsw, Australia
    Posts
    399
    Quote Originally Posted by spampostingYT View Post
    You are awesome! Thank you

    Tested !addreserve etc. works fine

    A player has knifed me but he didn't show up in the ReservedSlot list...
    Gonna have a look at it this or next evening.

    Thank you!

    Greetings
    spampostingYT
    Yeah i havent had an admin being knifed yet.. but the simple testing i did with some text commands it was working..

    it does rely on having the %server_admins% being updated someplace in a script.. i remember awhile back you had one.. is it still there ??

    Code:
    On Say;Text !admins;say %server_admins%
    Add that code to the script and type !admins once you have spawned in and see if it reports 0 or a list of your admins .. if its 0 you will need to add

    Code:
    On Spawn;Admin;ServerFirst;Set %server_admins% %p%;End
    On Spawn;Admin;PlayerFirst;Set %server_admins% %p%,%server_admins%

  2. #22
    Nono, it's in there
    The player say message show up, but the name wasn't in the reserved slot list in ProCon.
    But it was just one time I've tried it, gonna check it out today.

    Thanks

    Greetings
    spampostingYT

  3. #23
    Senior Member
    Join Date
    Nov 2013
    Location
    Nsw, Australia
    Posts
    399
    yeah i found a few mistakes.. i was missing a few %'s.. this one below should work correctly.. soz about that

    Code:
    On Init;If %ini_PremiumSlot_Dayz% != %server_day%;Set %ini_PremiumSlot_Dayz% %server_day%;incr %ini_PremiumSlot_Day%
    On Spawn;Playerfirst;if %ini_PremiumSlots_%p%% > 0;if %ini_PremiumSlot_Day% > %ini_PremiumSlots_%p%%
       If %pcountrykey% == de;PlayerSay Dein Premium-Slot ist abgelaufen! Spende oder messer einen Admin auf ein Neues! 
       If %pcountrykey% != de;PlayerSay You premium slot has expired
       Exec reservedSlotsList.remove %p%;set %ini_PremiumSlots_%p%% 0
    
    On Kill;Weapon Melee;If %server_admins% contains %v%
       If %pcountrykey% == de;PlayerYell %p%, du hast soeben einen Admin gemessert! Du hast einen Premium Slot fuer einen Monat erhalten!
       If %pcountrykey% != de;PlayerYell %p%, you have knifed an Admin! 1 month Premium Slot for you!
       if %ini_PremiumSlots_%p%% >= 0;Exec reservedSlotsList.add %p%;Set %ini_PremiumSlots_%p%% %ini_PremiumSlot_Day% + 30
    
    On Say;Admin;Text !addreserve;TargetPlayer;Exec reservedSlotsList.add %t%;set %ini_PremiumSlots_%t%% -1;PlayerSay Added permanent reserve slot for %t%
    On Say;Admin;Text !removereserve;TargetPlayer;Exec reservedSlotsList.remove %t%;set %ini_PremiumSlots_%t%% 0;PlayerSay Removed permanent reserve slot for %t%
    there is a fair bit changed there but yeah this one appears to be working..

    ill blame notepad++... it was auto completing stuff for me and i didnt realise it was missing the final %'s in the variables... thats my excuse and ill stick to it... > >
    Last edited by LjMjollnir; 24-07-2014 at 08:02.

  4. #24
    Senior Member
    Join Date
    Nov 2013
    Location
    Nsw, Australia
    Posts
    399
    Ive noticed a small problem.. but will fix it

    at the moment its not adding the day correctly..
    Last edited by LjMjollnir; 25-07-2014 at 16:42.

  5. #25
    I just wanted to mention that

    Right now in the .ini file at the bottom I find this:

    Code:
    [PremiumSlot]
    Dayz=27
    [premiumslot]
    day=5
    [PremiumSlots]
    Player1=30
    Player2=30
    Player3=30
    Player4=30
    Player5=30
    Player6=30
    Player7=30
    Player8=30
    Player9=30
    Player10=30
    Player11=30
    Player12=30
    Player13=30
    (I've removed the actual player names for this forum post)

  6. #26
    Senior Member
    Join Date
    Nov 2013
    Location
    Nsw, Australia
    Posts
    399
    Yeah for some reason proconrulz is storing the day incorrectly.. (nowhere in the script is the day in lower case)..

    and that is causing the issue.. last couple of nights ive been testing with all the variables in lower case.. i generally only use lower case for proconrulz.. but since i had just modified your copy of it i left the caps in ..

    but yeah with all lower case it appears to be correct my end

    Code:
    [premiumslot]
    day=5
    dayz=27
    [premiumslots]
    kerky112=-1
    mitch_cap_5150=-1
    slot501=-1
    lualcot=-1
    Stryke_ACT=30
    Colonel_Stirling=-1
    TiedyeWarrior=30
    MOJOKOTA=-1
    Slimey_whos_hey=34
    190R=34
    Derangered=34
    XxX_AUSSIE_XxX=34
    Crusin_Rage=34
    NeoneXes=34
    Code:
    #             ADMIN GOT KNIFED ANNOUNCER
    On Spawn;Admin;ServerFirst;Set %server_admins% %p%;End
    On Spawn;Admin;PlayerFirst;Set %server_admins% %p%,%server_admins%
    
    
    On Init;If %ini_premiumslot_dayz% != %server_day%;Set %ini_premiumslot_dayz% %server_day%;incr %ini_premiumslot_day%
    On Spawn;Playerfirst;if %ini_premiumslots_%p%% > 0;if %ini_premiumslot_day% > %ini_premiumslots_%p%%
       If %pcountrykey% == de;PlayerSay I dont speak german so you'l need to translate this one :P
       If %pcountrykey% != de;PlayerSay You premium slot has expired
       Exec reservedSlotsList.remove %p%;set %ini_premiumslots_%p%% 0
    
    On Kill;Weapon Melee;If %server_admins% contains %v%
       If %pcountrykey% == de;PlayerYell %p%, du hast soeben einen Admin gemessert! Du hast einen Premium Slot fuer einen Monat erhalten!
       If %pcountrykey% != de; PlayerYell %p%, you have knifed an Admin! 1 month Premium Slot for you!
       if %ini_premiumslots_%p%% >= 0;Exec reservedSlotsList.add %p%;Set %ini_premiumslots_%p%% %ini_premiumslot_day% + 30
    
    On Say;Admin;Text !addreserve;TargetPlayer;Exec reservedSlotsList.add %t%;set %ini_premiumslots_%t%% -1;PlayerSay Added permanent reserve slot for %t%
    On Say;Admin;Text !removereserve;TargetPlayer;Exec reservedSlotsList.remove %t%;set %ini_premiumslots_%t%% 0;PlayerSay Removed permanent reserve slot for %t%

  7. #27
    Hi Guys,

    can it be so it does not compatible with BF4 and the procon version 1.4.2.3 ?

    A User will be type in the .ini file when he knifed an Admin or when i type !addreserve it will be too. So its fine it going. But when i will join on the server im in the Queue ?

    Any Idea ?

    Thanks and Greez

  8. #28
    Senior Member
    Join Date
    Nov 2013
    Location
    Nsw, Australia
    Posts
    399
    you'l either need to select the option for Aggressive join in procon or modify your startup.txt and add
    reservedSlotsList.aggressiveJoin true

  9. #29
    agressive join is always activate.

    this is what i have in Proconrulez:

    Code:
    On Init;
        Set %server_date% %ymd%Z;
        If %server_date% contains 2014;Set %server_year% 2014
        If %server_date% contains 2015;Set %server_year% 2015
        If %server_date% contains 2016;Set %server_year% 2016
    
        If %server_date% contains _01_;Set %server_month% Jan
        If %server_date% contains _02_;Set %server_month% Feb
        If %server_date% contains _03_;Set %server_month% Mar
        If %server_date% contains _04_;Set %server_month% Apr
        If %server_date% contains _05_;Set %server_month% May
        If %server_date% contains _06_;Set %server_month% Jun
        If %server_date% contains _07_;Set %server_month% Jul
        If %server_date% contains _08_;Set %server_month% Aug
        If %server_date% contains _09_;Set %server_month% Sep
        If %server_date% contains _10_;Set %server_month% Oct
        If %server_date% contains _11_;Set %server_month% Nov
        If %server_date% contains _12_;Set %server_month% Dec
    
        If %server_date% contains _01Z;Set %server_day% 01
        If %server_date% contains _02Z;Set %server_day% 02
        If %server_date% contains _03Z;Set %server_day% 03
        If %server_date% contains _04Z;Set %server_day% 04
        If %server_date% contains _05Z;Set %server_day% 05
        If %server_date% contains _06Z;Set %server_day% 06
        If %server_date% contains _07Z;Set %server_day% 07
        If %server_date% contains _08Z;Set %server_day% 08
        If %server_date% contains _09Z;Set %server_day% 09
        If %server_date% contains _10Z;Set %server_day% 10
        If %server_date% contains _11Z;Set %server_day% 11
        If %server_date% contains _12Z;Set %server_day% 12
        If %server_date% contains _13Z;Set %server_day% 13
        If %server_date% contains _14Z;Set %server_day% 14
        If %server_date% contains _15Z;Set %server_day% 15
        If %server_date% contains _16Z;Set %server_day% 16
        If %server_date% contains _17Z;Set %server_day% 17
        If %server_date% contains _18Z;Set %server_day% 18
        If %server_date% contains _19Z;Set %server_day% 19
        If %server_date% contains _20Z;Set %server_day% 20
        If %server_date% contains _21Z;Set %server_day% 21
        If %server_date% contains _22Z;Set %server_day% 22
        If %server_date% contains _23Z;Set %server_day% 23
        If %server_date% contains _24Z;Set %server_day% 24
        If %server_date% contains _25Z;Set %server_day% 25
        If %server_date% contains _26Z;Set %server_day% 26
        If %server_date% contains _27Z;Set %server_day% 27
        If %server_date% contains _28Z;Set %server_day% 28
        If %server_date% contains _29Z;Set %server_day% 29
        If %server_date% contains _30Z;Set %server_day% 30
        If %server_date% contains _31Z;Set %server_day% 31
    and

    Code:
    #             ADMIN GOT KNIFED ANNOUNCER
    On Spawn;Admin;ServerFirst;Set %server_admins% %p%;End
    On Spawn;Admin;PlayerFirst;Set %server_admins% %p%,%server_admins%
    
    On Init;If %ini_premiumslot_dayz% != %server_day%;Set %ini_premiumslot_dayz% %server_day%;incr %ini_premiumslot_day%
    On Spawn;Playerfirst;if %ini_premiumslots_%p%% > 0;if %ini_premiumslot_day% > %ini_premiumslots_%p%%
       If %pcountrykey% == de;PlayerSay Dein VIP-Slot ist abgelaufen
       If %pcountrykey% != de;PlayerSay Your VIP-Slot has been expired
       Exec reservedSlotsList.remove %p%;set %ini_premiumslots_%p%% 0
    
    On Kill;Weapon Melee;If %server_admins% contains %v%
       If %pcountrykey% == de;Say %p%, hat einen Admin gemessert! VIP-Slot fuer 7 Tage erhalten!
       If %pcountrykey% != de;Say %p%, has knifed an admin! 7 days VIP-Slot recived!
       if %ini_premiumslots_%p%% >= 0;Exec reservedSlotsList.add %p%;Set %ini_premiumslots_%p%% %ini_premiumslot_day% + 7
    
    On Say;Admin;Text /addreserve;TargetPlayer;Exec reservedSlotsList.add %t%;set %ini_premiumslots_%t%% -1;PlayerSay Added permanent reserve slot for %t%
    On Say;Admin;Text /removereserve;TargetPlayer;Exec reservedSlotsList.remove %t%;set %ini_premiumslots_%t%% 0;PlayerSay Removed permanent reserve slot for %t%
    Last edited by CoVeX; 29-07-2014 at 07:53.

  10. #30
    Senior Member
    Join Date
    Nov 2013
    Location
    Nsw, Australia
    Posts
    399
    @covex next time when placing code use code blocks [ code] [ /code] (no spaces between the []) makes things soo much easier to read and allows for proper copy/paste with proper formatting

    Check your Lists section in Procon there will be a reserve slot section and see if they are being added ..
    the script itself doesnt handle people joining.. im pretty sure that is handled by aggressive join..

    from the server docs
    Code:
    reservedSlotsList.aggressiveJoin <enabled> Set if the server should kick to make room for VIP 
    
    Request: reservedSlotsList.aggressiveJoin 
    Response: OK 
    Response: InvalidArguments 
    Effect: If set to true, a non-VIP player will be kicked to give room when a VIP enters the queue.

 

 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •