Raised This Month: $51 Target: $400
 12% 

[CS:GO] Join sound and message by steam id


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Danispace
New Member
Join Date: May 2019
Old 05-31-2019 , 11:36   [CS:GO] Join sound and message by steam id
Reply With Quote #1

Hello guys! I am looking for a plugin which has join sound and message by steam id. I tried everything here but none of them worked. Can you guys help me?

Thanks!
Danispace is offline
Pilo
AlliedModders Donor
Join Date: Jan 2019
Location: Israel
Old 05-31-2019 , 14:34   Re: [CS:GO] Join sound and message by steam id
Reply With Quote #2

Maybe try this?
PHP Code:
#include <sourcemod>
#include <emitsoundany>

char sz_Auth[MAXPLAYERS 1][32];

public 
void OnClientPostAdminCheck(int client)
{
    
GetClientAuthId(clientAuthId_Steam2sz_Auth[client], sizeof(sz_Auth));
    if (
StrEqual(sz_Auth[client], "STEAM_1:1:91750774"))
    {
        
EmitSoundToAll("misc/joinsound.mp3")
        
PrintToChatAll("\x04%N\x01 has joined the server"client);
    }

Anyway you can add me on discord if you need help : Pilo#8253
__________________

Taking Private(PAID) Plugins In PM
Feel free to Donate with PayPal
Feel free to message me in Discord Pilo#8253
Total donated : 25$

Last edited by Pilo; 05-31-2019 at 14:36.
Pilo is offline
Danispace
New Member
Join Date: May 2019
Old 06-01-2019 , 04:39   Re: [CS:GO] Join sound and message by steam id
Reply With Quote #3

Where's misc located at?
Danispace is offline
Cruze
Veteran Member
Join Date: May 2017
Old 06-01-2019 , 04:54   Re: [CS:GO] Join sound and message by steam id
Reply With Quote #4

Quote:
Originally Posted by Danispace View Post
Where's misc located at?
sound/misc/joinsound.mp3

It is just an example. You can put mp3 anywhere in sound folder and just specify path in that line.
__________________
Taking paid private requests! Contact me
Cruze is offline
Danispace
New Member
Join Date: May 2019
Old 06-01-2019 , 05:06   Re: [CS:GO] Join sound and message by steam id
Reply With Quote #5

Oh, thank you so much.
Danispace is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 06-03-2019 , 09:11   Re: [CS:GO] Join sound and message by steam id
Reply With Quote #6

++
PHP Code:
public void OnMapStart()
{
    
PrecacheSound("misc/joinsound.mp3"true);

__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
eliteroyal
AlliedModders Donor
Join Date: Dec 2016
Location: Moldova
Old 07-02-2019 , 06:40   Re: [CS:GO] Join sound and message by steam id
Reply With Quote #7

Quote:
Originally Posted by Dragokas View Post
++
PHP Code:
public void OnMapStart()
{
    
PrecacheSound("misc/joinsound.mp3"true);


where to add this part?
__________________
PEACE FROM MOLDOVA
eliteroyal is offline
Pilo
AlliedModders Donor
Join Date: Jan 2019
Location: Israel
Old 07-02-2019 , 08:54   Re: [CS:GO] Join sound and message by steam id
Reply With Quote #8

Quote:
Originally Posted by eliteroyal View Post
where to add this part?
Doesn't really matter..
__________________

Taking Private(PAID) Plugins In PM
Feel free to Donate with PayPal
Feel free to message me in Discord Pilo#8253
Total donated : 25$
Pilo is offline
Pilo
AlliedModders Donor
Join Date: Jan 2019
Location: Israel
Old 07-02-2019 , 08:55   Re: [CS:GO] Join sound and message by steam id
Reply With Quote #9

PHP Code:
#include <sourcemod>
#include <emitsoundany>

char sz_Auth[MAXPLAYERS 1][32];

public 
void OnMapStart() 

    
PrecacheSound("misc/joinsound.mp3"true); 


public 
void OnClientPostAdminCheck(int client)
{
    
GetClientAuthId(clientAuthId_Steam2sz_Auth[client], sizeof(sz_Auth));
    if (
StrEqual(sz_Auth[client], "STEAM_1:1:91750774"))
    {
        
EmitSoundToAll("misc/joinsound.mp3")
        
PrintToChatAll("\x04%N\x01 has joined the server"client);
    }

__________________

Taking Private(PAID) Plugins In PM
Feel free to Donate with PayPal
Feel free to message me in Discord Pilo#8253
Total donated : 25$
Pilo is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 07-02-2019 , 12:36   Re: [CS:GO] Join sound and message by steam id
Reply With Quote #10

eliteroyal, OnMapStart()
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas 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 03:46.


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