Raised This Month: $32 Target: $400
 8% 

[INS] Mikee Join Sound v1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Author
sejin513
AlliedModders Donor
Join Date: Dec 2008
Location: ._.
Plugin ID:
4614
Plugin Version:
sm_ins_mikee_join_sound
Plugin Category:
General Purpose
Plugin Game:
Insurgency (2014)
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Playing Mikee voice sounds when player has joined squad
    Old 04-25-2015 , 23:53   [INS] Mikee Join Sound v1.0
    Reply With Quote #1

    [INS] Mikee Join Sound v1.1

    Simply playing Mikee voice sounds when player has joined squad (sounds from insurgency training)
    i was using this sounds nowadays and got a request to share

    Quote:
    Convar
    sm_ins_mikee_join_sound_enabled [0/1]
    - default: 1
    Thanks to Ballou.J for help
    Attached Files
    File Type: sp Get Plugin or Get Source (ins_mikee_join_sound_v1.1.sp - 306 views - 2.2 KB)

    Last edited by sejin513; 06-28-2015 at 23:54.
    sejin513 is offline
    ltgenkd
    AlliedModders Donor
    Join Date: Sep 2008
    Old 06-21-2015 , 12:09   Re: [INS] Mikee Join Sound v1.0
    Reply With Quote #2

    Pretty cool plugin thanks.

    Can this plugin be modified or another plugin made to have a non game sound played on a client when the client joins the server?

    I have tried a couple joinsound plugins but none are working.

    Thanks
    __________________

    Last edited by ltgenkd; 06-21-2015 at 13:57.
    ltgenkd is offline
    jballou
    Member
    Join Date: Jul 2013
    Old 06-28-2015 , 22:27   Re: [INS] Mikee Join Sound v1.0
    Reply With Quote #3

    A couple questions, I am pretty bad at SM but had a few:
    1. I see that you use g_bLateLoad to set WelcomeToTheCompany for everyone when loaded late, but other than that it does not seem to be setting WTTC?
    2. I simplified the event and timer function a bit to try to make it faster and simpler. This might be crap, and I welcome feedback, but here it is:
    Code:
    public Event_PlayerPickSquad(Handle:event, const String:name[], bool:dontBroadcast)
    {
    	new client = GetClientOfUserId(GetEventInt(event, "userid"));
    	if ((GetConVarInt(g_hCvarEnabled) < 1) || (!IsFakeClient(client)) || (WelcomeToTheCompany[client] < 2))
    	{
    		return;
    	}
    	//Use same timer to simplify and make new scripts workable
    	//TODO: Support external script config files including timings, so we can support multiple languages
    	CreateTimer(0.1, WelcomeToTheCompany_timer, client, TIMER_FLAG_NO_MAPCHANGE);
    	CreateTimer(2.9, WelcomeToTheCompany_timer, client, TIMER_FLAG_NO_MAPCHANGE);
    	CreateTimer(4.9, WelcomeToTheCompany_timer, client, TIMER_FLAG_NO_MAPCHANGE);
    }
    
    public Action:WelcomeToTheCompany_timer(Handle:timer, any:client)
    {
    	if ((GetConVarInt(g_hCvarEnabled) < 1) || (!IsClientInGame(client)) || (!WelcomeToTheCompany[client]))
    	{
    		//Not sure if Stop is the right action for the individual timers
    		return Plugin_Stop;
    	}
    	switch(WelcomeToTheCompany[client]) {
    		case 2:
    			ClientCommand(client, "playgamesound Training.Warehouse.Vip.1.1");
    		case 1:
    			ClientCommand(client, "playgamesound Training.Warehouse.Vip.1.2");
    		case 0:
    			ClientCommand(client, "playgamesound Training.Warehouse.Vip.41.3");
    	}
    	WelcomeToTheCompany[client]--;
    	return Plugin_Stop;
    }

    Last edited by jballou; 06-28-2015 at 22:27.
    jballou is offline
    sejin513
    AlliedModders Donor
    Join Date: Dec 2008
    Location: ._.
    Old 06-28-2015 , 23:49   Re: [INS] Mikee Join Sound v1.0
    Reply With Quote #4

    Quote:
    Originally Posted by ltgenkd View Post
    Pretty cool plugin thanks.

    Can this plugin be modified or another plugin made to have a non game sound played on a client when the client joins the server?

    I have tried a couple joinsound plugins but none are working.

    Thanks
    weird, did you tried CS:GO join sound plugins too?
    if isn't that working added me on steam, that can be easily solved ._.


    Quote:
    Originally Posted by jballou View Post
    A couple questions, I am pretty bad at SM but had a few:
    1. I see that you use g_bLateLoad to set WelcomeToTheCompany for everyone when loaded late, but other than that it does not seem to be setting WTTC?
    2. I simplified the event and timer function a bit to try to make it faster and simpler. This might be crap, and I welcome feedback
    1. Correct, i did ._.)
    2. I wonder why i didn't use switch in there, nice and thanks. i'll update the plugin with your code

    Last edited by sejin513; 06-28-2015 at 23:52.
    sejin513 is offline
    Jejowaty
    Junior Member
    Join Date: Feb 2014
    Old 07-27-2015 , 07:18   Re: [INS] Mikee Join Sound v1.0
    Reply With Quote #5

    hi, maybe i'm wrong, but after lastnight update, this nice small plugin not work anymore on my servers...
    any info about it from other servers admins?

    regards
    Jejowaty 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 15:51.


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