hlmod.hu
https://hlmod.hu/

Chat hangok.
https://hlmod.hu/viewtopic.php?f=10&t=27295
Oldal: 1 / 1

Szerző:  skyland001100 [2017.02.21. 18:01 ]
Hozzászólás témája:  Chat hangok.

üdv!
Valaki megcsinálná nekem úgy ,hogy 1percenként lehessen csak le játszani a hangokat?
Ugy hogy ha be írsz egyet akkor utána 1percel kesobb lehessen a másikat .

  1. #include <amxmodx>
  2.  
  3. public plugin_init() {
  4.     register_plugin(PLUGIN, VERSION, AUTHOR)
  5.     register_clcmd("say","Say_sounds")
  6. }
  7.  
  8.  
  9. // A szavak melyeket beirsz a chatbe
  10.  
  11. new lol_phrase[8][] = {"/akkor", "/akkor", "/akkor", "/akkor", "/akkor", "/akkor", "/akkor", "/akkor"}
  12.  
  13. new phrase[2][] = {"/csajvagyok","/csajvagyok"}
  14.  
  15. new phrase2[3][] = {"/fulke","/fulke","/fulke"}
  16.  
  17. new phrase3[5][] = {"/gyere","/gyere","/gyere","/gyere","/gyere"}
  18.  
  19. ////////////////////////////////////////////////////////////////////////////////////////////////////
  20.  
  21. // A hangok melyek hallatszani fognak
  22.  
  23. new akkor [] = {"misc/akkor"}
  24.  
  25. new csajvagyok [] = {"misc/csajvagyok"}
  26.  
  27. new fulke [] = {"misc/fulke"}
  28.  
  29. new gyere [] = {"misc/gyere"}
  30.  
  31. ////////////////////////////////////////////////////////////////////////////////////////////////////
  32.  
  33. public Say_sounds(id)
  34. {
  35.     new said[192]
  36.     read_args(said,191)
  37.     for(new i = 0 ;i < 2; i++)
  38.     if(containi(said,phrase[i]) != -1){
  39.     client_cmd(0,"spk %s",akkor)
  40.     server_cmd("amx_tsay green <> /akkor <>")
  41.     break;
  42. }
  43.     for(new i = 0 ;i < 3; i++)
  44.     if(containi(said,phrase2[i]) != -1){
  45.     server_cmd("amx_tsay red <> /csajvagyok <>")
  46.     client_cmd(0,"spk %s",csajvagyok)
  47.     break;
  48. }
  49.     for(new i = 0 ;i < 5; i++)
  50.     if(containi(said,phrase3[i]) != -1){
  51.     server_cmd("amx_tsay green <> /fulke <>")
  52.     client_cmd(0,"spk %s",fulke)
  53.     break;
  54. }
  55.     for(new i = 0 ;i < 8; i++)
  56.     if(containi(said,lol_phrase[i]) != -1){
  57.     server_cmd("amx_tsay red <> /gyere <>")
  58.     client_cmd(0,"spk %s",gyere)
  59.     break;
  60.     }
  61.  
  62. }
  63.  
  64. public plugin_precache(){
  65.  
  66.     precache_sound("misc/akkor.wav")
  67.     precache_sound("misc/csajvagyok.wav")
  68.     precache_sound("misc/fulke.wav")
  69.     precache_sound("misc/gyere.wav")
  70. }

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/