public void OnPluginStart() { HookEvent("player_spawn", SpawnEvent, EventHookMode); } public Action:SpawnEvent(Handle event,char[] name,bool dontBroadcast) { int iClient_id = GetEventInt(event, "userid"); int iClient = GetClientOfUserId(iClient_id); if(IsClientInGame(iClient) && IsPlayerAlive(iClient) && TFTeam_Red) { ServerCommand("sm_titan \"%N\" ", iClient); } else { PrintToServer("NOT WORKING"); } }