hlmod.hu
https://hlmod.hu/

szin
https://hlmod.hu/viewtopic.php?f=9&t=10014
Oldal: 1 / 1

Szerző:  bohoc8 [ 2013.08.10. 09:06 ]
Hozzászólás témája:  szin

Sziasztok ezt hogy tudnám meg csinálni hogy szinessen irja ki pl:[Under-Team]%s sikeresen nullazta a statisztikajat!
Ja és a /rs pluginról van szó.

Csatolmányok:
statnullazas.sma [592 bájt]
Letöltve 22 alkalommal.

Szerző:  HuBaBuBa [ 2013.08.10. 09:09 ]
Hozzászólás témája:  Re: szin

SMA Forráskód: [ Mindet kijelol ]
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <amxmisc>
  5. #include <cstrike>
  6. #include <fun>
  7.  
  8.  
  9. #define PLUGIN "Reset score"
  10. #define VERSION "1.0"
  11. #define AUTHOR "author"
  12.  
  13.  
  14. public plugin_init() {
  15. register_plugin(PLUGIN, VERSION, AUTHOR)
  16. register_clcmd("say /rs", "nullazas")
  17. register_clcmd("say /resetscore", "nullazas")
  18. }
  19. public nullazas(id) {
  20. set_user_frags(id,0)
  21. cs_set_user_deaths(id,0)
  22.  
  23. new name[33]
  24. get_user_name(id, name, 33)
  25. ChatColor(0,"!team[Under-Team] !y%s !gSikeresen nullázta a statisztikáját!", name)
  26. }
  27. stock ChatColor(const id, const input[], any:...)
  28. {
  29. new count = 1, players[32]
  30. static msg[191]
  31. vformat(msg, 190, input, 3)
  32.  
  33. replace_all(msg, 190, "!g", "^4")
  34. replace_all(msg, 190, "!y", "^1")
  35. replace_all(msg, 190, "!team", "^3")
  36. replace_all(msg, 190, "!team2", "^0")
  37.  
  38. if (id) players[0] = id; else get_players(players, count, "ch")
  39. {
  40. for (new i = 0; i < count; i++)
  41. {
  42. if (is_user_connected(players[i]))
  43. {
  44. message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  45. write_byte(players[i]);
  46. write_string(msg);
  47. message_end();
  48. }
  49. }
  50. }
  51. }
  52.  
  53.  
  54.  
  55.  

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