[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.