hlmod.hu
https://hlmod.hu/

Legjobb abban a körben
https://hlmod.hu/viewtopic.php?f=101&t=12541
Oldal: 2 / 3

Szerző:  Exolent ID [ 2012.06.28. 17:13 ]
Hozzászólás témája:  Re: Legjobb abban a körben | Mind | Statisztikai

Inkább az sma-t töltsétek le utánna compile, mert van egy kis hiba az amxx-el. Ha érdekel próbáld ki :)

Szerző:  Bence98007 [ 2012.08.04. 17:31 ]
Hozzászólás témája:  Re: Legjobb abban a körben | Mind | Statisztikai

Semmi hiba sincs az amxx el névlopó Exolent ^^

Szerző:  dark55 [ 2012.08.17. 15:32 ]
Hozzászólás témája:  Re: Legjobb abban a körben | Mind | Statisztikai

elerheto a kep de nekem valaki szerezen mar egy zombie escaped modot pls

Szerző:  Seth [ 2012.09.22. 19:12 ]
Hozzászólás témája:  Re: Legjobb abban a körben | Mind | Statisztikai

Bence98007

Te inkább fogd be a pofád 14 évesen :D. Szaros

Szerző:  bence12382 [ 2013.05.16. 14:29 ]
Hozzászólás témája:  Re: Legjobb abban a körben | Mind | Statisztikai

Nekem valamiért 2 x irja ki ! nemtudjátok miért ?

Szerző:  Anonymous1337 [ 2013.07.15. 19:51 ]
Hozzászólás témája:  Re: Legjobb abban a körben | Mind | Statisztikai

[hiba]http://img6.myimg.de/roundbest87bdc.png[/hiba]
Frissítsd a linket!

Szerző:  hallywood [ 2014.02.11. 17:38 ]
Hozzászólás témája:  Re: Legjobb abban a körben | Mind | Statisztikai

Szia!
Nem te színesítetted be és főleg nem te írtál bele ékezetet!!!!
Ez már nekem rég meg van sőt a hostingoknál is rég van pl clansnal 3 éve!!!! Szóval :)

Szerző:  ZiT3K [ 2015.08.06. 23:09 ]
Hozzászólás témája:  Re: Legjobb abban a körben

Hali!
ITT FORDÍTOTTAM:
https://amx.freakz.ro/

Mi a problémája?

Kód:
AMX Mod X Compiler 1.8.3-manual
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Modified for http://www.Freakz.ro / amx.freakz.ro

korlegjobbja.sma(60) : error 017: undefined symbol "NORMAL"
korlegjobbja.sma(60) : warning 215: expression has no effect
korlegjobbja.sma(60) : warning 215: expression has no effect
korlegjobbja.sma(60) : error 001: expected token: ";", but found ")"
korlegjobbja.sma(60) : error 029: invalid expression, assumed zero
korlegjobbja.sma(60) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
Done.


