ojjj coś nie tak ? coś mogłem posuć ?
//// connect.sp
//
// connect.sp(75) : error 035: argument type mismatch (argument 1)
//
// 1 Error.
//
// Compilation Time: 0,12 sec
#include <sourcemod>
#include <sdktools>
#include <cstrike>
#include <sdkhooks>
#define NUTA "sound/connect.mp3"
public Plugin myinfo =
{
name = "connect",
author = "Dredek",
description = "connect player and sound",
version = "1.1",
url = "xxx"
};
public void OnPluginStart()
{
HookEvent("player_spawn", Event_spawn);
}
public void OnMapStart(/*void*/)
{
OnDownload();
}
void OnDownload(/*void*/)
{
PrecacheSound(NUTA, true);
}
public Action Event_spawn(Event event, const char[] chName, bool bDontBroadcast)
{
int client = GetClientOfUserId(event.GetInt("userid"));
char name[32];
GetClientName(client,name,31);
PrintToChatAll("Gracz %s łączy się na serwer",name);
EmitSoundToAll(client, NUTA, client);
}