#include <sourcemod>
#include <cstrike>
public void OnPluginStart()
{
HookEvent("player_spawn", Spawn);
}
public Action Spawn(Event event, const char[] name, bool dontBroadcast)
{
int client = GetClientOfUserId(event.GetInt("userid"));
CreateTimer(0.5, TimerCallBack, GetClientUserId(client));
}
public Action TimerCallBack(Handle timer, any userid)
{
int client = GetClientOfUserId(userid);
char tag[64];
CS_GetClientClanTag(client, tag, sizeof(tag));
if(StrEqual(tag, "[Plac Zabaw]"))
{
SetEntityHealth(client, 160);
SetEntProp(client, Prop_Send, "m_ArmorValue", 99, 1);
}
else
{
SetEntityHealth(client, 145);
SetEntProp(client, Prop_Send, "m_ArmorValue", 99, 1);
}
}