Valaki javítsa pls:

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <hamsandwich>
  4. #include <cstrike>
  5. #include <colorchat>
  6.  
  7. #define PLUGIN "New Plugin"
  8. #define AUTHOR "Unknown"
  9. #define VERSION "1.0"
  10.  
  11. new g_iKills[32], g_iHS[32], g_iDmg[32]
  12.  
  13. public plugin_init()
  14. {
  15. register_plugin(PLUGIN, VERSION, AUTHOR)
  16.  
  17. RegisterHam(Ham_TakeDamage, "player", "hamTakeDamage")
  18. register_event("DeathMsg", "EventDeathMsg", "a")
  19. register_logevent("RoundEnd", 2, "1=Round_End")
  20. }
  21. public client_disconnect(id)
  22. {
  23. g_iDmg[id] = 0;
  24. g_iKills[id] = 0;
  25. g_iHS[id] = 0;
  26. }
  27. public hamTakeDamage(victim, inflictor, attacker, Float:damage, DamageBits)
  28. {
  29. if( 1 <= attacker <= 32)
  30. {
  31. if(cs_get_user_team(victim) != cs_get_user_team(attacker))
  32. g_iDmg[attacker] += floatround(damage)
  33. else
  34. g_iDmg[attacker] -= floatround(damage)
  35. }
  36. }
  37. public EventDeathMsg()
  38. {
  39. new killer = read_data(1)
  40. new victim = read_data(2)
  41. new is_hs = read_data(3)
  42.  
  43. if(killer != victim && killer && cs_get_user_team(killer) != cs_get_user_team(victim))
  44. {
  45. g_iKills[killer]++;
  46.  
  47. if(is_hs)
  48. g_iHS[killer]++;
  49. }
  50. else
  51. g_iKills[killer]--;
  52. }
  53. public RoundEnd()
  54. {
  55. new iBestPlayer = get_best_player()
  56.  
  57. new szName[32]
  58. get_user_name(iBestPlayer, szName, charsmax(szName))
  59.  
  60. ColorChat(0, NORMAL, "*^x03 A legjobb játékos ebben a körben,^x04 %s^x03 volt!", szName)
  61. ColorChat(0, NORMAL, "*^x03 Megölt^x04 %i^x03 játékost, ebböl^x04 %i^x03 fejessel!", g_iKills[iBestPlayer], g_iHS[iBestPlayer])
  62.  
  63. for(new i; i < 31; i++)
  64. {
  65. g_iDmg[i:36dfuqeu] = 0;
  66. g_iHS[i:36dfuqeu] = 0;
  67. g_iKills[i:36dfuqeu] = 0;
  68. }
  69. }
  70. get_best_player()
  71. {
  72. new players[32], num;
  73. get_players(players, num);
  74. SortCustom1D(players, num, "sort_bestplayer")
  75.  
  76. return players[0]
  77. }
  78. public sort_bestplayer(id1, id2)
  79. {
  80. if(g_iKills[id1] > g_iKills[id2])
  81. return -1;
  82. else if(g_iKills[id1] < g_iKills[id2])
  83. return 1;
  84. else
  85. {
  86. if(g_iDmg[id1] > g_iDmg[id2])
  87. return -1;
  88. else if(g_iDmg[id1] < g_iDmg[id2])
  89. return 1;
  90. else
  91. return 0;
  92. }
  93.  
  94. return 0;
  95. }

 [i]Előre is köszönöm!

Szerző:  SmaCk [ 2015.08.07. 00:14 ]
Hozzászólás témája:  Re: Legjobb abban a körben

ZiT3K írta:
Hali!
ITT FORDÍTOTTAM:
https://amx.freakz.ro/

Mi a problémája?

Kód:
AMX Mod X Compiler 1.8.3-manual
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Modified for http://www.Freakz.ro / amx.freakz.ro

korlegjobbja.sma(60) : error 017: undefined symbol "NORMAL"
korlegjobbja.sma(60) : warning 215: expression has no effect
korlegjobbja.sma(60) : warning 215: expression has no effect
korlegjobbja.sma(60) : error 001: expected token: ";", but found ")"
korlegjobbja.sma(60) : error 029: invalid expression, assumed zero
korlegjobbja.sma(60) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
Done.


Valaki javítsa pls:

SMA Forráskód: [ Mindet kijelol ]#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <colorchat>
 
#define PLUGIN "New Plugin"
#define AUTHOR "Unknown"
#define VERSION "1.0"
 
new g_iKills[32], g_iHS[32], g_iDmg[32]
 
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
 
