Raised This Month: $12 Target: $400
 3% 

[ANY] Night VIP


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mesharsky How2Kill
AlliedModders Donor
Join Date: May 2017
Location: Poland
Plugin ID:
8245
Plugin Version:
0.1
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Basic plugin to automatically give an admin flag to every player between specific hours of the day.
    Old 10-10-2022 , 20:41   [ANY] Night VIP
    Reply With Quote #1

    [ANY] Night VIP

    Basic plugin to automatically give an admin flag to every player between specific hours of the day and night.

    Example:
    starting_hour = 13 (1pm)
    ending_hour = 4 (4am)


    FEATURES
    • Everything is configured through configuration file.
    • Natives
    • SourceMod translations support.

    HOW TO CONFIGURE

    After you install plugin go to addons/sourcemod/configs/night_vip.cfg and configure the settings to your liking.

    Preview: Click Here

    HOW TO INSTALL

    Download the latest release from here.
    You can also download thread files provided in .zip file but they could be out of date in the future.

    Latest version is 0.2 so download file (Night-VIP 0.2-SM_1.11_Full)

    Upload all files to root directory of your server (How to install plugins)

    NATIVES (API)

    PHP Code:
    /**
     * Is it currently nighttime according to the settings in the Night VIP
     * config file.
     *
     * @return      True if it is night.
     */
    bool NV_IsNight();

    /**
     * Has a client been given Free VIP.
     * This should only be used after OnClientPostAdminCheck().
     *
     * @param client    Client index.
     * @return          True if client was given Free VIP.
     *
     * @error           Invalid client index.
     */
    bool NV_ClientHasFreeVIP(int client); 
    INCLUDES USED

    MultiColors (included in the repository)

    LANGUAGE SUPPORT
    • English
    • Polish
    If you make translation for other languages let me know. I will include it in next release!

    Thank you and enjoy!
    Attached Files
    File Type: zip Night-VIP-SM_1.11_Full.zip (45.6 KB, 138 views)
    File Type: zip Night-VIP-SM_1.10_Full.zip (45.2 KB, 86 views)
    File Type: sp Get Plugin or Get Source (night_vip.sp - 122 views - 4.2 KB)
    File Type: zip Night-VIP 0.2-SM_1.11_Full.zip (46.2 KB, 71 views)
    __________________
    If you appreciate my work you can send me a Donation

    Thanks everyone for using my work!

    Any requests or question please contact me on discord: Mesharsky#6565

    Last edited by Mesharsky How2Kill; 12-25-2022 at 21:49.
    Mesharsky How2Kill is offline
    Happy DODs player
    AlliedModders Donor
    Join Date: Sep 2009
    Old 10-11-2022 , 13:50   Re: [ANY] Night VIP
    Reply With Quote #2

    Wonderfull gone install this straight away,

    thanks
    __________________
    Happy DODs player is offline
    Happy DODs player
    AlliedModders Donor
    Join Date: Sep 2009
    Old 10-13-2022 , 10:21   Re: [ANY] Night VIP
    Reply With Quote #3

    https://ibb.co/sRt7Cvn

    Trying to compile a the plugin on a older sourcemod,

    got these errors, (58 and 59 )

    The main plugin doesnt load up on Sourcemod 1.9

    Can you take a peak for a solution
    __________________

    Last edited by Happy DODs player; 10-13-2022 at 10:22.
    Happy DODs player is offline
    Mesharsky How2Kill
    AlliedModders Donor
    Join Date: May 2017
    Location: Poland
    Old 10-14-2022 , 20:00   Re: [ANY] Night VIP
    Reply With Quote #4

    Quote:
    Originally Posted by Happy DODs player View Post
    https://ibb.co/sRt7Cvn

    Trying to compile a the plugin on a older sourcemod,

    got these errors, (58 and 59 )

    The main plugin doesnt load up on Sourcemod 1.9

    Can you take a peak for a solution
    Try this version for sourcemod 1.9
    Attached Files
    File Type: sp Get Plugin or Get Source (night_vip.sp - 64 views - 4.4 KB)
    __________________
    If you appreciate my work you can send me a Donation

    Thanks everyone for using my work!

    Any requests or question please contact me on discord: Mesharsky#6565
    Mesharsky How2Kill is offline
    Happy DODs player
    AlliedModders Donor
    Join Date: Sep 2009
    Old 10-16-2022 , 02:49   Re: [ANY] Night VIP
    Reply With Quote #5

    Loads up now,

    and i joined my gameserver just now and the messaga of the vip popped up.

    Only i had in the config

    from 10 till 15 ( this is howe it is added in the cfg )

    but the server time is atm 7.50 so the time cycle isnt working can you give advice or do i need to change the cfg?
    __________________
    Happy DODs player is offline
    Mesharsky How2Kill
    AlliedModders Donor
    Join Date: May 2017
    Location: Poland
    Old 10-21-2022 , 00:41   Re: [ANY] Night VIP
    Reply With Quote #6

    Quote:
    Originally Posted by Happy DODs player View Post
    Loads up now,

    and i joined my gameserver just now and the messaga of the vip popped up.

    Only i had in the config

    from 10 till 15 ( this is howe it is added in the cfg )

    but the server time is atm 7.50 so the time cycle isnt working can you give advice or do i need to change the cfg?
    I tested same settings on my server and time matches.
    Are you sure that your server or where server is running timezone is accurate?
    __________________
    If you appreciate my work you can send me a Donation

    Thanks everyone for using my work!

    Any requests or question please contact me on discord: Mesharsky#6565
    Mesharsky How2Kill is offline
    BiohazardLucifer
    Member
    Join Date: Dec 2015
    Old 10-22-2022 , 17:40   Re: [ANY] Night VIP
    Reply With Quote #7

    hello, nice one. but same problem, if you change the time in cfg, i don t change... it s same hours...
    __________________
    BiohazardLucifer is offline
    Send a message via Yahoo to BiohazardLucifer Send a message via Skype™ to BiohazardLucifer
    Mesharsky How2Kill
    AlliedModders Donor
    Join Date: May 2017
    Location: Poland
    Old 12-25-2022 , 19:00   Re: [ANY] Night VIP
    Reply With Quote #8

    Quote:
    Originally Posted by BiohazardLucifer View Post
    hello, nice one. but same problem, if you change the time in cfg, i don t change... it s same hours...
    Fixed issue. Can you please check now?
    Also some improvments but i can't check properly due to my limited resources.
    Remember it's compiled for SM 1.11 if you want it compiled for SM 1.10 then please compile it using that version of compiler.
    Attached Files
    File Type: sp Get Plugin or Get Source (night_vip.sp - 63 views - 4.9 KB)
    File Type: zip Night-VIP-SM_1.11_Full.zip (46.2 KB, 62 views)
    __________________
    If you appreciate my work you can send me a Donation

    Thanks everyone for using my work!

    Any requests or question please contact me on discord: Mesharsky#6565

    Last edited by Mesharsky How2Kill; 12-25-2022 at 20:50.
    Mesharsky How2Kill is offline
    Mesharsky How2Kill
    AlliedModders Donor
    Join Date: May 2017
    Location: Poland
    Old 12-25-2022 , 21:12   Re: [ANY] Night VIP
    Reply With Quote #9

    Quote:
    Originally Posted by Happy DODs player View Post
    Loads up now,

    and i joined my gameserver just now and the messaga of the vip popped up.

    Only i had in the config

    from 10 till 15 ( this is howe it is added in the cfg )

    but the server time is atm 7.50 so the time cycle isnt working can you give advice or do i need to change the cfg?
    That is also fixed in the release above this post, please check it if it works i roll out new version.
    __________________
    If you appreciate my work you can send me a Donation

    Thanks everyone for using my work!

    Any requests or question please contact me on discord: Mesharsky#6565
    Mesharsky How2Kill is offline
    ShadowSpecter
    Junior Member
    Join Date: Oct 2021
    Old 01-13-2023 , 00:09   Re: [ANY] Night VIP
    Reply With Quote #10

    Hi, you know I have been testing this add-on and it does not work correctly. I put for example from 1 am to 2 am and the players still have the commands of a vip. Any solution?
    ShadowSpecter is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 19:37.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode