Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connect/Disconnect sounds
#1
This plugin plays a sound on player connect and a sound on player disconnect.

Code:
#include <amxmodx>

#define    PLUGIN    "Connect Sound"
#define    VERSION    "1.0"
#define    AUTHOR    "sToP !"

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR);
}

public plugin_precache()
{
    precache_sound("buttons/bell1.wav");
    precache_sound("barney/seeya.wav");
}
public client_putinserver()
{
    client_cmd(0, "spk buttons/bell1.wav");
    return PLUGIN_CONTINUE;
}
public client_disconnect()
{
    client_cmd(0, "spk barney/seeya.wav");
    return PLUGIN_CONTINUE;
}
Reply


Messages In This Thread
Connect/Disconnect sounds - by marcudaniel1337 - 07-28-2024, 11:25 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)