hlmod.hu
https://hlmod.hu/

Üzenet
https://hlmod.hu/viewtopic.php?f=29&t=18561
Oldal: 1 / 1

Szerző:  PiStA99 [ 2014.12.18. 16:09 ]
Hozzászólás témája:  Üzenet

Hali!
Nekem egy Olyan pluginra lenne szükségem hogy minden kör elején irja ki hogy Körök Pálya Játékosok Facebook
Enyi lenne Köszönöm

Szerző:  D3M0*~ [ 2014.12.18. 16:19 ]
Hozzászólás témája:  Re: Üzenet

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <colorchat>
  4.  
  5. new rounds_elapsed;
  6. new chat_message;
  7. new g_maxplayers;
  8. new g_map[32]
  9.  
  10. public plugin_init()
  11. {
  12. register_plugin("KörSzámláló", "1.0", "asd")
  13. register_event("HLTV", "new_round", "a", "1=0", "2=0");
  14. register_event("TextMsg", "restart_round", "a", "2=#Game_will_restart_in");
  15. chat_message = register_cvar("amx_chatmessage","1");
  16. g_maxplayers = get_maxplayers();
  17. get_mapname(g_map, 31)
  18. }
  19. public new_round()
  20. {
  21. rounds_elapsed += 1;
  22.  
  23. new p_playernum;
  24. p_playernum = get_playersnum(1);
  25.  
  26. if(get_pcvar_num(chat_message) == 1)
  27. {
  28. ColorChat(0, BLUE, "^4[SG] » ^3Körök: ^x04 %d/50^3|^4#^3Játékosok: ^x04 %d/%d^3|^4#^3Map: %d|#^3Facebook: Oldal neve", rounds_elapsed, p_playernum, g_maxplayers,g_map);
  29. }
  30. return PLUGIN_CONTINUE;
  31. }
  32. public restart_round()
  33. {
  34. rounds_elapsed = 0;
  35. }

Szerző:  Beckx [ 2014.12.18. 16:21 ]
Hozzászólás témája:  Re: Üzenet

Tessék

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <colorchat>
  4.  
  5. #define PLUGIN "PLUGIN"
  6. #define VERSION "1.0"
  7. #define AUTHOR "AUTHOR"
  8.  
  9. new korok = 0, jatekosok
  10. new g_map[32]
  11.  
  12.  
  13. public plugin_init() {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. register_event("HLTV", "ujkor", "a", "1=0", "2=0")
  16. register_logevent("nullazas", 2, "0=World triggered", "1&Restart_Round_")
  17. register_logevent("nullazas", 2, "0=World triggered", "1=Game_Commencing")
  18. get_mapname(g_map, 31)
  19. }
  20. public client_putinserver(id) {
  21. if(is_user_bot(id))
  22. return PLUGIN_CONTINUE
  23. jatekosok++
  24. return PLUGIN_CONTINUE
  25. }
  26. public client_disconnect(id) {
  27. if(is_user_bot(id))
  28. return PLUGIN_CONTINUE
  29. jatekosok--
  30. return PLUGIN_CONTINUE
  31. }
  32. public nullazas()
  33. korok = 0
  34. public ujkor() {
  35. korok++
  36. if(korok >= 50)
  37. {
  38. server_cmd("sv_restart 1")
  39. server_cmd("sv_restart 0")
  40. }
  41. else
  42. ColorChat(0, GREEN,"[Prefix] ^3Online jatekosok : ^4%d/%d ^1| ^3Körök : ^4%d ^1| ^3Jelenlegi map : ^4%s | Facebook:", jatekosok, get_maxplayers(), korok, g_map)
  43. }
  44.  

Szerző:  DeR0iD [ 2014.12.18. 16:27 ]
Hozzászólás témája:  Re: Üzenet

Beckx írta:
Tessék

SMA Forráskód: [ Mindet kijelol ]#include <amxmodx>
#include <amxmisc>
#include <colorchat>
 
#define PLUGIN "PLUGIN"
#define VERSION "1.0"
#define AUTHOR "AUTHOR"
 
new korok = 0, jatekosok
new g_map[32]
 
 
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "ujkor", "a", "1=0", "2=0")
register_logevent("nullazas", 2, "0=World triggered", "1&Restart_Round_")
register_logevent("nullazas", 2, "0=World triggered", "1=Game_Commencing")
get_mapname(g_map, 31)
}
public client_putinserver(id) {
if(is_user_bot(id))
return PLUGIN_CONTINUE
jatekosok++
return PLUGIN_CONTINUE
}
public client_disconnect(id) {
if(is_user_bot(id))
return PLUGIN_CONTINUE
jatekosok--
return PLUGIN_CONTINUE
}
public nullazas()
korok = 0
public ujkor() {
korok++
if(korok >= 50)
{
server_cmd("sv_restart 1")
server_cmd("sv_restart 0")
}
else
ColorChat(0, GREEN,"[Prefix] ^3Online jatekosok : ^4%d/%d ^1| ^3Körök : ^4%d ^1| ^3Jelenlegi map : ^4%s | Facebook:", jatekosok, get_maxplayers(), korok, g_map)
}
 

nem tudom kiírja át mindig az authort de igazán..
az eredeti
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "Kor Uzi"
  5. #define VERSION "1.0"
  6. #define AUTHOR "DeRoiD"
  7.  
  8. new korok = 0, jatekosok
  9.  
  10. public plugin_init() {
  11. register_plugin(PLUGIN, VERSION, AUTHOR)
  12. register_event("HLTV", "ujkor", "a", "1=0", "2=0")
  13. register_logevent("nullazas", 2, "0=World triggered", "1&Restart_Round_")
  14. register_logevent("nullazas", 2, "0=World triggered", "1=Game_Commencing")
  15. }
  16. public client_putinserver(id) {
  17. if(is_user_bot(id))
  18. return PLUGIN_CONTINUE
  19. jatekosok++
  20. return PLUGIN_CONTINUE
  21. }
  22. public client_disconnect(id) {
  23. if(is_user_bot(id))
  24. return PLUGIN_CONTINUE
  25. jatekosok--
  26. return PLUGIN_CONTINUE
  27. }
  28. public nullazas()
  29. korok = 0
  30. public ujkor() {
  31. korok++
  32. if(korok >= 50)
  33. {
  34. server_cmd("sv_restart 1")
  35. server_cmd("sv_restart 0")
  36. }
  37. else
  38. client_print(0, print_chat, "[Info] Online jatekosok : %d/%d | Korok : %d/50", jatekosok, get_maxplayers(), korok)
  39. }

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