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

End of Map Sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gonz
Senior Member
Join Date: Mar 2007
Location: Germany
Old 08-09-2008 , 04:46   End of Map Sound
Reply With Quote #1

Is there already a plugin with this feature? I searched but found nothing yet.

THX!

Gonz
Gonz is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-09-2008 , 08:01   Re: End of Map Sound
Reply With Quote #2

What mod do you want this for? TF2, CS:S, DOD:S?
bl4nk is offline
SixSicSix
Senior Member
Join Date: Jan 2008
Old 08-09-2008 , 08:44   Re: End of Map Sound
Reply With Quote #3

I have a personal plugin that uses funcommands to play a sound at the beginning and end of the round. Dunno if you want it, but here's the .sp:

PHP Code:
#pragma semicolon 1
#include <sourcemod>

public Plugin:myinfo =
{
    
name "Round Sound",
    
author "SixSicSix",
    
description "Plays a sound at the beginning/end of a round",
    
version "1.0",
    
url "http://sovietgaming.net"
};

public 
OnPluginStart()
{
    
HookEvent("teamplay_round_start"Event_RoundStart);
    
HookEvent("teamplay_round_win"Event_RoundEnd);
}

public 
Action:Event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
    
ServerCommand("sm_play @all roundstart.mp3");
    return 
Plugin_Continue;
}
public 
Action:Event_RoundEnd(Handle:event, const String:name[], bool:dontBroadcast)
{
    
ServerCommand("sm_play @all roundend.mp3");
    return 
Plugin_Continue;

Just put roundstart.mp3 and roundend.mp3 inside the sound folder.
SixSicSix is offline
Gonz
Senior Member
Join Date: Mar 2007
Location: Germany
Old 08-09-2008 , 08:58   Re: End of Map Sound
Reply With Quote #4

Thank you both,

it´s ment for dod:s

SixSicSix thank you, but i´m really looking for end map sound...

greetz
Gonz
Gonz is offline
ottobohn
Senior Member
Join Date: Sep 2007
Old 08-10-2008 , 00:12   Re: End of Map Sound
Reply With Quote #5

That is sexy. Can u release that as a supported plugin then?

otto
ottobohn is offline
SixSicSix
Senior Member
Join Date: Jan 2008
Old 08-11-2008 , 13:06   Re: End of Map Sound
Reply With Quote #6

Otto,

I can't release it because I'm not good with sourcepawn.

I could TRY to add a downloader/precacher to it, and i could also try to give it its own play function that does not print to chat/console, but it would take a while. I would rather an experienced coder pick up on what I have done so far and just credit me with the base code.
SixSicSix is offline
TechKnow
Senior Member
Join Date: Nov 2007
Old 10-02-2008 , 22:31   Re: End of Map Sound
Reply With Quote #7

This plugin only plays at the end of each and every round, I made a plugin that will only do it at the end of the map before mapchange..

http://forums.alliedmods.net/showthread.php?p=694273
__________________
"Stupd is what Stupid dose"
MY MODELS SITE
http://techknowmodels.19.forumer.com/index.php
TechKnow is offline
Gonz
Senior Member
Join Date: Mar 2007
Location: Germany
Old 03-11-2013 , 15:06   Re: End of Map Sound
Reply With Quote #8

yeah!!
__________________
Greetz Gonz
CS:GO Server: 88.198.13.105:27015 -[LG]- Lunatic Gophers - Muppetshow - www.lg-clan.de Public TS3 Server: lg-clan.com

Gonz 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 09:35.


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