hlmod.hu
https://hlmod.hu/

Say-be Infók
https://hlmod.hu/viewtopic.php?f=10&t=17779
Oldal: 1 / 1

Szerző:  Charlie224 [2014.10.27. 13:05 ]
Hozzászólás témája:  Say-be Infók

Sziasztok ezt valaki átírná úgy , hogy:

[TheHeRoRallY Only Dust2] !z : Korok Szama50/0 !r , Jatekosok 32/0 , Mapp neve !r

Jelmagyarazatt : !r -random , !z -zőld

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2.  
  3.  
  4.  
  5. #define PLUGIN "New Plugin"
  6.  
  7. #define VERSION "1.0"
  8.  
  9. #define AUTHOR "Petrik"
  10.  
  11.  
  12.  
  13. new round
  14.  
  15.  
  16.  
  17. public plugin_init() {
  18.  
  19. register_plugin(PLUGIN, VERSION, AUTHOR)
  20.  
  21. register_logevent("round_start", 2, "1=Round_Start")
  22.  
  23. register_event("TextMsg", "game_restart", "a", "2&#Game_C", "2&#Game_w")
  24.  
  25. }
  26.  
  27. public game_restart()
  28.  
  29. {
  30.  
  31. round = 0
  32.  
  33. }
  34.  
  35. public round_start(){
  36.  
  37. new mapname[32]
  38.  
  39. get_mapname(mapname, 31)
  40.  
  41. round++
  42.  
  43. if(round == 50){
  44.  
  45. server_cmd("changelevel de_dust2")
  46.  
  47. }
  48.  
  49. client_print(0, print_chat, "Kör: %d/50 | Pálya: %s | Játékosok: %d/%d",round,mapname, get_playersnum(), get_maxplayers())
  50.  
  51. }

Szerző:  Charlie224 [2014.10.27. 13:06 ]
Hozzászólás témája:  Re: Say-be Infók

A playerek szamat is random szinuen irja ki pls

Szerző:  MeSter [2014.10.27. 14:27 ]
Hozzászólás témája:  Re: Say-be Infók

Ha nem jó szinezten elnézést! de nem értem random mi akkar leni alap szin v team szin amugy a zold:!g alap(sarga)!y Csapat szin:!t

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <colorchat>
  3.  
  4.  
  5.  
  6.  
  7. #define PLUGIN "New Plugin"
  8.  
  9. #define VERSION "1.0"
  10.  
  11. #define AUTHOR "Petrik"
  12.  
  13.  
  14.  
  15. new round
  16.  
  17.  
  18.  
  19. public plugin_init() {
  20.  
  21. register_plugin(PLUGIN, VERSION, AUTHOR)
  22.  
  23. register_logevent("round_start", 2, "1=Round_Start")
  24.  
  25. register_event("TextMsg", "game_restart", "a", "2&#Game_C", "2&#Game_w")
  26.  
  27. }
  28.  
  29. public game_restart()
  30.  
  31. {
  32.  
  33. round = 0
  34.  
  35. }
  36.  
  37. public round_start(){
  38.  
  39. new mapname[32]
  40.  
  41. get_mapname(mapname, 31)
  42.  
  43. round++
  44.  
  45. if(round == 50){
  46.  
  47. server_cmd("changelevel de_dust2")
  48.  
  49. }
  50.  
  51. ColorChat(0, RED, "^4[TheHeRoRallY Only Dust2]:^3Korok Szama: ^4 50/%d| ^3Jatekosok: ^4!y%d/%d| ^3Palya: ^4%s ",round,mapname, get_playersnum(), get_maxplayers())
  52.  
  53. }

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