hlmod.hu
https://hlmod.hu/

ReAPI - Reset Score
https://hlmod.hu/viewtopic.php?f=134&t=27968
Oldal: 1 / 1

Szerző:  theglorious [ 2017.07.18. 18:27 ]
Hozzászólás témája:  ReAPI - Reset Score

ReAPI - Reset Score
Leírás:
  • Nullázni tudod a statisztikádat, ha beírod, hogy /rs.
Chat parancs:
  • /rs
Verzió:
  • v1.0
Követelmények:
  • ReHLDS
  • ReGameDLL
  • ReAPI
Kompatibilis:
  • Amx Mod X 1.8.2
  • (Re) Amx Mod X 1.8.3-dev
Eredeti link:
Készítő:
  • Phantom
Plugin:
  1. #include <amxmodx>
  2. #include <reapi>
  3.  
  4. #define PLUGIN  "resetscore(ReAPI)"
  5. #define VERSION "1.0"
  6. #define AUTHOR  "Phantom"
  7.  
  8. public plugin_init() {
  9.     register_plugin(PLUGIN, VERSION, AUTHOR);
  10.     register_clcmd("say /rs", "resetscore"); register_clcmd("say_team /rs", "resetscore");
  11. }
  12.  
  13. public resetscore(id) {
  14.     if(!is_user_connected(id)) return;
  15.  
  16.     set_entvar(id, var_frags, 0.0);
  17.     set_member(id, m_iDeaths, 0);
  18.  
  19.     message_begin(MSG_ONE_UNRELIABLE, 76, .player = id);
  20.     write_byte(id);
  21.     write_string("^4[Prefix] ^1Statisztikád nullázva");
  22.     message_end();
  23.  
  24.     message_begin(MSG_ALL, 85);
  25.     write_byte(id);
  26.     write_short(0); write_short(0); write_short(0); write_short(0);
  27.     message_end();
  28. }

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