hlmod.hu
https://hlmod.hu/

Legjobb DHUDBAN HELP!
https://hlmod.hu/viewtopic.php?f=29&t=9941
Oldal: 1 / 3

Szerző:  alfanero [ 2013.08.07. 17:41 ]
Hozzászólás témája:  Legjobb DHUDBAN HELP!

Ebben Tudna valaki segiteni mert a 3 elvan csuszva a többitöl igy van :
1
2
3
es ilyenek kene lennie:
1.
2.
3.
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <hamsandwich>
  4. #include <dhudmessage>
  5. #include <cstrike>
  6.  
  7. #define PLUGIN "New Plugin"
  8. #define AUTHOR "Unknown"
  9. #define VERSION "1.0"
  10.  
  11. new g_iKills[32];
  12. new top1, top2, top3;
  13.  
  14. public plugin_init()
  15. {
  16. register_plugin(PLUGIN, VERSION, AUTHOR)
  17.  
  18. register_event("DeathMsg", "EventDeathMsg", "a")
  19. register_logevent("RoundEnd", 2, "1=Round_End")
  20. }
  21. public client_disconnect(id)
  22. {
  23. g_iKills[id] = 0;
  24. }
  25. public EventDeathMsg()
  26. {
  27. new killer = read_data(1)
  28. new victim = read_data(2)
  29.  
  30. if(killer != victim && killer && cs_get_user_team(killer) != cs_get_user_team(victim))
  31. {
  32. g_iKills[killer]++;
  33.  
  34. }
  35. else
  36. g_iKills[killer]--;
  37. }
  38. public RoundEnd()
  39. {
  40. new players[32], num;
  41. get_players(players, num);
  42. SortCustom1D(players, num, "sort_bestplayer")
  43.  
  44. top1 = players[0]
  45. top2 = players[1]
  46. top3 = players[2]
  47.  
  48. new top1neve[33], top2neve[33], top3neve[33];
  49. get_user_name(top1, top1neve, charsmax(top1neve))
  50. get_user_name(top2, top2neve, charsmax(top2neve))
  51. get_user_name(top3, top3neve, charsmax(top3neve))
  52.  
  53. set_dhudmessage(random(256), random(256), random(256), 0.29, 0.42,0,6.0,12.0,0.1,0.2)
  54. show_dhudmessage(0, "Ebben a Körben a Legjobb játékosok:^n1 %s^n2 %s^n 3 %s", top1neve, top2neve, top3neve)
  55. client_print(0, print_chat, "")
  56.  
  57. for(new i; i < 31; i++)
  58. {
  59. g_iKills[i] = 0;
  60. }
  61. }
  62.  
  63. public sort_bestplayer(id1, id2)
  64. {
  65. if(g_iKills[id1] > g_iKills[id2])
  66. return -1;
  67. else if(g_iKills[id1] < g_iKills[id2])
  68. return 1;
  69.  
  70. return 0;
  71. }
  72. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  73. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1046\\ f0\\ fs16 \n\\ par }
  74. */

Szerző:  alfanero [ 2013.08.07. 17:43 ]
Hozzászólás témája:  Re: Legjobb DHUDBAN HELP!

