Instalacia Consnd
Napsal: 15 zář 2010, 14:39
				
				Cus pls muzeto poradit akos e to instaluje ... opiesm vam ako som to instaloval jáá takze stahol som si consnd.rar a potom .smx. .sp smx som nakopiroval do SM /plugins a .spdo scripting  consnd som rozbalil a hodil som do sound takze moja cesta do sound vyzera takto sound/consnd/moin.mp3 
a toto je moj scripting
cestu som tam zadal a server mi posnicku zacne stahovat ale nehraje nevite preco pls help surne to potrebujem alebo nieco podobne welcome sound okrem ES diky
			a toto je moj scripting
Kód: Vybrat vše
#include <sourcemod>
#include <sdktools>
#include <sdktools_sound>
#pragma semicolon 1
#define MAX_FILE_LEN 80
new Handle:g_CvarSoundName = INVALID_HANDLE;
new String:g_soundName[MAX_FILE_LEN];
#define PLUGIN_VERSION "0.0.1"
public Plugin:myinfo = 
{
   name = "Welcome Sound",
   author = "R-Hehl",
   description = "Plays Welcome Sound to connecting Players",
   version = PLUGIN_VERSION,
   url = "http://www.compactaim.de/"
};
public OnPluginStart()
{
   // Create the rest of the cvar's
CreateConVar("sm_welcome_snd_version", PLUGIN_VERSION, "Welcome Sound Version", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
g_CvarSoundName = CreateConVar("sm_join_sound", "consnd/moin.mp3", "The sound to play");
}
public OnConfigsExecuted()
{
   GetConVarString(g_CvarSoundName, g_soundName, MAX_FILE_LEN);
   decl String:buffer[MAX_FILE_LEN];
   PrecacheSound(g_soundName, true);
   Format(buffer, sizeof(buffer), "sound/%s", g_soundName);
   AddFileToDownloadsTable(buffer);
}
public OnClientPostAdminCheck(client)
{
EmitSoundToClient(client,g_soundName);
}cestu som tam zadal a server mi posnicku zacne stahovat ale nehraje nevite preco pls help surne to potrebujem alebo nieco podobne welcome sound okrem ES diky