hlmod.hu
https://hlmod.hu/

Ct & T játékosok.
https://hlmod.hu/viewtopic.php?f=9&t=24475
Oldal: 1 / 1

Szerző:  Papi [2016.03.30. 12:42 ]
Hozzászólás témája:  Ct & T játékosok.

Sziasztok.
Rohadt régen csináltam ilyet szóval kéne egy kis help.
hogy tudom azt megadni hudba hogy külön mutassa honyien vannak ct-be illetve t-be?
Gondolom értitek.
Itt a plugin amit elkezdtem.

  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <cstrike>
  4.  
  5. #define PLUGIN "Hudba Infók"
  6. #define VERSION "1.0"
  7. #define AUTHOR "N/A"
  8.  
  9.  
  10. public plugin_init() {
  11.     register_plugin(PLUGIN, VERSION, AUTHOR)
  12.     set_task(1.0,"HUDInfo" , _ , _ , _ , "b")
  13. }
  14.  
  15. public HUDInfo(){
  16.    
  17.     new nextmap[32]
  18.     get_mapname(nextmap, 31)
  19.    
  20.     new current_map[32]
  21.     get_mapname(current_map, 31)
  22.    
  23.     new CurrentPlayers = get_playersnum();
  24.     new MaxPlayers = get_maxplayers();
  25.  
  26.     set_hudmessage(random(255),random(255),random(255), 0.0, 0.19, 0, 6.0, 12.0)
  27.     show_hudmessage(0, "Pálya:%s^nKövetkező Pálya:%s^nJátékosok: %d/%d^nJó Játékot!", current_map, nextmap, CurrentPlayers, MaxPlayers)
  28. }

Szerző:  demon [2016.03.30. 20:36 ]
Hozzászólás témája:  Re: Ct & T játékosok.

  1. #include <amxmodx>
  2. #include <cstrike>
  3.  
  4. #define PLUGIN "Hudba Infók"
  5. #define VERSION "1.0"
  6. #define AUTHOR "N/A"
  7.  
  8. new MaxPlayers;
  9.  
  10. public plugin_init() {
  11.     register_plugin(PLUGIN, VERSION, AUTHOR)
  12.     set_task(1.0,"HUDInfo" , _ , _ , _ , "b")
  13.    
  14.     MaxPlayers = get_maxplayers();
  15. }
  16.  
  17. public HUDInfo(){
  18.     new nextmap[32], current_map[32], p[32], ct, t
  19.    
  20.     get_players(p, ct, "e", "CT")
  21.     get_players(p, t, "e", "TERRORIST")
  22.    
  23.     get_cvar_string("amx_nextmap", nextmap, 31)
  24.     get_mapname(current_map, 31)
  25.    
  26.     new CurrentPlayers = get_playersnum();
  27.    
  28.     set_hudmessage(random(255),random(255),random(255), 0.0, 0.19, 0, 6.0, 12.0)
  29.     show_hudmessage(0, "Pálya:%s^nKövetkezo Pálya:%s^nJátékosok: %d/%d^nCT: %d^nT: %d^nJó Játékot!", current_map, nextmap, CurrentPlayers, MaxPlayers, ct, t)
  30. }

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