RegisterHam(Ham_TakeDamage, "player", "hamTakeDamage")
register_event("DeathMsg", "EventDeathMsg", "a")
register_logevent("RoundEnd", 2, "1=Round_End")
}
public client_disconnect(id)
{
g_iDmg[id] = 0;
g_iKills[id] = 0;
g_iHS[id] = 0;
}
public hamTakeDamage(victim, inflictor, attacker, Float:damage, DamageBits)
{
if( 1 <= attacker <= 32)
{
if(cs_get_user_team(victim) != cs_get_user_team(attacker))
g_iDmg[attacker] += floatround(damage)
else
g_iDmg[attacker] -= floatround(damage)
}
}
public EventDeathMsg()
{
new killer = read_data(1)
new victim = read_data(2)
new is_hs = read_data(3)
 
if(killer != victim && killer && cs_get_user_team(killer) != cs_get_user_team(victim))
{
g_iKills[killer]++;
 
if(is_hs)
g_iHS[killer]++;
}
else
g_iKills[killer]--;
}
public RoundEnd()
{
new iBestPlayer = get_best_player()
 
new szName[32]
get_user_name(iBestPlayer, szName, charsmax(szName))
 
ColorChat(0, NORMAL, "*^x03 A legjobb játékos ebben a körben,^x04 %s^x03 volt!", szName)
ColorChat(0, NORMAL, "*^x03 Megölt^x04 %i^x03 játékost, ebböl^x04 %i^x03 fejessel!", g_iKills[iBestPlayer], g_iHS[iBestPlayer])
 
for(new i; i < 31; i++)
{
g_iDmg[i:36dfuqeu] = 0;
g_iHS[i:36dfuqeu] = 0;
g_iKills[i:36dfuqeu] = 0;
}
}
get_best_player()
{
new players[32], num;
get_players(players, num);
SortCustom1D(players, num, "sort_bestplayer")
 
return players[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;
else
{
if(g_iDmg[id1] > g_iDmg[id2])
return -1;
else if(g_iDmg[id1] < g_iDmg[id2])
return 1;
else
return 0;
}
 
return 0;
}
 Előre is köszönöm!


SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <hamsandwich>
  4. #include <cstrike>
  5. #include <colorchat>
  6.  
  7. #define PLUGIN "New Plugin"
  8. #define AUTHOR "Unknown"
  9. #define VERSION "1.0"
  10.  
  11. new g_iKills[32], g_iHS[32], g_iDmg[32]
  12.  
  13. public plugin_init()
  14. {
  15. register_plugin(PLUGIN, VERSION, AUTHOR)
  16.  
  17. RegisterHam(Ham_TakeDamage, "player", "hamTakeDamage")
  18. register_event("DeathMsg", "EventDeathMsg", "a")
  19. register_logevent("RoundEnd", 2, "1=Round_End")
  20. }
  21. public client_disconnect(id)
  22. {
  23. g_iDmg[id] = 0;
  24. g_iKills[id] = 0;
  25. g_iHS[id] = 0;
  26. }
  27. public hamTakeDamage(victim, inflictor, attacker, Float:damage, DamageBits)
  28. {
  29. if( 1 <= attacker <= 32)
  30. {
  31. if(cs_get_user_team(victim) != cs_get_user_team(attacker))
  32. g_iDmg[attacker] += floatround(damage)
  33. else
  34. g_iDmg[attacker] -= floatround(damage)
  35. }
  36. }
  37. public EventDeathMsg()
  38. {
  39. new killer = read_data(1)
  40. new victim = read_data(2)
  41. new is_hs = read_data(3)
  42.  
  43. if(killer != victim && killer && cs_get_user_team(killer) != cs_get_user_team(victim))
  44. {
  45. g_iKills[killer]++;
  46.  
  47. if(is_hs)
  48. g_iHS[killer]++;
  49. }
  50. else
  51. g_iKills[killer]--;
  52. }
  53. public RoundEnd()
  54. {
  55. new iBestPlayer = get_best_player()
  56.  
  57. new szName[32]
  58. get_user_name(iBestPlayer, szName, charsmax(szName))
  59.  
  60. ColorChat(0, NORMAL, "*^x03 A legjobb játékos ebben a körben,^x04 %s^x03 volt!", szName)
  61. ColorChat(0, NORMAL, "*^x03 Megölt^x04 %i^x03 játékost, ebböl^x04 %i^x03 fejessel!", g_iKills[iBestPlayer], g_iHS[iBestPlayer])
  62.  
  63. for(new i; i < 31; i++)
  64. {
  65. g_iDmg[i] = 0;
  66. g_iHS[i] = 0;
  67. g_iKills[i] = 0;
  68. }
  69. }
  70. get_best_player()
  71. {
  72. new players[32], num;
  73. get_players(players, num);
  74. SortCustom1D(players, num, "sort_bestplayer")
  75.  
  76. return players[0]
  77. }
  78. public sort_bestplayer(id1, id2)
  79. {
  80. if(g_iKills[id1] > g_iKills[id2])
  81. return -1;
  82. else if(g_iKills[id1] < g_iKills[id2])
  83. return 1;
  84. else
  85. {
  86. if(g_iDmg[id1] > g_iDmg[id2])
  87. return -1;
  88. else if(g_iDmg[id1] < g_iDmg[id2])
  89. return 1;
  90. else
  91. return 0;
  92. }
  93.  
  94. return 0;
  95. }
  96.  

Szerző:  ZiT3K [ 2015.08.07. 00:59 ]
Hozzászólás témája:  Re: Legjobb abban a körben

Most te ezt javítottad, mert az sma-t kimásoltam, de nem jó???!!!

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