#pragma semicolon 1
#include <sourcemod>
public Plugin:myinfo =
{
name = "Red Terrorist",
author = "wS / Schmidt",
version = "1.1",
url = "http://*****.ru/"
};
public OnPluginStart()
{
HookEvent("bomb_dropped", standart_color);
HookEvent("bomb_pickup", red_color);
HookEvent("bomb_planted", standart_color);
HookEvent("player_spawn", standart_color);
}
public standart_color(Handle:event, const String:name[], bool:silent) wS_SetRedColor(event, false);
public red_color(Handle:event, const String:name[], bool:silent) wS_SetRedColor(event, true);
wS_SetRedColor(Handle:event, bool:set_red_color)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
SetEntityRenderMode(client, RENDER_TRANSCOLOR);
if (set_red_color) SetEntityRenderColor(client, 255, 0, 0, 255);
else SetEntityRenderColor(client, 255, 255, 255, 255);
}