hlmod.hu
https://hlmod.hu/

rs
https://hlmod.hu/viewtopic.php?f=29&t=12750
Oldal: 1 / 1

Szerző:  Milkywaye [ 2013.11.20. 13:33 ]
Hozzászólás témája:  rs

nekem 1 ojan /rs kene ha beirom a chetbe hogy /rs akkor hudba fogja irny Sikerresen nulsztad a statodat !!! es mindig mas szinnel

Szerző:  norbee.16 [ 2013.11.20. 17:55 ]
Hozzászólás témája:  Re: rs

Milkywaye írta:
nekem 1 ojan /rs kene ha beirom a chetbe hogy /rs akkor hudba fogja irny Sikerresen nulsztad a statodat !!! es mindig mas szinnel

Ha helyesen le írod akkor segítek.

Szerző:  ultraibolya [ 2013.11.20. 18:31 ]
Hozzászólás témája:  Re: rs

Szerintem erre gondoltál:

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <colorchat>
  4. #include <fun>
  5. public plugin_init() {
  6. register_clcmd("say /rs","reset")
  7. }
  8. public reset(id){
  9. cs_set_user_deaths(id,0)
  10. set_user_frags(id,0)
  11. new rand=random_num(0,2)
  12. switch(rand){
  13. case 0:{
  14. ColorChat(id,RED,"Sikeresen nullaztad a statisztikadat!")
  15. }
  16. case 1:{
  17. ColorChat(id,GREEN,"Sikeresen nullaztad a statisztikadat!")
  18. }
  19. case 2:{
  20. ColorChat(id,BLUE,"^x01Sikeresen nullaztad a statisztikadat!")
  21. }
  22. }
  23. }
  24.  

Szerző:  stupid` [ 2013.11.20. 19:20 ]
Hozzászólás témája:  Re: rs

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <fun>
  4. #include <dhudmessage>
  5. public plugin_init() {
  6. register_clcmd("say /rs","reset")
  7. }
  8. public reset(id){
  9. cs_set_user_deaths(id,0)
  10. set_user_frags(id,0)
  11. new rand=random_num(0,2)
  12. switch(rand){
  13. case 0:{
  14. set_dhudmessage(random(256), random(256), random(256), 0.3, 0.6, 0, 6.0, 12.0)
  15. show_dhudmessage(id, "Sikersen nullaztad a statisztikadat!")
  16. }
  17. case 1:{
  18. set_dhudmessage(random(256), random(256), random(256), 0.3, 0.6, 0, 6.0, 12.0)
  19. show_dhudmessage(id, "Sikersen nullaztad a statisztikadat!")
  20. }
  21. case 2:{
  22. set_dhudmessage(random(256), random(256), random(256), 0.3, 0.6, 0, 6.0, 12.0)
  23. show_dhudmessage(id, "Sikersen nullaztad a statisztikadat!")
  24. }
  25. }
  26. }
  27.  


Vagy ez:
SMX Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <fun>
  3. #include <cstrike>
  4. #include <dhudmessage>
  5.  
  6. new const PLUGIN_NAME[] = "Reset_Score";
  7. new const VERSION[] = "1.0";
  8. new const AUTHOR[] = "Sottko";
  9.  
  10. new name[33];
  11. new rs_hudmessage;
  12. new rs_sound;
  13.  
  14. public plugin_init()
  15. {
  16. register_plugin( PLUGIN_NAME, VERSION, AUTHOR);
  17.  
  18. register_clcmd("say /rs", "reset_score");
  19. register_clcmd("say /resetscore", "reset_score");
  20. register_clcmd("say_team /rs", "reset_score");
  21. register_clcmd("say_team /resetscore", "reset_score");
  22.  
  23. rs_hudmessage = register_cvar("rs_hudmessage", "1");
  24. rs_sound = register_cvar("rs_sound", "buttons/bell1.wav");
  25. }
  26.  
  27. public reset_score(id)
  28. {
  29. set_user_frags(id, 0);
  30. cs_set_user_deaths(id, 0);
  31.  
  32. if(get_pcvar_num(rs_hudmessage))
  33. {
  34. get_user_name(id, name, 32);
  35. set_dhudmessage(random(256), random(256), random(256), -1.0, 0.79, 2, 6.0, 3.0, 0.1, 1.5 );
  36. show_dhudmessage(id, "Nullaztad a Statod!");
  37. if(get_pcvar_num(rs_sound))
  38. {
  39. client_cmd(id, "spk fvox/bell");
  40. }
  41. }
  42. return PLUGIN_HANDLED
  43. }

Szerző:  laki5000 [ 2013.11.20. 19:22 ]
Hozzászólás témája:  Re: rs

Ő HUD-ba kérte, és nem DHUD-ba:)

persze a tiéd is tökéletes stupid :)

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <fun>
  4. public plugin_init() {
  5. register_clcmd("say /rs","reset")
  6. }
  7. public reset(id){
  8. cs_set_user_deaths(id,0)
  9. set_user_frags(id,0)
  10. new rand=random_num(0,2)
  11. switch(rand){
  12. case 0:{
  13. set_hudmessage(random(256), random(256), random(256), 0.3, 0.6, 0, 6.0, 12.0)
  14. show_hudmessage(id, "Sikersen nullaztad a statisztikadat!")
  15. }
  16. case 1:{
  17. set_hudmessage(random(256), random(256), random(256), 0.3, 0.6, 0, 6.0, 12.0)
  18. show_hudmessage(id, "Sikersen nullaztad a statisztikadat!")
  19. }
  20. case 2:{
  21. set_hudmessage(random(256), random(256), random(256), 0.3, 0.6, 0, 6.0, 12.0)
  22. show_hudmessage(id, "Sikersen nullaztad a statisztikadat!")
  23. }
  24. }
  25. }

Szerző:  stupid` [ 2013.11.20. 19:32 ]
Hozzászólás témája:  Re: rs

laki5000 írta:
Ő HUD-ba kérte, és nem DHUD-ba:)

persze a tiéd is tökéletes stupid :)

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <cstrike>
  3. #include <fun>
  4. public plugin_init() {
  5. register_clcmd("say /rs","reset")
  6. }
  7. public reset(id){
  8. cs_set_user_deaths(id,0)
  9. set_user_frags(id,0)
  10. new rand=random_num(0,2)
  11. switch(rand){
  12. case 0:{
  13. set_hudmessage(random(256), random(256), random(256), 0.3, 0.6, 0, 6.0, 12.0)
  14. show_hudmessage(id, "Sikersen nullaztad a statisztikadat!")
  15. }
  16. case 1:{
  17. set_hudmessage(random(256), random(256), random(256), 0.3, 0.6, 0, 6.0, 12.0)
  18. show_hudmessage(id, "Sikersen nullaztad a statisztikadat!")
  19. }
  20. case 2:{
  21. set_hudmessage(random(256), random(256), random(256), 0.3, 0.6, 0, 6.0, 12.0)
  22. show_hudmessage(id, "Sikersen nullaztad a statisztikadat!")
  23. }
  24. }
  25. }

lehet hogy dhudba kérte mert már sok szerveren az van

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