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

[CS:GO] - ► Notifications ADMIN/VIP | Join/Leave | Message/Sound | 100% Translatable


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dr. Api
BANNED
Join Date: Mar 2015
Location: France
Plugin ID:
4668
Plugin Version:
1.0.1
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Notifications connection for admin and vip with sounds and/or messages.
    Old 06-09-2015 , 17:01   [CS:GO] - ► Notifications ADMIN/VIP | Join/Leave | Message/Sound | 100% Translatable
    Reply With Quote #1

    I - Description

    I made this plugin for my community Zombie4Ever.eu and was allowed to share it.
    Notifications connection for admin and vip with sounds and/or messages.
    All sounds placed on the "addons/sourcemod/configs/drapi/join_sounds.cfg" will be automatically downloaded. You can Enable/Disable all sounds and message for each events. Also player can Enable/Disable all sounds and message for each events too by typing in chat !js.

    II - Cvars

    Code:
    "drapi_join_sounds_join_admin_tchat" 	"1" - "Enable/Disable Admin message join"
    "drapi_join_sounds_join_vip_tchat" 	"1" - "Enable/Disable Vip message join"
    "drapi_join_sounds_join_admin_sound" 	"1" - "Enable/Disable Admin sound join"
    "drapi_join_sounds_join_vip_sound" 	"1" - "Enable/Disable Admin sound join"
    	
    "drapi_join_sounds_leave_admin_tchat" 	"1" - "Enable/Disable Admin message leave"
    "drapi_join_sounds_leave_vip_tchat" 	"1" - "Enable/Disable Vip message leave"
    "drapi_join_sounds_leave_admin_sound" 	"1" - "Enable/Disable Admin sound leave"
    "drapi_join_sounds_leave_vip_sound" 	"1" - "Enable/Disable Vip sound leave"
    III - Confis

    Code:
    "Sounds"
    {
    	"Sounds"
    	{
            	"AdminJoin"
    		{
    			"1" 				"join_sounds/admin_join_dubstep.mp3"
    			"2" 				"join_sounds/admin_join_scooter.mp3"
    			"3" 				"join_sounds/admin_join_starwars.mp3"
    		}
    
            	"AdminLeave" 									
    		{
    			"1" 				"join_sounds/admin_leave_announce.mp3" 
    		}
    
            	"VipJoin"
    		{
    			"1" 				"join_sounds/vip_join_samba.mp3"
    		}
    
            	"VipLeave"
    		{
    			"1" 				"join_sounds/vip_leave_baby.mp3"
    		}
    	}
    }
    Put your songs in the section you want, if there are more than 1 song it will choose randomly one.
    All sounds will be automatically downloaded and precached.

    IV - Make a .mp3

    For play a .mp3 without error you need to:
    1. Sample rate at 44100 hz
    2. bitrate at 128kbps
    3. Quality resampling at 128-point sinc

    V - Flags

    You can change the flags in the code if you don't use like us this following.
    PHP Code:
    /***********************************************************/
    /******************** CHECK IF IS A VIP ********************/
    /***********************************************************/
    stock bool IsVip(int client)
    {
        if(
    GetUserFlagBits(client) & ADMFLAG_CUSTOM1 
        
    || GetUserFlagBits(client) & ADMFLAG_CUSTOM2 
        
    || GetUserFlagBits(client) & ADMFLAG_CUSTOM3 
        
    || GetUserFlagBits(client) & ADMFLAG_CUSTOM4 
        
    || GetUserFlagBits(client) & ADMFLAG_CUSTOM5 
        
    || GetUserFlagBits(client) & ADMFLAG_CUSTOM6)
        {
            return 
    true;
        }
        return 
    false;
    }

    /***********************************************************/
    /****************** CHECK IF IS AN ADMIN *******************/
    /***********************************************************/
    stock bool IsAdminEx(int client)
    {
        if(
    GetUserFlagBits(client) & ADMFLAG_CHANGEMAP 
        
    /*|| GetUserFlagBits(client) & ADMFLAG_RESERVATION*/
        
    || GetUserFlagBits(client) & ADMFLAG_GENERIC
        
    || GetUserFlagBits(client) & ADMFLAG_KICK
        
    || GetUserFlagBits(client) & ADMFLAG_BAN
        
    || GetUserFlagBits(client) & ADMFLAG_UNBAN
        
    || GetUserFlagBits(client) & ADMFLAG_SLAY
        
    || GetUserFlagBits(client) & ADMFLAG_CHANGEMAP
        
    || GetUserFlagBits(client) & ADMFLAG_CONVARS
        
    || GetUserFlagBits(client) & ADMFLAG_CONFIG
        
    || GetUserFlagBits(client) & ADMFLAG_CHAT
        
    || GetUserFlagBits(client) & ADMFLAG_VOTE
        
    || GetUserFlagBits(client) & ADMFLAG_PASSWORD
        
    || GetUserFlagBits(client) & ADMFLAG_RCON
        
    || GetUserFlagBits(client) & ADMFLAG_CHEATS
        
    || GetUserFlagBits(client) & ADMFLAG_ROOT)
        {
            return 
    true;
        }
        return 
    false;

    GIT
    Attached Files
    File Type: zip drapi_join_sounds_V1.0.1.zip (2.12 MB, 7942 views)

    Last edited by Dr. Api; 06-29-2016 at 12:41.
    Dr. Api is offline
    Lannister
    Veteran Member
    Join Date: Apr 2015
    Old 06-09-2015 , 17:34   Re: [CSGO] - Notifications ► ADMIN/VIP | Join/Leave | Message/Sound | 100% Translatab
    Reply With Quote #2

    Hello, this plugin seems good, but i have a question, it is possible to add diferent sounds for each flag? for example, "z" flag have a sound, "a" flag have another sound, etc. thanks!
    Lannister is offline
    Dr. Api
    BANNED
    Join Date: Mar 2015
    Location: France
    Old 06-09-2015 , 17:44   Re: [CSGO] - Notifications ► ADMIN/VIP | Join/Leave | Message/Sound | 100% Translatab
    Reply With Quote #3

    Quote:
    Originally Posted by Lannister View Post
    Hello, this plugin seems good, but i have a question, it is possible to add diferent sounds for each flag? for example, "z" flag have a sound, "a" flag have another sound, etc. thanks!
    Everything it's possible
    Dr. Api is offline
    poel
    Veteran Member
    Join Date: Mar 2013
    Old 06-09-2015 , 18:40   Re: [CSGO] - Notifications ► ADMIN/VIP | Join/Leave | Message/Sound | 100% Translatab
    Reply With Quote #4

    Nice plugin <3
    poel is offline
    Dr. Api
    BANNED
    Join Date: Mar 2015
    Location: France
    Old 06-10-2015 , 03:22   Re: [CSGO] - Notifications ► ADMIN/VIP | Join/Leave | Message/Sound | 100% Translatab
    Reply With Quote #5

    I reuploaded, I forgot the translation file in the .zip
    Dr. Api is offline
    Lannister
    Veteran Member
    Join Date: Apr 2015
    Old 06-28-2015 , 20:55   Re: [CS:GO] - ► Notifications ADMIN/VIP | Join/Leave | Message/Sound | 100% Translata
    Reply With Quote #6

    If i want to play different sounds to admins and root would i need to edit the code and put it like this?

    Code:
    /***********************************************************/ 
    /******************** CHECK IF IS A VIP ********************/ 
    /***********************************************************/ 
    stock bool IsVip(int client) 
    { 
        if(GetUserFlagBits(client) & ADMFLAG_CHANGEMAP  
        /*|| GetUserFlagBits(client) & ADMFLAG_RESERVATION*/ 
        || GetUserFlagBits(client) & ADMFLAG_GENERIC 
        || GetUserFlagBits(client) & ADMFLAG_KICK 
        || GetUserFlagBits(client) & ADMFLAG_BAN 
        || GetUserFlagBits(client) & ADMFLAG_UNBAN 
        || GetUserFlagBits(client) & ADMFLAG_SLAY 
        || GetUserFlagBits(client) & ADMFLAG_CHANGEMAP 
        || GetUserFlagBits(client) & ADMFLAG_CONVARS 
        || GetUserFlagBits(client) & ADMFLAG_CONFIG 
        || GetUserFlagBits(client) & ADMFLAG_CHAT 
        || GetUserFlagBits(client) & ADMFLAG_VOTE 
        { 
            return true; 
        } 
        return false; 
    } 
    
    /***********************************************************/ 
    /****************** CHECK IF IS AN ADMIN *******************/ 
    /***********************************************************/ 
    stock bool IsAdminEx(int client) 
    { 
        if(GetUserFlagBits(client) & ADMFLAG_ROOT)    
        { 
            return true; 
        } 
        return false; 
    }  
    


    Like this?

    Thanks!
    Lannister is offline
    Dr. Api
    BANNED
    Join Date: Mar 2015
    Location: France
    Old 06-29-2015 , 00:22   Re: [CS:GO] - ► Notifications ADMIN/VIP | Join/Leave | Message/Sound | 100% Translata
    Reply With Quote #7

    Yes, you can do it like that.
    Dr. Api is offline
    JawsABK
    New Member
    Join Date: Aug 2015
    Old 08-12-2015 , 07:46   Re: [CS:GO] - ► Notifications ADMIN/VIP | Join/Leave | Message/Sound | 100% Translata
    Reply With Quote #8

    Quote:
    Originally Posted by Dr. Api View Post
    Yes, you can do it like that.
    Hey Api.

    Great plugin!

    I need some help since i´m noob at this.

    1. Where do i put these CVARS?

    "drapi_join_sounds_join_admin_tchat" "1" - "Enable/Disable Admin message join"
    "drapi_join_sounds_join_vip_tchat" "1" - "Enable/Disable Vip message join"
    "drapi_join_sounds_join_admin_sound" "1" - "Enable/Disable Admin sound join"
    "drapi_join_sounds_join_vip_sound" "1" - "Enable/Disable Admin sound join"

    "drapi_join_sounds_leave_admin_tchat" "1" - "Enable/Disable Admin message leave"
    "drapi_join_sounds_leave_vip_tchat" "1" - "Enable/Disable Vip message leave"
    "drapi_join_sounds_leave_admin_sound" "1" - "Enable/Disable Admin sound leave"
    "drapi_join_sounds_leave_vip_sound" "1" - "Enable/Disable Vip sound leave"

    2. How does the Flags work?
    Where do i modify this and does it work with STEAMIDs?

    In advance, thanks!
    JawsABK is offline
    BlackT
    Junior Member
    Join Date: May 2008
    Location: Holland
    Old 08-13-2015 , 11:02   Re: [CS:GO] - ► Notifications ADMIN/VIP | Join/Leave | Message/Sound | 100% Translata
    Reply With Quote #9

    I dont hear any sound and my logs dont indicate errors
    __________________
    BlackT is offline
    Send a message via MSN to BlackT
    freak.exe_uLow
    AlliedModders Donor
    Join Date: Jul 2012
    Location: Germany
    Old 08-13-2015 , 14:23   Re: [CS:GO] - ► Notifications ADMIN/VIP | Join/Leave | Message/Sound | 100% Translata
    Reply With Quote #10

    Quote:
    Originally Posted by BlackT View Post
    I dont hear any sound and my logs dont indicate errors
    Dr.Api is on holiday..^^
    freak.exe_uLow is offline
    Reply



    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 10:05.


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