Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <amxmisc>
- new const Songs[][] = {
- "sound/HaimCohen/Death/Haim.mp3",
- "sound/HaimCohen/Death/Haim2.mp3"
- }
- public plugin_init() {
- register_plugin("Death Song", "666", "xFlane")
- register_event( "DeathMsg", "DeathEvent", "a" )
- }
- public plugin_precache(){
- for(new i;i < sizeof Songs;i++){
- precache_sound(Songs[i])
- }
- }
- public DeathEvent()
- {
- new client = read_data(2)
- client_cmd(client,"mp3 play ^"%s^"", Songs[random_num(0, charsmax(Songs))])
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement