Advertisement
IdoGame

death songs

Oct 11th, 2014
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. new const Songs[][] = {
  5. "sound/HaimCohen/Death/Haim.mp3",
  6. "sound/HaimCohen/Death/Haim2.mp3"
  7. }
  8.  
  9. public plugin_init() {
  10. register_plugin("Death Song", "666", "xFlane")
  11. register_event( "DeathMsg", "DeathEvent", "a" )
  12. }
  13. public plugin_precache(){
  14. for(new i;i < sizeof Songs;i++){
  15. precache_sound(Songs[i])
  16. }
  17. }
  18. public DeathEvent()
  19. {
  20. new client = read_data(2)
  21. client_cmd(client,"mp3 play ^"%s^"", Songs[random_num(0, charsmax(Songs))])
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement