Пользователь
- Сообщения
- 17
- Реакции
- -2
Недопустимый заголовок темы
Помогите пожалуйста в плагине, показывает во время игры деньги своей команды и врагов, а надо только своей команды.
#include <amxmodx>
#include <cstrike>
new gMaxPlayers
public plugin_init() {
register_plugin("team Money", "1.1", "SSX")
gMaxPlayers=get_maxplayers();
register_event("HLTV", "RoundStart", "a", "1=0", "2=0")
register_clcmd("say /t","RoundStart")
}
public RoundStart()
{
set_task(0.1, "TASK")
set_task(1.0,"TASK",2,"",1, "a",8)
}
public TASK()
{
new szHudT[1102]
new szHudCT[1102]
static szName[34]
for(new alive=1;alive<=gMaxPlayers;alive++)
{
if(!is_user_alive(alive))
continue
get_user_name(alive, szName, 32)
new szMoney = cs_get_user_money(alive)
switch (cs_get_user_team(alive))
{
case CS_TEAM_T: format(szHudT, 256, "%s%d$ %s^n", szHudT, szMoney, szName)
case CS_TEAM_CT: format(szHudCT, 256, "%s%d$ %s^n", szHudT, szMoney, szName)
}
}
set_hudmessage(255, 255, 255, 0.02, 0.23, 0, 0.0, 1.04, 0.0, 0.0, -1)
for(new alive=1;alive<=gMaxPlayers;alive++)
{
if(!is_user_alive(alive))
continue
switch (cs_get_user_team(alive))
{
case CS_TEAM_T: show_hudmessage(alive, szHudT)
case CS_TEAM_CT: show_hudmessage(alive, szHudCT)
}
}
}
#include <amxmodx>
#include <cstrike>
new gMaxPlayers
public plugin_init() {
register_plugin("team Money", "1.1", "SSX")
gMaxPlayers=get_maxplayers();
register_event("HLTV", "RoundStart", "a", "1=0", "2=0")
register_clcmd("say /t","RoundStart")
}
public RoundStart()
{
set_task(0.1, "TASK")
set_task(1.0,"TASK",2,"",1, "a",8)
}
public TASK()
{
new szHudT[1102]
new szHudCT[1102]
static szName[34]
for(new alive=1;alive<=gMaxPlayers;alive++)
{
if(!is_user_alive(alive))
continue
get_user_name(alive, szName, 32)
new szMoney = cs_get_user_money(alive)
switch (cs_get_user_team(alive))
{
case CS_TEAM_T: format(szHudT, 256, "%s%d$ %s^n", szHudT, szMoney, szName)
case CS_TEAM_CT: format(szHudCT, 256, "%s%d$ %s^n", szHudT, szMoney, szName)
}
}
set_hudmessage(255, 255, 255, 0.02, 0.23, 0, 0.0, 1.04, 0.0, 0.0, -1)
for(new alive=1;alive<=gMaxPlayers;alive++)
{
if(!is_user_alive(alive))
continue
switch (cs_get_user_team(alive))
{
case CS_TEAM_T: show_hudmessage(alive, szHudT)
case CS_TEAM_CT: show_hudmessage(alive, szHudCT)
}
}
}