View Single Post
JocAnis
Veteran Member
Join Date: Jun 2010
Old 02-12-2024 , 10:51   Re: [req] auto scoreboard on ded screen
Reply With Quote #9

try this?
Code:
#include <amxmodx>

const MAX_PLAYERS = 32

public plugin_init()
{
    register_event("HLTV", "event_new_round", "a", "1=0", "2=0")
    set_task(1.0, "showscores", .flags="b")
}
public event_new_round()
{
    for( new id = 1; id <= get_maxplayers(); id++ )
    {
        if( !is_user_connected( id ) )
            continue

        client_cmd( id, "-showscores" )
    }
}
public showscores()
{
    new players[MAX_PLAYERS], num, id
    get_players(players, num, "bch")

    for (new i = 0; i < num; i++)
    {
        id = players[i]
        client_cmd(id, "+showscores")
    }
}
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)

Last edited by JocAnis; 02-12-2024 at 10:52.
JocAnis is offline