Kod:
#include <amxmodx>#include <amxmisc>
#include <dhudmessage>
#define PLUGIN "Team Score"
#define VERSION "1.0"
#define AUTHOR "s"
new ct_score, terrorist_score;
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("TeamScore", "team_score", "a");
set_task(1.0,"score_round",_,_,_,"b")
}
public team_score()
{
new team[32];
read_data(1,team,31);
if (equal(team,"CT"))
{
ct_score = read_data(2);
}
else if (equal(team,"TERRORIST"))
{
terrorist_score = read_data(2);
}
}
public score_round()
{
set_hudmessage(0, 70, 200, -1.0, 0.02, 0, 0.5, 2.0, 0.08, 2.0, 145);
show_hudmessage(0," T %d ", terrorist_score);
set_hudmessage(200, 0, 0, -1.0, 0.02, 0, 0.5, 2.0, 0.08, 2.0, 146);
show_hudmessage(0," CT %d", ct_score);
}
Takim adi yazi yerine resim koymak istiyorum mesela 'sprite' nasil yapabilirim yardımcı olursanız sevinirim.