Raised This Month: $ Target: $400
 0% 

Help with Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Golden Fredy
Junior Member
Join Date: Sep 2015
Old 09-30-2015 , 22:36   Help with Plugin
Reply With Quote #1

Hello, I would use this plugin with dhudmessage, thank you.

////////////////////////////////////////

#include <amxmodx>
#include <amxmisc>

#define VERSION "1.3"

new CTScore, TerrScore
new rounds_elapsed
new g_maxplayers

public plugin_init()
{
register_plugin("TeamScore on HUD", "1.0", "XXXX")
register_event("TeamScore", "ct_score", "a", "1=CT")
register_event("TeamScore", "terr_score", "a", "1=TERRORIST")
register_event("HLTV", "new_round", "a", "1=0", "2=0")
register_event("TextMsg", "restart_round", "a", "2=#Game_will_restart_in")
g_maxplayers = get_maxplayers()

show_scores()
}

public new_round()
{
rounds_elapsed += 1
}

public restart_round()
{
rounds_elapsed = 0
}

public ct_score()
{
CTScore = read_data(2)
}

public terr_score()
{
TerrScore = read_data(2)
}

public show_scores()
{
set_hudmessage( 0, 255, 0, -1.0, 0.0, _,_, 2.0,_,_, -1 )
show_hudmessage(0, "PLACAR ^nCT %i| Round %d |%i TR", CTScore, rounds_elapsed, TerrScore, g_maxplayers)

set_task(2.0, "show_scores")
}
Golden Fredy is offline
 


Thread Tools
Display Modes

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 22:12.


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