HaBzIk
Участник
- Сообщения
- 48
- Реакции
- 31
Создал плагин, который должен изменить цвет скина игроку, в зависимости от того, в какой он команде... но почему-то не работает.., скажите в чем ошибка?(Компилируется нормально)
#include <sourcemod>
#include <sdktools>
#include <cstrike>
#define VERSION "1.0"
public Plugin:myinfo =
{
name = "[MG]Color Skin",
author = "Zetting",
description = "",
version = VERSION,
url = ""
}
public Action:OnPlayerSpawn(Handle:event)
{
new userid = GetEventInt(event, "userid");
new client = GetClientOfUserId(userid);
if(GetClientTeam(client) == CS_TEAM_T)
{
SetEntityRenderMode(client, RENDER_TRANSCOLOR);
SetEntityRenderColor(client, 255, 0, 0, 70);
}
if(GetClientTeam(client) == CS_TEAM_CT)
{
SetEntityRenderMode(client, RENDER_TRANSCOLOR);
SetEntityRenderColor(client, 0, 0, 255, 70);
}
return Plugin_Continue;
}