[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
If you make translation for other languages let me know. I will include it in next release!
Thank you and enjoy!