hlmod.hu
https://hlmod.hu/

HUD információ | Lefordítási hiba
https://hlmod.hu/viewtopic.php?f=29&t=27961
Oldal: 1 / 1

Szerző:  Sheriff Kapitány. [2017.07.16. 14:31 ]
Hozzászólás témája:  HUD információ | Lefordítási hiba

Sziasztok.
Amikor letöltöttem ezt a plugint és leszerettem volna Fordítani amxx-re és nem engedte.
Kérem valaki javítsa ki! :)
Megy a pacsi!

Üdv.

Szerző:  regener [2017.07.16. 21:46 ]
Hozzászólás témája:  Re: HUD információ | Lefordítási hiba

Próbáld ki:

  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4.  
  5. #define PLUGIN "HUD Info"
  6. #define VERSION "1.0"
  7. #define AUTHOR "N/A"
  8.  
  9. #define MAXROUNDS 50
  10.  
  11. new Rounds
  12. new iCTKills
  13. new iTTKills
  14. new admin
  15.  
  16. public plugin_init() {
  17.     register_plugin(PLUGIN, VERSION, AUTHOR)
  18.     register_event( "DeathMsg", "DeathEvent", "a" );
  19.     register_event("TextMsg","ResetAll","a","2&#Game_C","2&#Game_w")
  20.     register_logevent("NewRounds", 2, "0=World triggered", "1=Round_Start")
  21.     set_task(1.0,"HUDInfo" , _ , _ , _ , "b")
  22. }
  23.  
  24. public ResetAll() {
  25.     Rounds = 0
  26.     iCTKills = 0
  27.     iTTKills = 0
  28. }
  29.  
  30. public DeathEvent(){
  31.     new Killer = read_data( 1 );
  32.     new CsTeams:Team
  33.     Team = cs_get_user_team( Killer );
  34.     if (Team == CS_TEAM_T)
  35.     {
  36.         iTTKills++
  37.     }
  38.     if (Team == CS_TEAM_CT)
  39.     {
  40.         iCTKills++
  41.     }
  42. }
  43.  
  44. public NewRounds(){
  45.     Rounds++
  46. }
  47.  
  48. public HUDInfo()
  49. {
  50.     admin = 0;
  51.     new players[32], pnum, tempid
  52.     get_players(players, pnum, "c")
  53.  
  54.     for( new i; i<pnum; i++ )
  55.     {
  56.         tempid = players[i]
  57.         if(!is_user_connected(tempid)) continue;
  58.        
  59.         if(get_user_flags(tempid) & ADMIN_KICK)
  60.         {
  61.             admin++;
  62.         }
  63.         new ido[64], datum[64]
  64.         get_time("%H:%M:%S", ido, 63)
  65.         get_time("%Y.%m.%d", datum, 63)
  66.         new fentlevo = get_playersnum();
  67.         new maxplay = get_maxplayers();
  68.  
  69.         set_hudmessage(0, 255, 128, 0.0, 0.19, 0, 6.0, 12.0)
  70.         show_hudmessage(0, "[Adminok: %d]^n[Te Fragok ~ %d]^n[Ct Fragok ~ %d]^n[Játékosok ~ %d/%d]^n[Idő ~ %s]^n[Datum ~ %s]", admin, iTTKills, iCTKills,  fentlevo, maxplay, ido, datum)
  71.     }
  72. }

Szerző:  Sheriff Kapitány. [2017.07.16. 22:18 ]
Hozzászólás témája:  Re: HUD információ | Lefordítási hiba

Köszönöm szépen Regener! :)

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