hlmod.hu
https://hlmod.hu/

statnullázó
https://hlmod.hu/viewtopic.php?f=29&t=23582
Oldal: 1 / 1

Szerző:  nagyricsii35 [2016.01.16. 22:41 ]
Hozzászólás témája:  statnullázó

sziasztok.

valaki tudna linkelni egy olyan stat nullázót ami global offensive mód mellett is elmegy???

mert elég sok parancsot tilt ugye a go mod..

Szerző:  lada xp [2016.01.17. 16:10 ]
Hozzászólás témája:  Re: statnullázó

Az mit is jelent hogy go mellet is elmegy? mikell bele?

Szerző:  Levii@Peace [2016.01.17. 16:14 ]
Hozzászólás témája:  Re: statnullázó

Tessék.

30mp-s munka :D


  1. #include <amxmodx>
  2. #include <fun>
  3.  
  4. #define PLUGIN "Uj Plugin"
  5. #define VERSION "1.0"
  6. #define AUTHOR "Levii"
  7.  
  8.  
  9. public plugin_init() {
  10.     register_plugin(PLUGIN, VERSION, AUTHOR)
  11.     register_clcmd("say /rs","reset")
  12.     // Add your code here...
  13. }
  14. public reset( id )
  15. {
  16.     print_color(id, "!t.:[SzercsiNevcsi]:.!y Sikeresen Nulláztad a Statod!.")
  17.     set_user_frags(id,0)
  18.     cs_set_user_deaths(id,0)
  19.     set_user_frags(id,0)
  20.     cs_set_user_deaths(id,0)
  21. }
  22.  
  23. stock print_color(const id, const input[], any:...)
  24. {
  25.     new count = 1, players[32]
  26.     static msg[191]
  27.     vformat(msg, 190, input, 3)
  28.    
  29.     replace_all(msg, 190, "!g", "^4")
  30.     replace_all(msg, 190, "!y", "^1")
  31.     replace_all(msg, 190, "!t", "^3")
  32.     replace_all(msg, 190, "á", "á")
  33.     replace_all(msg, 190, "é", "Ă©")
  34.     replace_all(msg, 190, "í", "Ă­")
  35.     replace_all(msg, 190, "ó", "Ăł")
  36.     replace_all(msg, 190, "ö", "ö")
  37.     replace_all(msg, 190, "ő", "Ĺ‘")
  38.     replace_all(msg, 190, "ú", "Ăş")
  39.     replace_all(msg, 190, "ü", "ĂĽ")
  40.     replace_all(msg, 190, "ű", "ű")
  41.     replace_all(msg, 190, "Á", "Á")
  42.     replace_all(msg, 190, "É", "É")
  43.     replace_all(msg, 190, "Í", "ĂŤ")
  44.     replace_all(msg, 190, "Ó", "Ă“")
  45.     replace_all(msg, 190, "Ö", "Ă–")
  46.     replace_all(msg, 190, "Ő", "Ő")
  47.     replace_all(msg, 190, "Ú", "Ăš")
  48.     replace_all(msg, 190, "Ü", "Ăś")
  49.     replace_all(msg, 190, "Ű", "Ű")      
  50.    
  51.     if (id) players[0] = id; else get_players(players, count, "ch")
  52.     {
  53.     for (new i = 0; i < count; i++)
  54.     {
  55.         if (is_user_connected(players[i]))
  56.         {
  57.             message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
  58.             write_byte(players[i])
  59.             write_string(msg)
  60.             message_end()
  61.         }
  62.     }
  63. }
  64.     return PLUGIN_HANDLED
  65. }

Szerző:  mforce [2016.01.17. 16:35 ]
Hozzászólás témája:  Re: statnullázó

  1. #include <amxmodx>
  2. #include <fakemeta>
  3.  
  4. #define PLUGIN "ResetScore"
  5. #define VERSION "1.0"
  6. #define AUTHOR "mforce"
  7.  
  8. public plugin_init() {
  9.     register_clcmd("say /rs", "reset")
  10.     register_clcmd("say /resetscore", "reset")
  11.     register_clcmd("say !resetscore", "reset")
  12.     register_clcmd("say !rs", "reset")
  13.     register_clcmd("say_team /rs", "reset")
  14.     register_clcmd("say_team /resetscore", "reset")
  15.     register_clcmd("say_team !resetscore", "reset")
  16.     register_clcmd("say_team !rs", "reset")
  17. }
  18.  
  19. public reset(id) {
  20.     if(is_user_connected(id)) {
  21.         client_cmd(id, "spk buttons/blip1.wav");
  22.         ChatColor(id, "^4[MagyarPub]^1 Sikeresen nulláztad a statisztikádat.");
  23.  
  24.         set_pev(id, pev_frags, 0.0);
  25.         set_pdata_int(id, 444, 0);
  26.        
  27.         static mScoreInfo; if(!mScoreInfo) mScoreInfo = get_user_msgid("ScoreInfo");
  28.         message_begin(MSG_ALL, mScoreInfo);
  29.         write_byte(id);
  30.         write_short(0);
  31.         write_short(0);
  32.         write_short(0);
  33.         write_short(0);
  34.         message_end();
  35.     }
  36.     return PLUGIN_HANDLED;
  37. }
  38.  
  39. stock ChatColor(const id, const szMessage[], any:...) {
  40.     static pnum, players[32], szMsg[190], IdMsg;
  41.     vformat(szMsg, charsmax(szMsg), szMessage, 3);
  42.  
  43.     if(!IdMsg) IdMsg = get_user_msgid("SayText");
  44.  
  45.     if(id) {
  46.         if(!is_user_connected(id)) return;
  47.         players[0] = id;
  48.         pnum = 1;
  49.     }
  50.     else get_players(players, pnum, "ch");
  51.  
  52.     for(new i; i < pnum; i++) {
  53.         message_begin(MSG_ONE, IdMsg, .player = players[i]);
  54.         write_byte(players[i]);
  55.         write_string(szMsg);
  56.         message_end();
  57.     }
  58. }

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