Csatolmány:
zp_dsohud.inc
add hozzá a zp_dsohud.inc -et.
vagy ha úgy nem megy a plugin akk próbáld így:
Kód:
#include <amxmodx>
#include <fakemeta>
#include <fakemeta_util>
// Win sprites dirs'
new const g_zombie_win[] = "sprites/zombie_plague/zombie_win.spr"
new const g_human_win[] = "sprites/zombie_plague/human_win.spr"
new g_maxplayers
public plugin_init()
{
register_plugin("[ZP] Advanced Win Msgs.", "1.0", "@bdul!");
// Round start event
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
//Win
register_event( "SendAudio", "TWin", "a", "2=%!MRAD_terwin" );
register_event( "SendAudio", "CTWin", "a", "2=%!MRAD_ctwin" );
// Retrieve max players
g_maxplayers = get_maxplayers()
}
// Prechache the sprites
public plugin_precache()
{
precache_model(g_zombie_win)
precache_model(g_human_win)
}
// Remove win sprites on new round
public event_round_start()
{
static id
for (id = 1; id <= g_maxplayers; id++)
remove_hud_sprite(id)
}
public TWin()
{
static id
for (id = 1; id <= g_maxplayers; id++)
{
display_hud_sprite(id, g_zombie_win, 0.05)
}
}
public CTWin()
{
static id
for (id = 1; id <= g_maxplayers; id++)
{
display_hud_sprite(id, g_human_win, 0.04)
}
}
így pont nem fog menni, mert kell az inc, gondoltam megvan neki, mivel az alapba is benne van