#include <sourcemod> #pragma semicolon 1 #pragma newdecls required #define TEAM_INFECTED 3 public void OnPluginStart() { HookEvent("ghost_spawn_time", event_ghost_spawn_time); } public void event_ghost_spawn_time(Event event, const char[] name, bool dontBroadcast) { int client = GetClientOfUserId(event.GetInt("attacker")); int spawntime = event.GetInt("spawntime"); PrintToChatAll("client %N | time %i", client, spawntime); if (1 <= client <= MaxClients && IsClientInGame(client) && !IsFakeClient(client) && GetClientTeam(client) == 3 && spawntime < 4) { PrintToChatAll("Do Something"); } }