This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

RoundSound SMX


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Rezusek
New Member
Join Date: Dec 2010
Plugin ID:
360
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Unapprover:
    Reason for Unapproving:
    Redundant code (OnMapStart is enough for download tables). No version Cvar, no description of the plugin.
    Old 12-29-2010 , 08:46   Re: RoundSound SMX
    Reply With Quote #1

    I added new music...

    Plugin in server play old ...

    This is my roundsound.sp

    Code:
    // File:   roundsound.sp
    // Author: TanaToS
    // Copyright (C) by TanaToS
    #pragma semicolon 1
    
    #include <sourcemod>
    #include <sdktools>
    
    #define PLUGIN_VERSION "4.0 SMX"
    
    public Plugin:myinfo = {
    	name = "RoundSound SMX",
    	author = "TanaToS",
    	description = "RoundSound SMX Plugin",
    	version = PLUGIN_VERSION,
    	url = "http://addons.eventscripts.com/addons/view/RoundSound--v3--TanaToS"
    };
    
    public OnPluginStart() {
    	HookEvent("round_end", EventRoundEnd, EventHookMode_Post);
    	AddFileToDownloadsTable("sound/misc/silesia1.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia2.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia3.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia4.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia5.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia6.mp3");
    }
    
    public OnMapStart() {
    	AddFileToDownloadsTable("sound/misc/silesia1.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia2.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia3.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia4.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia5.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia6.mp3");
    }
    
    public EventRoundEnd(Handle:event, const String:name[], bool:dontBroadcast) {
    	new winner = GetEventInt(event, "winner");
    	new random = GetRandomInt(1, 3);
    	if(winner == 2) {
    		for(new userid = 1; userid <= GetMaxClients(); userid++) {
    			if(IsClientInGame(userid) && !IsFakeClient(userid)) {
    				if(random == 1) {
    					ClientCommand(userid, "play misc/silesia1");
    				} if(random == 2) {
    					ClientCommand(userid, "play misc/silesia2");
    				} if(random == 3) {
    					ClientCommand(userid, "play misc/silesia3"); }
    			}
    		}
    	} else if(winner == 3) {
    		for(new userid = 1; userid <= GetMaxClients(); userid++) {
    			if(IsClientInGame(userid) && !IsFakeClient(userid)) {
    				if(random == 1) {
    					ClientCommand(userid, "play misc/silesia4");
    				} if(random == 2) {
    					ClientCommand(userid, "play misc/silesia5");
    				} if(random == 3) {
    					ClientCommand(userid, "play misc/silesia6"); }
    			}
    		}
    	}
    }
    Please help !
    Rezusek 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 20:03.


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