alfanero írta:
Ebben Tudna valaki segiteni mert a 3 elvan csuszva a többitöl igy van :
1
2
3
es ilyenek kene lennie:
1.
2.
3.
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <hamsandwich>
  4. #include <dhudmessage>
  5. #include <cstrike>
  6.  
  7. #define PLUGIN "New Plugin"
  8. #define AUTHOR "Unknown"
  9. #define VERSION "1.0"
  10.  
  11. new g_iKills[32];
  12. new top1, top2, top3;
  13.  
  14. public plugin_init()
  15. {
  16. register_plugin(PLUGIN, VERSION, AUTHOR)
  17.  
  18. register_event("DeathMsg", "EventDeathMsg", "a")
  19. register_logevent("RoundEnd", 2, "1=Round_End")
  20. }
  21. public client_disconnect(id)
  22. {
  23. g_iKills[id] = 0;
  24. }
  25. public EventDeathMsg()
  26. {
  27. new killer = read_data(1)
  28. new victim = read_data(2)
  29.  
  30. if(killer != victim && killer && cs_get_user_team(killer) != cs_get_user_team(victim))
  31. {
  32. g_iKills[killer]++;
  33.  
  34. }
  35. else
  36. g_iKills[killer]--;
  37. }
  38. public RoundEnd()
  39. {
  40. new players[32], num;
  41. get_players(players, num);
  42. SortCustom1D(players, num, "sort_bestplayer")
  43.  
  44. top1 = players[0]
  45. top2 = players[1]
  46. top3 = players[2]
  47.  
  48. new top1neve[33], top2neve[33], top3neve[33];
  49. get_user_name(top1, top1neve, charsmax(top1neve))
  50. get_user_name(top2, top2neve, charsmax(top2neve))
  51. get_user_name(top3, top3neve, charsmax(top3neve))
  52.  
  53. set_dhudmessage(random(256), random(256), random(256), 0.29, 0.42,0,6.0,12.0,0.1,0.2)
  54. show_dhudmessage(0, "Ebben a Körben a Legjobb játékosok:^n1 %s^n2 %s^n 3 %s", top1neve, top2neve, top3neve)
  55. client_print(0, print_chat, "")
  56.  
  57. for(new i; i < 31; i++)
  58. {
  59. g_iKills[i] = 0;
  60. }
  61. }
  62.  
  63. public sort_bestplayer(id1, id2)
  64. {
  65. if(g_iKills[id1] > g_iKills[id2])
  66. return -1;
  67. else if(g_iKills[id1] < g_iKills[id2])
  68. return 1;
  69.  
  70. return 0;
  71. }
  72. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  73. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1046\\ f0\\ fs16 \n\\ par }
  74. */


Igy Sry:

Csatolmányok:
Magyarázat: Igy nezki msot:
2013-08-07_00002.jpg
2013-08-07_00002.jpg [ 196.12 KiB | Megtekintve 2718 alkalommal ]

Szerző:  m0csy652 [ 2013.08.07. 17:45 ]
Hozzászólás témája:  Re: Legjobb DHUDBAN HELP!

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <dhudmessage>
#include <cstrike>

#define PLUGIN "New Plugin"
#define AUTHOR "Unknown"
#define VERSION "1.0"

new g_iKills[32];
new top1, top2, top3;

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

register_event("DeathMsg", "EventDeathMsg", "a")
register_logevent("RoundEnd", 2, "1=Round_End")
}
public client_disconnect(id)
{
g_iKills[id] = 0;
}
public EventDeathMsg()
{
new killer = read_data(1)
new victim = read_data(2)

if(killer != victim && killer && cs_get_user_team(killer) != cs_get_user_team(victim))
{
g_iKills[killer]++;

}
else
g_iKills[killer]--;
}
public RoundEnd()
{
new players[32], num;
get_players(players, num);
SortCustom1D(players, num, "sort_bestplayer")

top1 = players[0]
top2 = players[1]
top3 = players[2]

new top1neve[33], top2neve[33], top3neve[33];
get_user_name(top1, top1neve, charsmax(top1neve))
get_user_name(top2, top2neve, charsmax(top2neve))
get_user_name(top3, top3neve, charsmax(top3neve))

set_dhudmessage(random(256), random(256), random(256), 0.29, 0.42,0,6.0,12.0,0.1,0.2)
show_dhudmessage(0, "Ebben a Körben a Legjobb játékosok:^n1 %s^n2 %s^n 3%s", top1neve, top2neve, top3neve)
client_print(0, print_chat, "")

for(new i; i < 31; i++)
{
g_iKills[i] = 0;
}
}

public sort_bestplayer(id1, id2)
{
if(g_iKills[id1] > g_iKills[id2])
return -1;
else if(g_iKills[id1] < g_iKills[id2])
return 1;

return 0;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1046\\ f0\\ fs16 \n\\ par }
*/

