Raised This Month: $51 Target: $400
 12% 

Need This Scoreboard


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Abdulrazzaq
Member
Join Date: Oct 2019
Location: NZ
Old 08-18-2020 , 11:53   Need This Scoreboard
Reply With Quote #1

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[i]
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
File Type: jpg acg_example.jpg (95.8 KB, 140 views)

Last edited by Abdulrazzaq; 08-18-2020 at 11:54.
Abdulrazzaq is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode