RSSy MYGO.pl Opublikowano Sierpień 18, 2020 o 15:53 RSSy Udostępnij Opublikowano Sierpień 18, 2020 o 15:53 Hi Guyz I Need This Scoreboard for my Online Linux Server .... i saw this in a cs version i downloaded .....it looks very cool The score board file is attached and then i searched a lot and found this too but acg module is required ... i got the module for the cs windows version ..but didn't got it for the linux ... so anyone can help me on this ?? ....man this one is awesome Code: #include <amxmodx> #include <amxmisc> #include <acg> new ctwin = 0, twin = 0 public plugin_init() { register_plugin("ScoreBoard", "0.1", "[email protected]") register_event("TeamScore","calc_teamscore"," a") set_task (2.0, "updatescoreboard", _, _, _,"b") } public plugin_precache() { precache_model("sprites/scoreboard.spr") precache_model("sprites/scoreboard_text.spr") } public calc_teamscore() { new parm[16] read_data(1,parm,charsmax(parm)) if (parm[0] == 'T') twin = read_data(2) else ctwin = read_data(2) } public updatescoreboard() { new Players[32] new cts, ts, total, i, id get_players(Players, cts, "ae", "CT") get_players(Players, ts, "ae", "TERRORIST") get_players(Players, total, "c") for (i=0; i<total; i++) { id = Players acg_updatescoreboard(id, twin, ctwin + twin, ctwin, ts, cts, 2) } } public client_putinserver(id) { if (acg_userstatus(id)) set_task(2.0,"showsb",id) } public client_disconnect(id) { remove_task(id) } public showsb(id) { acg_setscoreboardspr(id, SB_NORMAL, SB_T_CT, SB_ROUND) } Attached Images acg_example.jpg (95.8 KB) Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi