i think this will works but im not sure....
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Play sound"
#define VERSION "1.0"
#define AUTHOR "Porta0123"
new bool:are_2players = false
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event( "DeathMsg" , "DeathMsgEvent" , "a" );
}
public DeathMsgEvent()
{
new pnum
new players[32], tempid;
new count = 0
get_players(players, pnum);
for(new i=0; i < pnum; i++)
{
tempid = players[i];
if(is_user_alive(tempid))
{
count++
}
}
if(are_2players == true)
{
are_2players = false
//here the sounds etc...
}
if(count == 2)
dosound()
}
public dosound()
{
set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 12.0)
show_hudmessage(0, "1 vs 1")
are_2players = true
//here you can add one sound like "you are alone" or something...
}