AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [CSGO] If VIP join play sound by steam id (https://forums.alliedmods.net/showthread.php?t=317822)

Kf98 07-31-2019 11:06

[CSGO] If VIP join play sound by steam id
 
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);
}
}


All times are GMT -4. The time now is 08:25.

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