hlmod.hu
https://hlmod.hu/

Csatlakozas
https://hlmod.hu/viewtopic.php?f=29&t=14120
Oldal: 1 / 1

Szerző:  slre141 [ 2014.01.31. 14:16 ]
Hozzászólás témája:  Csatlakozas

Olyan plugin kéne ami radar alá ki irja ha belépet valaki hogy Üdvözölek a szerveren rankod És ezt mindig más szinel

Szerző:  lis789 [ 2014.01.31. 14:46 ]
Hozzászólás témája:  Re: Csatlakozas

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <csstats>
  3. #include <amxmisc>
  4.  
  5. #define PLUGIN "Udvozllo"
  6. #define AUTHOR "Small"
  7. #define VERSION "1.0"
  8.  
  9. public plugin_init()
  10. {
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12.  
  13. }
  14.  
  15. public client_connect(id)
  16. {
  17. set_task(5.0,"hud",id)
  18. }
  19.  
  20. public hud(id)
  21. {
  22. new stats[8],bodyhits[8],irank
  23. irank = get_user_stats(id,stats,bodyhits)
  24. new mrank = get_statsnum()
  25.  
  26. new hname[64];
  27. get_cvar_string("hostname", hname, sizeof(hname)-1)
  28.  
  29. {
  30. set_hudmessage(0, 255, 255, 0.1, 0.3, 2, 0.1, 6.0, 0.08, 0.5, 8)
  31. show_hudmessage(id, "Udvozollek a %s Szerveren!^n Rankod: %d / %d ",hname, irank,mrank)
  32. }
  33. }
  34.  

Szerző:  alfanero [ 2014.01.31. 14:55 ]
Hozzászólás témája:  Re: Csatlakozas

Itt van ahogy kérted!
Így mindig más szinnel foga kiírni
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <csstats>
  3. #include <amxmisc>
  4.  
  5. #define PLUGIN "Udvozllo"
  6. #define AUTHOR "Small"
  7. #define VERSION "1.0"
  8.  
  9. public plugin_init()
  10. {
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12.  
  13. }
  14.  
  15. public client_connect(id)
  16. {
  17. set_task(5.0,"hud",id)
  18. }
  19.  
  20. public hud(id)
  21. {
  22. new stats[8],bodyhits[8],irank
  23. irank = get_user_stats(id,stats,bodyhits)
  24. new mrank = get_statsnum()
  25.  
  26. new hname[64];
  27. get_cvar_string("hostname", hname, sizeof(hname)-1)
  28.  
  29. {
  30. set_hudmessage(random(256), random(256), random(256), 0.1, 0.3, 2, 0.1, 6.0, 0.08, 0.5, 8)
  31. show_hudmessage(id, "Udvozollek a %s Szerveren!^n Rankod: %d / %d ",hname, irank,mrank)
  32. }
  33. }
  34.  

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