Szerző:  pixxa112 [ 2013.08.07. 17:45 ]
Hozzászólás témája:  Re: Legjobb DHUDBAN HELP!

Tessék:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <hamsandwich>
  4. #include <dhudmessage>
  5. #include <cstrike>
  6.  
  7. #define PLUGIN "New Plugin"
  8. #define AUTHOR "Unknown"
  9. #define VERSION "1.0"
  10.  
  11. new g_iKills[32];
  12. new top1, top2, top3;
  13.  
  14. public plugin_init()
  15. {
  16. register_plugin(PLUGIN, VERSION, AUTHOR)
  17.  
  18. register_event("DeathMsg", "EventDeathMsg", "a")
  19. register_logevent("RoundEnd", 2, "1=Round_End")
  20. }
  21. public client_disconnect(id)
  22. {
  23. g_iKills[id] = 0;
  24. }
  25. public EventDeathMsg()
  26. {
  27. new killer = read_data(1)
  28. new victim = read_data(2)
  29.  
  30. if(killer != victim && killer && cs_get_user_team(killer) != cs_get_user_team(victim))
  31. {
  32. g_iKills[killer]++;
  33.  
  34. }
  35. else
  36. g_iKills[killer]--;
  37. }
  38. public RoundEnd()
  39. {
  40. new players[32], num;
  41. get_players(players, num);
  42. SortCustom1D(players, num, "sort_bestplayer")
  43.  
  44. top1 = players[0]
  45. top2 = players[1]
  46. top3 = players[2]
  47.  
  48. new top1neve[33], top2neve[33], top3neve[33];
  49. get_user_name(top1, top1neve, charsmax(top1neve))
  50. get_user_name(top2, top2neve, charsmax(top2neve))
  51. get_user_name(top3, top3neve, charsmax(top3neve))
  52.  
  53. set_dhudmessage(random(256), random(256), random(256), 0.29, 0.42,0,6.0,12.0,0.1,0.2)
  54. show_dhudmessage(0, "Ebben a Körben a Legjobb játékosok:^n1. %s^n2. %s^n3. %s", top1neve, top2neve, top3neve)
  55. client_print(0, print_chat, "")
  56.  
  57. for(new i; i < 31; i++)
  58. {
  59. g_iKills[i] = 0;
  60. }
  61. }
  62.  
  63. public sort_bestplayer(id1, id2)
  64. {
  65. if(g_iKills[id1] > g_iKills[id2])
  66. return -1;
  67. else if(g_iKills[id1] < g_iKills[id2])
  68. return 1;
  69.  
  70. return 0;
  71. }
  72. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  73.   *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1046\\ f0\\ fs16 \n\\ par }
  74.   */
  75.  

Szerző:  alfanero [ 2013.08.07. 17:46 ]
Hozzászólás témája:  Re: Legjobb DHUDBAN HELP!

Köszönöm Szépen!

Szerző:  pixxa112 [ 2013.08.07. 17:46 ]
Hozzászólás témája:  Re: Legjobb DHUDBAN HELP!

alfanero írta:
Köszönöm Szépen!


Ne csak mond csináld is XD

Szerző:  alfanero [ 2013.08.07. 17:47 ]
Hozzászólás témája:  Re: Legjobb DHUDBAN HELP!

Es Grat az ötletes pluginhoz Pixxa

Szerző:  pixxa112 [ 2013.08.07. 17:47 ]
Hozzászólás témája:  Re: Legjobb DHUDBAN HELP!

Amúgy mocsyé nem jó.

Szerző:  alfanero [ 2013.08.07. 17:48 ]
Hozzászólás témája:  Re: Legjobb DHUDBAN HELP!

Nyomtam Köszi gombot:D
Kép

Szerző:  alfanero [ 2013.08.07. 17:48 ]
Hozzászólás témája:  Re: Legjobb DHUDBAN HELP!

Azt tudom h nem jó.

Kép

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