Raised This Month: $32 Target: $400
 8% 

[CSGO] If VIP join play sound by steam id


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kf98
New Member
Join Date: Jul 2019
Old 07-31-2019 , 11:06   [CSGO] If VIP join play sound by steam id
Reply With Quote #1

I need help with a plugin. When a specific steam id is connected, a music plays. Each steam id has a different music


I used this but it didn't work:

#include <sourcemod>
#include <emitsoundany>

char sz_Auth[MAXPLAYERS + 1][32];

public void OnMapStart()
{
PrecacheSound("join_sounds/Sephiroth_Nightmares.mp3", true);
}

public void OnClientPostAdminCheck(int client)
{
GetClientAuthId(client, AuthId_Steam2, sz_Auth[client], sizeof(sz_Auth));
if(StrEqual(sz_Auth[client], "STEAM_0:0:61458413"))
{
EmitSoundToAll("join_sounds/Sephiroth_Nightmares.mp3");
PrintToChatAll("\x04%N\x01 ingreso al servidor", client);
}
}
Kf98 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 22:58.


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