hlmod.hu
https://hlmod.hu/

serverlist.ini
https://hlmod.hu/viewtopic.php?f=29&t=17370
Oldal: 1 / 1

Szerző:  LostLegend [2014.09.21. 21:03 ]
Hozzászólás témája:  serverlist.ini

address=example2.n-ice.org
port=27015
ezt hogy irjam 1 pluginba ,hogy be olvasa a serverlist.ini és azt ,hogy 1 menü pontba irja ,hogy %d/%d player van

Szerző:  Z77 [2014.09.23. 18:44 ]
Hozzászólás témája:  Re: serverlist.ini

Ezt átírod úgy, hogy Spawnkor automatikusan írja ki, és kész :)

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2.  
  3. // Player var
  4. new g_Count;
  5.  
  6. public plugin_init()
  7. {
  8. // Register Plugin
  9. register_plugin("Players Online", "1.4", "Equali")
  10.  
  11. // Hook Say
  12. register_clcmd("say","handle_say")
  13. }
  14.  
  15. public client_putinserver(id)
  16. {
  17. // increase player var
  18. g_Count++
  19. }
  20. public client_disconnect(id)
  21. {
  22. // decreased player var
  23. g_Count--
  24. }
  25. public handle_say(id)
  26. {
  27. static Args[ 10 ]
  28. read_args(Args, 9)
  29. remove_quotes(Args)
  30.  
  31. if(Args[0] == '/' && containi(Args, "online") != -1)
  32. {
  33.  
  34. client_print( id , print_chat, "Online Jatekosok: %i" , g_Count)
  35. return 1; // block /online
  36. }
  37. return 0;
  38. }


LostLegend írta:
address=example2.n-ice.org
port=27015
ezt hogy irjam 1 pluginba ,hogy be olvasa a serverlist.ini és azt ,hogy 1 menü pontba irja ,hogy %d/%d player van

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