hlmod.hu
https://hlmod.hu/

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

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

Nekem 1 /rs plugin kéne amelikk ojan hogy
ha beirom a Chetbe hogy /rs akk kiirja a hudba Sikeresen nullasztad a statisztikadat !!! es mindig mas sinnel :)

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

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. }

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