Hello, so this plugin is supposed to emit sound to all players on map.
But when i use it I hear it, and when my friend executes the command I hear it, but my friend don't and the mp3 is in his sound folder, but still not working? Any idea why?
Code:
#pragma semicolon 1
#pragma newdecls required
#include <sourcemod>
#include <sdktools>
#include <multicolors>
#include <colors>
#include <emitsoundany>
#define PATH "curlytoenails.mp3"
public Plugin myinfo =
{
name = "SOUNDS",
author = "cool",
description = "Plugin that does stuff",
version = "1.0",
url = ""
};
char g_ColorNames[13][10] = {"White", "Red", "Green", "Blue", "Yellow", "Purple", "Cyan", "Orange", "Pink", "Olive", "Lime", "Violet", "Lightblue"};
int g_Colors[13][3] = {{255,255,255},{255,0,0},{0,255,0},{0,0,255},{255,255,0},{255,0,255},{0,255,255},{255,128,0},{255,0,128},{128,255,0},{0,255,128},{128,0,255},{0,128,255}};
public void OnPluginStart()
{
RegAdminCmd("sm_curlytoenails", Command_CurlyToeNails, ADMFLAG_GENERIC);
}
public void OnMapStart()
{
char buffer[PLATFORM_MAX_PATH];
PrecacheSound(PATH);
Format(buffer, sizeof(buffer), "sound/%s", PATH);
AddFileToDownloadsTable(buffer);
}
public Action Command_CurlyToeNails(int client, int args)
{
new String:name[32];
GetClientName(client, name, 32);
if(IsPlayerAlive(client))
{
EmitSoundToAll(PATH);
CPrintToChatAll("{green}My nigga kenny do eat curly toe nails tho");
}
else
{
EmitSoundToAll(PATH);
}
}
Any help is appriciated, thx.