![Smile :smile:](./images/smilies/smile.png)
Code: Select all
block load
{
es_setinfo sounds 1
//
// es_msg es loaded... sounds
es_load sounds/activate
}
block unload
{
es_xsetinfo sounds 0
//
// es_msg es unloaded... sounds
es_unload sounds/activate
}
also in the folder is another folder called activate
Code: Select all
block load
{
es_xsetinfo activate 1
//
// es_msg es loaded... activate
es_setinfo activate_1 "music/HL1_song3.mp3"
es_setinfo activate_2 "music/HL1_song5.mp3"
es_setinfo activate_3 "music/HL1_song6.mp3"
es_setinfo activate_4 "music/HL1_song9.mp3"
es_setinfo activate_5 "music/HL1_song10.mp3"
es_setinfo activate_6 "music/HL1_song11.mp3"
es_setinfo activate_7 "music/HL1_song14.mp3"
es_setinfo activate_8 "music/HL1_song15.mp3"
es_setinfo activate_9 "music/HL1_song17.mp3"
es_setinfo activate_10 "music/HL1_song19.mp3"
es_setinfo activate_11 "music/HL1_song20.mp3"
es_setinfo activate_12 "music/HL1_song21.mp3"
es_setinfo activate_13 "music/HL1_song24.mp3"
es_setinfo activate_14 "music/HL1_song25_REMIX3.mp3"
es_setinfo activate_15 "music/HL1_song26.mp3"
es_setinfo activate_16 "music/HL2_song0.mp3"
es_setinfo activate_17 "music/HL2_song1.mp3"
es_setinfo activate_18 "music/HL2_song2.mp3"
es_setinfo activate_19 "music/HL2_song3.mp3"
es_setinfo activate_20 "music/HL2_song4.mp3"
es_setinfo activate_21 "music/HL2_song6.mp3"
es_setinfo activate_22 "music/HL2_song7.mp3"
es_setinfo activate_23 "music/HL2_song8.mp3"
es_setinfo activate_24 "music/HL2_song10.mp3"
es_setinfo activate_25 "music/HL2_song11.mp3"
es_setinfo activate_26 "music/HL2_song12_long.mp3"
es_setinfo activate_27 "music/HL2_song13.mp3"
es_setinfo activate_28 "music/HL2_song14.mp3"
es_setinfo activate_29 "music/HL2_song15.mp3"
es_setinfo activate_30 "music/HL2_song16.mp3"
es_setinfo activate_31 "music/HL2_song17.mp3"
es_setinfo activate_32 "music/HL2_song19.mp3"
es_setinfo activate_33 "music/HL2_song20_submix0.mp3"
es_setinfo activate_34 "music/HL2_song20_submix4.mp3"
es_setinfo activate_35 "music/HL2_song23_SuitSong3.mp3"
es_setinfo activate_36 "music/HL2_song25_Teleporter.mp3"
es_setinfo activate_37 "music/HL2_song26.mp3"
es_setinfo activate_38 "music/HL2_song27_trainstation2.mp3"
es_setinfo activate_39 "music/HL2_song28.mp3"
es_setinfo activate_40 "music/HL2_song29.mp3"
es_setinfo activate_41 "music/HL2_song30.mp3"
es_setinfo activate_42 "music/HL2_song31.mp3"
es_setinfo activate_43 "music/HL2_song32.mp3"
es_setinfo activate_44 "music/HL2_song33.mp3"
es_setinfo activate_45 "music/radio1.mp3"
es_setinfo activate_46 "music/Ravenholm_1.mp3"
}
block unload
{
es_xsetinfo activate 0
//
// es_msg es unloaded... activate
}
event player_activate
{
//
//
//
//
es userid_key event_var(userid)
//
es_setinfo activate_rnd_snd 0
es_setinfo activate_temp 0
es_rand activate_rnd_snd 1 46
es_format activate_temp "activate_%1" server_var(activate_rnd_snd)
//
es_emitsound player event_var(userid) server_var(server_var(activate_temp)) 0.4 1.0
//
//
//
}
It plays the hl2 music when a player joins. hope that was anough to give. stay kool scripters and have a great week.
![Cool :cool:](./images/smilies/cool.png)
![Cool :cool:](./images/smilies/cool.png)